Exemplo n.º 1
0
        public void loadData()
        {
            string      aipath     = MIDDLE_PATH + DATAPATH[DataTypes.AI];
            string      basicpath  = MIDDLE_PATH + DATAPATH[DataTypes.Basic];
            string      actionpath = MIDDLE_PATH + DATAPATH[DataTypes.Action];
            string      breedpath  = MIDDLE_PATH + DATAPATH[DataTypes.Breeding];
            XmlDocument basedata   = new XmlDocument();
            XmlDocument aidata     = new XmlDocument();
            XmlDocument actiondata = new XmlDocument();
            XmlDocument breeddata  = new XmlDocument();

            basedata.LoadXml(Resources.Load(basicpath).ToString());
            aidata.LoadXml(Resources.Load(aipath).ToString());
            actiondata.LoadXml(Resources.Load(actionpath).ToString());
            breeddata.LoadXml(Resources.Load(breedpath).ToString());
            MonsterDataFactory.SaveBasicData(basedata);
            MonsterDataFactory.SaveAIData(aidata);
            MonsterDataFactory.SaveActionData(actiondata);
            MonsterDataFactory.SaveBreedData(breeddata);
        }
Exemplo n.º 2
0
 public void dispose()
 {
     MonsterDataFactory.dispose();
 }
Exemplo n.º 3
0
 public IData getData(int id, DataTypes type)
 {
     return(MonsterDataFactory.getData(id, type));
 }