Beispiel #1
0
    void Awake()
    {
        //Creation of a new xmltest.GAIA_Parser
        xmltest.GAIA_Parser parser = new xmltest.GAIA_Parser();

        //Creation of a new Manager (with a GAIA_Parser)
        m_manager = new GAIA_Manager(parser);

        //Loads and parses all FSM files
        if (m_xmlFilesFSM != null)
        {
            for (int i = 0; i < m_xmlFilesFSM.Length; i++)
            {
                m_manager.addFSM(m_xmlFilesFSM[i].text);
            }
        }

#if (PANDA)
        //Loads and parses all xml definitions of BTs
        if (m_xmlFilesBT != null)
        {
            for (int i = 0; i < m_xmlFilesBT.Length; i++)
            {
                m_manager.addBT(m_xmlFilesBT[i].text);
            }
        }
#endif
        parser.WriteLog("");
    }
Beispiel #2
0
 // Initializes a new instance of the GAIA_Manager class with an instance of GAIA_Parser.
 public GAIA_Manager(xmltest.GAIA_Parser parser)
 {
     this.parser  = parser;
     this.FSM_dic = new Dictionary <Tuple, FA_Classic>();
     this.BT_dic  = new Dictionary <string, string>();
 }