示例#1
0
 /// <summary>
 /// 默认结束处理
 /// </summary>
 /// <param name="target"></param>
 /// <param name="total"></param>
 /// <param name="current"></param>
 public override void FinishedProcess(ProcessTimer <CommandTimerType, int> target, int total, int current)
 {
     DebugUtils.Info("AutoCountTimer", "AutoCountTimer FinishedProcess");
     target.SetCount(1, 0);
     target.AddTarget(CommandTimerType.Default);
     target.Produce(ProcessState.COOLDOWN, true, 3);
     target.Produce(ProcessState.PROCESS);
     target.Control(ProcessState.START);
 }
示例#2
0
 /// <summary>
 /// 默认结束处理
 /// </summary>
 /// <param name="target"></param>
 /// <param name="total"></param>
 /// <param name="current"></param>
 public virtual void FinishedProcess(ProcessTimer <TargetType, ValueType> target, ValueType total, ValueType current)
 {
     // todo
 }
示例#3
0
 public override int OneProcess(ProcessTimer <CommandTimerType, int> target, CommandTimerType msg, int total, int current)
 {
     DebugUtils.Info("AutoCountTimer", "AutoCountTimer OneProcess");
     return(0);
 }
示例#4
0
 /// <summary>
 /// 默认回调函数
 /// </summary>
 /// <param name="target">定时器对象</param>
 /// <param name="msg"></param>
 /// <param name="total"></param>
 /// <param name="current"></param>
 /// <returns></returns>
 public virtual int OneProcess(ProcessTimer <TargetType, ValueType> target, TargetType msg, ValueType total, ValueType current)
 {
     target.Produce(ProcessState.INTERVAL, false, 3);
     return(0);
 }