Exemple #1
0
    StateInst GetStateInst(COM_ReportState state, bool once = false)
    {
        StateInst tstate = new StateInst();

        tstate.stateId_ = (int)state.stateId_;
        tstate.tick_    = state.tick_;
        tstate.turn_    = state.turn_;
        tstate.once_    = once;
        return(tstate);
    }
Exemple #2
0
 public void AddState(COM_ReportState state, bool excuteOnce = false)
 {
     if (stateList_ == null)
     {
         return;
     }
     //for(int i=0; i < stateList_.Count; ++i)
     //{
     //    if(stateList_[i].stateId_ == state.stateId_)
     //        return;
     //}
     stateList_.Add(GetStateInst(state, excuteOnce));
 }