コード例 #1
0
ファイル: FSMTransition.cs プロジェクト: CCChaos/big-tooth
 /// <summary>
 /// 从XML配置创建
 /// </summary>
 /// <param name="xmlTrans"></param>
 /// <returns></returns>
 public bool CreateFromXML(CFSMXMLTranslation xmlTrans)
 {
     if (xmlTrans == null)
     {
         return(false);
     }
     m_uTargetStateId = xmlTrans.m_uTargetId;
     m_PipelineCollection.AddConfigPipel(xmlTrans.m_fsmEventList);
     m_PipelineCollection.AddConfigPipel(xmlTrans.m_fsmConditionList);
     return(true);
 }
コード例 #2
0
 public bool CreateFromXML(CFSMXMLAction xmlAction)
 {
     if (xmlAction == null)
     {
         return(false);
     }
     m_StrActionName = xmlAction.m_strName;
     //m_ParamArray = xmlAction.m_strParamList;
     m_PipelineCollection.AddConfigPipel(xmlAction.m_fsmEventList);
     m_PipelineCollection.AddConfigPipel(xmlAction.m_fsmConditionList);
     return(true);
 }