Esempio n. 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;
     }
 }
Esempio n. 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());
            }
        }
Esempio n. 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));
        }
Esempio n. 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;
     }
 }
Esempio n. 5
0
 public void StartTimer(eDungeonTimerType type, DateTime time, Action act, int interval = -1)
 {
     mImpl.StartTimer(this, type, time, act, interval);
 }
Esempio n. 6
0
 public void NotifyDungeonTime(eDungeonTimerType type)
 {
     mImpl.NotifyDungeonTime(this, type);
 }
Esempio n. 7
0
 public void NotifyDungeonTime(ObjPlayer player, eDungeonTimerType type)
 {
     mImpl.NotifyDungeonTime(this, player, type);
 }
Esempio n. 8
0
 public DateTime GetTriggerTime(eDungeonTimerType type)
 {
     return(mImpl.GetTriggerTime(this, type));
 }
Esempio n. 9
0
 public void CloseTimer(eDungeonTimerType type)
 {
     mImpl.CloseTimer(this, type);
 }