public InternalBuildingParser(Building building) : base(building) { _pattern = @">{0}</a> \(Poziom\s+(?<level>[0-9]+)\)"; _parser = new ObjectParser { Object = _building, Pattern = _pattern, Patterns = BuildingParser.Patterns }; }
public MoveResourceParser(Resource resource) : base(resource) { _pattern = @"(?<level>[0-9]+) {0}<br>"; _parser = new ObjectParser { Object = _resource, Pattern = _pattern, Patterns = ResourceParser.Patterns }; }
public ReportBuildingParser(Building building) : base(building) { _pattern = @"<td class=nachricht width=120>{0}</td>\s*<td width=20 class=nachricht>(?<level>[^<]+)</td>"; _parser = new ObjectParser { Object = _building, Pattern = _pattern, Patterns = BuildingParser.Patterns }; }
public InternalDefenceParser(Defence defence) : base(defence) { _pattern = @">{0}</a> \(dost.pne:\s+<b>(?<level>[0-9]+)</b>"; _parser = new ObjectParser { Object = _defence, Pattern = _pattern, Patterns = DefenceParser.Patterns }; }
public ReportFleetParser(Fleet fleet) : base(fleet) { _pattern = @"<td class=nachricht width=120>{0}</td>\s*<td width=20 class=nachricht>(?<level>[^<]+)</td>"; _parser = new ObjectParser { Object = _fleet, Pattern = _pattern, Patterns = FleetParser.Patterns }; }
public ReportDefenceParser(Defence defence) : base(defence) { _pattern = @"<td class=nachricht width=120>{0}</td>\s*<td width=20 class=nachricht>(?<level>[^<]+)</td>"; _parser = new ObjectParser { Object = _defence, Pattern = _pattern, Patterns = DefenceParser.Patterns }; }
public InternalWeaponParser(Fleet fleet) : base(fleet) { //>MoŸdzierz</a> (dostêpne: <b>2</b>, mo¿liwe: <b>0</b>) _pattern = @">{0}</a> \(dost.pne:\s+<b>(?<level>[0-9]+)</b>"; _parser = new ObjectParser { Object = _fleet, Pattern = _pattern, Patterns = FleetParser.Patterns }; }
public InternalResearchParser(Research research) : base(research) { //>Technologia kopalni</a> (Poziom 19) _pattern = @">{0}</a> \(Poziom\s+(?<level>[0-9]+)\)"; _parser = new ObjectParser { Object = _research, Pattern = _pattern, Patterns = ResearchParser.Patterns }; }
public ReportResearchParser(Research research) : base(research) { _pattern = @"<td class=nachricht width=120>{0}</td>\s*" + @"<td width=20 class=nachricht>(?<level>[^<]+)</td>"; _parser = new ObjectParser { Object = _research, Pattern = _pattern, Patterns = ResearchParser.Patterns }; }
public OrderFleetParser(Fleet fleet) : base(fleet) { //'1 Transmiter<br>1 Sonda szpiegowska<br>1 Recycler<br>' _pattern = @"(?<level>[0-9]+) {0}<br>"; _parser = new ObjectParser { Object = _fleet, Pattern = _pattern, Patterns = FleetParser.Patterns }; }
public InternalOrderParser(Fleet fleet) : base(fleet) { _pattern = @"setMax\('ship_{0}', (?<level>[0-9]+)\)"; string[] _patterns = new string[15]; for (int i = 0; i < 15; i++) { _patterns[i] = (i + 1).ToString(); } _parser = new ObjectParser { Object = _fleet, Pattern = _pattern, Patterns = _patterns }; }