Esempio n. 1
0
        // Reads the data from the files located in the Resources folder.
        private void ReadResourcesFolderData()
        {
            actConfig = new ActConfig();
            registloadData(E_StaticDB_DBType.ActionInfo, actConfig.LoadFromXML, "Configuration/GameData/act/list");
            heroConfig = new HeroConfig();
            registloadData(E_StaticDB_DBType.HeroInfo, heroConfig.LoadFromXML, "Configuration/GameData/Hero");
            soldierConfig = new SoldierConfig();
            registloadData(E_StaticDB_DBType.SoldierInfo, soldierConfig.LoadFromXML, "Configuration/GameData/Soldier");

            soldierUnitConfig = new SoldierUnitConfig();
            registloadData(E_StaticDB_DBType.SoldierUnitInfo, soldierConfig.LoadFromXML, "Configuration/GameData/SoldierUnitConfig");
            IsInited = true;
        }
Esempio n. 2
0
 //获取用于识别动作的id
 public static int GetSoldierAnimIndex(int soliderId, E_NodeStatus status)
 {
     return(SoldierUnitConfig.GetSoldierAnimIndex(soliderId, GetSoldierAnimNameByStatus(status)));
 }