当前位置: 首页>>代码示例>>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;未经允许,请勿转载。