Exemplo n.º 1
0
 public Guards()
 {
     xdocGuards = new XmlDocument();
     xdocGuards.Load(GUARDSSOURCEFILENAME);
     ca_parser_ = new ComboArmyParser(xdocGuards.DocumentElement);
     m_parser_  = new MonstersParser(xdocGuards.DocumentElement);
     tg_parser_ = new TownGarrisonParser(xdocGuards.DocumentElement,
                                         EnumConvert.MapSizeFromInt(Settings.Default.SelectedSizeIndex));
     ts_parser_ = new TownSpecParser();
 }
Exemplo n.º 2
0
 public TownSpecBuilder(TownSpecParser ts_parser)
 {
     ts_parser_ = ts_parser;
 }