示例#1
0
        protected virtual List <CharacterStatsSimple> LoadXMLCStats()
        {
            var _cStatList = MyXmlManager.LoadXML <List <CharacterStatsSimple> >(CStatXMLPath);

            if (_cStatList == null)
            {
                var _defaultCStatList = MyXmlManager.LoadXML <List <CharacterStatsSimple> >(defaultCStatXMLPath);
                if (_defaultCStatList != null)
                {
                    return(_defaultCStatList);
                }
                return(new List <CharacterStatsSimple>());
            }
            return(_cStatList);
        }
示例#2
0
        protected virtual List <CharacterTactics> LoadXMLTactics()
        {
            var _tacticsList = MyXmlManager.LoadXML <List <CharacterTactics> >(tacticsXMLPath);

            if (_tacticsList == null)
            {
                var _defaultTacticsList = MyXmlManager.LoadXML <List <CharacterTactics> >(defaultTacticsXMLPath);
                if (_defaultTacticsList != null)
                {
                    return(_defaultTacticsList);
                }
                return(new List <CharacterTactics>());
            }
            return(_tacticsList);
        }