當前位置: 首頁>>代碼示例>>C#>>正文


C# Rooms.Room類代碼示例

本文整理匯總了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;
 }
開發者ID:sgf,項目名稱:Yupi,代碼行數:7,代碼來源:MoveToDir.cs

示例2: UserIsNotWearingEffect

 public UserIsNotWearingEffect(RoomItem item, Room room)
 {
     Item = item;
     Room = room;
     Items = new List<RoomItem>();
     OtherString = "0";
 }
開發者ID:sgf,項目名稱:Yupi,代碼行數:7,代碼來源:UserIsNotWearingEffect.cs

示例3: UserHasFurni

 public UserHasFurni(RoomItem item, Room room)
 {
     Item = item;
     Room = room;
     Items = new List<RoomItem>();
     OtherString = string.Empty;
 }
開發者ID:weslley17w,項目名稱:Yupi,代碼行數:7,代碼來源:UserHasFurni.cs

示例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);
        }
開發者ID:ImNotSatan,項目名稱:Yupi,代碼行數:34,代碼來源:PinataHandler.cs

示例5: WalksOffFurni

 public WalksOffFurni(RoomItem item, Room room)
 {
     Item = item;
     Room = room;
     ToWork = new Queue();
     Items = new List<RoomItem>();
 }
開發者ID:sgf,項目名稱:Yupi,代碼行數:7,代碼來源:WalksOffFurni.cs

示例6: HowManyUsers

 public HowManyUsers(RoomItem item, Room room)
 {
     Item = item;
     Room = room;
     Items = new List<RoomItem>();
     OtherString = string.Empty;
 }
開發者ID:sgf,項目名稱:Yupi,代碼行數:7,代碼來源:HowManyUsers.cs

示例7: SaysKeyword

 public SaysKeyword(RoomItem item, Room room)
 {
     Item = item;
     Room = room;
     OtherString = string.Empty;
     OtherBool = false;
 }
開發者ID:sgf,項目名稱:Yupi,代碼行數:7,代碼來源:SaysKeyword.cs

示例8: DateRangeActive

 public DateRangeActive(RoomItem item, Room room)
 {
     Item = item;
     Room = room;
     Items = new List<RoomItem>();
     OtherString = string.Empty;
 }
開發者ID:sgf,項目名稱:Yupi,代碼行數:7,代碼來源:DateRangeActive.cs

示例9: UserIsWearingBadge

 public UserIsWearingBadge(RoomItem item, Room room)
 {
     Item = item;
     Room = room;
     Items = new List<RoomItem>();
     OtherString = string.Empty;
 }
開發者ID:weslley17w,項目名稱:Yupi,代碼行數:7,代碼來源:UserIsWearingBadge.cs

示例10: Chase

 public Chase(RoomItem item, Room room)
 {
     Item = item;
     Room = room;
     Items = new List<RoomItem>();
     Delay = 0;
 }
開發者ID:weslley17w,項目名稱:Yupi,代碼行數:7,代碼來源:Chase.cs

示例11: ResetTimers

 public ResetTimers(RoomItem item, Room room)
 {
     Item = item;
     Room = room;
     OtherString = string.Empty;
     OtherExtraString = string.Empty;
     OtherExtraString2 = string.Empty;
 }
開發者ID:sgf,項目名稱:Yupi,代碼行數:8,代碼來源:ResetTimers.cs

示例12: BotTalkToAvatar

 public BotTalkToAvatar(RoomItem item, Room room)
 {
     Item = item;
     Room = room;
     OtherString = string.Empty;
     OtherExtraString = string.Empty;
     OtherExtraString2 = string.Empty;
 }
開發者ID:weslley17w,項目名稱:Yupi,代碼行數:8,代碼來源:BotTalkToAvatar.cs

示例13: ToggleFurniState

 public ToggleFurniState(RoomItem item, Room room)
 {
     Item = item;
     Room = room;
     Items = new List<RoomItem>();
     Delay = 0;
     _mNext = 0L;
 }
開發者ID:sgf,項目名稱:Yupi,代碼行數:8,代碼來源:ToggleFurniState.cs

示例14: FurniStateToggled

 public FurniStateToggled(RoomItem item, Room room)
 {
     Item = item;
     Room = room;
     Items = new List<RoomItem>();
     Delay = 0;
     _mUsers = new List<RoomUser>();
 }
開發者ID:weslley17w,項目名稱:Yupi,代碼行數:8,代碼來源:FurniStateToggled.cs

示例15: BotGiveHanditem

 public BotGiveHanditem(RoomItem item, Room room)
 {
     Item = item;
     Room = room;
     OtherString = string.Empty;
     OtherExtraString = string.Empty;
     OtherExtraString2 = string.Empty;
 }
開發者ID:weslley17w,項目名稱:Yupi,代碼行數:8,代碼來源:BotGiveHanditem.cs


注:本文中的Yupi.Game.Rooms.Room類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。