public void CloseTimer(DungeonScene _this, eDungeonTimerType type) { if (_this.Trggers[(int)type] != null) { _this.DeleteTimer(_this.Trggers[(int)type]); _this.Trggers[(int)type] = null; } }
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()); } }
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)); }
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; } }
public void StartTimer(eDungeonTimerType type, DateTime time, Action act, int interval = -1) { mImpl.StartTimer(this, type, time, act, interval); }
public void NotifyDungeonTime(eDungeonTimerType type) { mImpl.NotifyDungeonTime(this, type); }
public void NotifyDungeonTime(ObjPlayer player, eDungeonTimerType type) { mImpl.NotifyDungeonTime(this, player, type); }
public DateTime GetTriggerTime(eDungeonTimerType type) { return(mImpl.GetTriggerTime(this, type)); }
public void CloseTimer(eDungeonTimerType type) { mImpl.CloseTimer(this, type); }