Example #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);
        }
Example #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);
        }
Example #3
0
 protected virtual void SaveXMLCStats(List <CharacterStatsSimple> _cStatsList)
 {
     MyXmlManager.SaveXML <List <CharacterStatsSimple> >(_cStatsList, CStatXMLPath);
 }
Example #4
0
 protected virtual void SaveXMLTactics(List <CharacterTactics> _cTacticsList)
 {
     MyXmlManager.SaveXML <List <CharacterTactics> >(_cTacticsList, tacticsXMLPath);
 }