示例#1
0
 public void CloseTimer(DungeonScene _this, eDungeonTimerType type)
 {
     if (_this.Trggers[(int)type] != null)
     {
         _this.DeleteTimer(_this.Trggers[(int)type]);
         _this.Trggers[(int)type] = null;
     }
 }
示例#2
0
        public void NotifyDungeonTime(DungeonScene _this, ObjPlayer player, eDungeonTimerType type)
        {
            var trigger = _this.Trggers[(int)type];

            if (trigger != null && trigger.T != null)
            {
                player.Proxy.NotifyDungeonTime((int)_this.State, (ulong)trigger.Time.ToBinary());
            }
        }
示例#3
0
        public DateTime GetTriggerTime(DungeonScene _this, eDungeonTimerType type)
        {
            var trigger = _this.Trggers[(int)type];

            if (trigger != null && trigger.T != null)
            {
                return(trigger.Time);
            }
            return(DateTime.Now.AddYears(-10));
        }
示例#4
0
 public void StartTimer(DungeonScene _this, eDungeonTimerType type, DateTime time, Action act, int interval = -1)
 {
     if (_this.Trggers[(int)type] != null)
     {
         _this.DeleteTimer(_this.Trggers[(int)type]);
     }
     _this.Trggers[(int)type] = _this.CreateTimer(time, act, interval);
     if (type == eDungeonTimerType.WaitStart)
     {
         _this.StartTime = time;
     }
     if (type == eDungeonTimerType.WaitEnd)
     {
         _this.EndTime = time;
     }
 }
示例#5
0
 public void StartTimer(eDungeonTimerType type, DateTime time, Action act, int interval = -1)
 {
     mImpl.StartTimer(this, type, time, act, interval);
 }
示例#6
0
 public void NotifyDungeonTime(eDungeonTimerType type)
 {
     mImpl.NotifyDungeonTime(this, type);
 }
示例#7
0
 public void NotifyDungeonTime(ObjPlayer player, eDungeonTimerType type)
 {
     mImpl.NotifyDungeonTime(this, player, type);
 }
示例#8
0
 public DateTime GetTriggerTime(eDungeonTimerType type)
 {
     return(mImpl.GetTriggerTime(this, type));
 }
示例#9
0
 public void CloseTimer(eDungeonTimerType type)
 {
     mImpl.CloseTimer(this, type);
 }