/// <summary> /// 构造函数 /// </summary> /// <param name="_sessionId">唯一ID</param> /// <param name="period">调用时间间隔</param> /// <param name="cts">任务控制对象</param> /// <param name="timerCallBack">回调函数</param> /// <param name="int32Data">回调参数</param> /// <param name="int64Data">回调参数</param> /// <param name="objData">回调参数</param> public BattleTimerNode(Int64 id, Int32 period, CancellationTokenSource cts, BattleTimerManager.OnBattleTimerCallBack timerCallBack) { m_taskState = 1; m_id = id; m_nextCallTime = 0; m_period = period; m_timerCallBack = timerCallBack; m_cts = cts; }
public long StartLogicalTimer(BattleTimerManager.OnBattleTimerCallBack job) { return(TimerManager.SetLoopTimer(m_gameBattleConfig.LevelTickTime, job)); }