本文整理汇总了C#中Yupi.Game.Rooms.Room类的典型用法代码示例。如果您正苦于以下问题:C# Room类的具体用法?C# Room怎么用?C# Room使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Room类属于Yupi.Game.Rooms命名空间,在下文中一共展示了Room类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MoveToDir
public MoveToDir(RoomItem item, Room room)
{
Item = item;
Room = room;
Items = new List<RoomItem>();
Delay = 0;
}
示例2: UserIsNotWearingEffect
public UserIsNotWearingEffect(RoomItem item, Room room)
{
Item = item;
Room = room;
Items = new List<RoomItem>();
OtherString = "0";
}
示例3: UserHasFurni
public UserHasFurni(RoomItem item, Room room)
{
Item = item;
Room = room;
Items = new List<RoomItem>();
OtherString = string.Empty;
}
示例4: DeliverRandomPinataItem
/// <summary>
/// Delivers the random pinata item.
/// </summary>
/// <param name="user">The user.</param>
/// <param name="room">The room.</param>
/// <param name="item">The item.</param>
internal void DeliverRandomPinataItem(RoomUser user, Room room, RoomItem item)
{
if (room == null || item == null || item.GetBaseItem().InteractionType != Interaction.Pinata ||
!Pinatas.ContainsKey(item.GetBaseItem().ItemId))
return;
PinataItem pinataItem;
Pinatas.TryGetValue(item.GetBaseItem().ItemId, out pinataItem);
if (pinataItem == null || pinataItem.Rewards.Count < 1)
return;
item.RefreshItem();
//@TODO :: KESSILER, now PINATA DOESNT WORK. MUST CREATE SOLUTION LATER.
//item.BaseName = pinataItem.Rewards[new Random().Next((pinataItem.Rewards.Count - 1))];
item.ExtraData = string.Empty;
room.GetRoomItemHandler().RemoveFurniture(user.GetClient(), item.Id, false);
using (IQueryAdapter queryReactor = Yupi.GetDatabaseManager().GetQueryReactor())
queryReactor.RunFastQuery(
$"UPDATE items_rooms SET item_name='{item.BaseName}', extra_data='' WHERE id='{item.Id}'");
if (!room.GetRoomItemHandler().SetFloorItem(user.GetClient(), item, item.X, item.Y, 0, true, false, true))
user.GetClient().GetHabbo().GetInventoryComponent().AddItem(item);
}
示例5: WalksOffFurni
public WalksOffFurni(RoomItem item, Room room)
{
Item = item;
Room = room;
ToWork = new Queue();
Items = new List<RoomItem>();
}
示例6: HowManyUsers
public HowManyUsers(RoomItem item, Room room)
{
Item = item;
Room = room;
Items = new List<RoomItem>();
OtherString = string.Empty;
}
示例7: SaysKeyword
public SaysKeyword(RoomItem item, Room room)
{
Item = item;
Room = room;
OtherString = string.Empty;
OtherBool = false;
}
示例8: DateRangeActive
public DateRangeActive(RoomItem item, Room room)
{
Item = item;
Room = room;
Items = new List<RoomItem>();
OtherString = string.Empty;
}
示例9: UserIsWearingBadge
public UserIsWearingBadge(RoomItem item, Room room)
{
Item = item;
Room = room;
Items = new List<RoomItem>();
OtherString = string.Empty;
}
示例10: Chase
public Chase(RoomItem item, Room room)
{
Item = item;
Room = room;
Items = new List<RoomItem>();
Delay = 0;
}
示例11: ResetTimers
public ResetTimers(RoomItem item, Room room)
{
Item = item;
Room = room;
OtherString = string.Empty;
OtherExtraString = string.Empty;
OtherExtraString2 = string.Empty;
}
示例12: BotTalkToAvatar
public BotTalkToAvatar(RoomItem item, Room room)
{
Item = item;
Room = room;
OtherString = string.Empty;
OtherExtraString = string.Empty;
OtherExtraString2 = string.Empty;
}
示例13: ToggleFurniState
public ToggleFurniState(RoomItem item, Room room)
{
Item = item;
Room = room;
Items = new List<RoomItem>();
Delay = 0;
_mNext = 0L;
}
示例14: FurniStateToggled
public FurniStateToggled(RoomItem item, Room room)
{
Item = item;
Room = room;
Items = new List<RoomItem>();
Delay = 0;
_mUsers = new List<RoomUser>();
}
示例15: BotGiveHanditem
public BotGiveHanditem(RoomItem item, Room room)
{
Item = item;
Room = room;
OtherString = string.Empty;
OtherExtraString = string.Empty;
OtherExtraString2 = string.Empty;
}