当前位置: 首页>>代码示例>>C#>>正文


C# WiredHandler类代码示例

本文整理汇总了C#中WiredHandler的典型用法代码示例。如果您正苦于以下问题:C# WiredHandler类的具体用法?C# WiredHandler怎么用?C# WiredHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


WiredHandler类属于命名空间,在下文中一共展示了WiredHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Collision

 public Collision(RoomItem item, WiredHandler handler, Room room)
 {
     Item = item;
     Room = room;
     OtherString = string.Empty;
     OtherBool = false;
     _handler = handler;
 }
开发者ID:weslley17w,项目名称:Yupi,代码行数:8,代码来源:Collision.cs

示例2: GameEnds

        public GameEnds(RoomItem item, WiredHandler handler, GameManager gameManager)
        {
            this.item = item;
            this.handler = handler;
            this.gameEndsDeletgate = new RoomEventDelegate(gameManager_OnGameEnd);

            gameManager.OnGameEnd += gameEndsDeletgate;
        }
开发者ID:habb0,项目名称:Bfly,代码行数:8,代码来源:GameEnds.cs

示例3: TriggerUserIsOnFurni

 public TriggerUserIsOnFurni(RoomItem item, List<RoomItem> items, WiredHandler handler)
 {
     this.item = item;
     this.items = items;
     this.isDisposed = false;
     this.handler = handler;
     AttatchListenersToItems();
 }
开发者ID:BjkGkh,项目名称:R106,代码行数:8,代码来源:TriggerUserIsOnFurni.cs

示例4: LessThanTimer

 public LessThanTimer(int timeout, Room room, RoomItem item, WiredHandler handler)
 {
     this.timeout = timeout;
     this.room = room;
     this.isDisposed = false;
     this.item = item;
     this.handler = handler;
 }
开发者ID:BjkGkh,项目名称:R106,代码行数:8,代码来源:LessThanTimer.cs

示例5: FurniHasFurni

 public FurniHasFurni(RoomItem item, List<RoomItem> items, WiredHandler handler, bool allItems)
 {
     this.item = item;
     this.items = items;
     this.isDisposed = false;
     this.handler = handler;
     this.allItems = allItems;
     AttatchListenersToItems();
 }
开发者ID:BjkGkh,项目名称:R106,代码行数:9,代码来源:FurniHasFurni.cs

示例6: Repeater

        public Repeater(WiredHandler handler, RoomItem item, int cyclesRequired)
        {
            this.handler = handler;
            this.cyclesRequired = cyclesRequired;
            this.item = item;

            handler.RequestCycle(this);
            this.disposed = false;
        }
开发者ID:TheNaked,项目名称:Firewind,代码行数:9,代码来源:Repeater.cs

示例7: TimerReset

 public TimerReset(Room room, WiredHandler handler, List<RoomItem> items, int delay, uint itemID)
 {
     this.room = room;
     this.handler = handler;
     this.items = items;
     this.delay = delay;
     this.cycles = 0;
     this.disposed = false;
 }
开发者ID:TheNaked,项目名称:Firewind,代码行数:9,代码来源:TimerReset.cs

示例8: UserSays

        public UserSays(RoomItem item, WiredHandler handler, bool isOwnerOnly, string triggerMessage, Room room)
        {
            this.item = item;
            this.handler = handler;
            this.isOwnerOnly = isOwnerOnly;
            this.triggerMessage = triggerMessage;
            this.delegateFunction = new RoomUserSaysDelegate(roomUserManager_OnUserSays);

            room.OnUserSays += delegateFunction;
        }
开发者ID:TheNaked,项目名称:Firewind,代码行数:10,代码来源:UserSays.cs

示例9: PositionReset

 public PositionReset(List<RoomItem> items, int delay, RoomItemHandling roomItemHandler, WiredHandler handler, uint itemID)
 {
     this.items = items;
     this.delay = delay;
     this.roomItemHandler = roomItemHandler;
     this.cycles = 0;
     this.itemID = itemID;
     this.handler = handler;
     this.disposed = false;
 }
开发者ID:TheNaked,项目名称:Firewind,代码行数:10,代码来源:PositionReset.cs

示例10: ToggleItemState

 public ToggleItemState(Gamemap gamemap, WiredHandler handler, List<RoomItem> items, int delay, uint itemID)
 {
     this.gamemap = gamemap;
     this.handler = handler;
     this.items = items;
     this.delay = delay;
     this.cycles = 0;
     this.delayedTriggeringUsers = new Queue();
     this.disposed = false;
 }
开发者ID:habb0,项目名称:PiciEmulator,代码行数:10,代码来源:ToggleItemState.cs

示例11: EntersRoom

        public EntersRoom(RoomItem item, WiredHandler handler, RoomUserManager roomUserManager, bool isOneUser, string userName)
        {
            this.item = item;
            this.handler = handler;
            this.isOneUser = isOneUser;
            this.userName = userName;
            this.delegateFunction = new RoomEventDelegate(roomUserManager_OnUserEnter);

            roomUserManager.OnUserEnter += delegateFunction;
        }
开发者ID:BjkGkh,项目名称:R106,代码行数:10,代码来源:EntersRoom.cs

示例12: Dispose

 public void Dispose()
 {
     isDisposed = true;
     room = null;
     item = null;
     handler = null;
 }
开发者ID:BjkGkh,项目名称:R106,代码行数:7,代码来源:LessThanTimer.cs

示例13: Dispose

 public void Dispose()
 {
     disposed = true;
     this.handler.GetRoom().GetGameManager().OnGameEnd -= delegateFunction;
     this.item = null;
     this.handler = null;
 }
开发者ID:habb0,项目名称:PiciEmulator,代码行数:7,代码来源:Timer.cs

示例14: Dispose

 public void Dispose()
 {
     handler.GetRoom().GetGameManager().OnScoreChanged -= scoreChangedDelegate;
     handler.GetRoom().GetGameManager().OnGameEnd -= gameEndDeletgate;
     this.item = null;
     this.handler = null;
 }
开发者ID:habb0,项目名称:PiciEmulator,代码行数:7,代码来源:ScoreAchieved.cs

示例15: Dispose

 public void Dispose()
 {
     gameManager.OnGameStart -= delegateFunction;
     gameManager = null;
     delegateFunction = null;
     handler = null;
 }
开发者ID:BjkGkh,项目名称:R106,代码行数:7,代码来源:GiveScore.cs


注:本文中的WiredHandler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。