public ResourceTroup( Server server, Profile profile, ResourceVillage resourceVillage) { _server = server; _profile = profile; _resourceVillage = resourceVillage; _unitType = new string[] { "eigene", "im Dorf", "auswärts", "unterwegs" }; _parserMask = _server.Local.Config.Archer ? @"\d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+" : @"\d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+"; _troupTable = _server.Local.Config.Archer ? Enum.GetValues(typeof(TroupTable)).Cast <TroupTable>( ) : Enum.GetValues(typeof(TroupTable)).Cast <TroupTable>( ) .Except(new TroupTable[] { TroupTable.UNIT_ARCHER, TroupTable.UNIT_MARCHER }); _troupType = Enum.GetValues(typeof(TroupType)).Cast <TroupType>( ); }
public ConquerData( ResourcePlayer resourcePlayer, ResourceVillage resourceVillage) { _resourcePlayer = resourcePlayer; _resourceVillage = resourceVillage; }
public ResourceConquer( Server server, ResourcePlayer resourcePlayer, ResourceVillage resourceVillage) { _server = server; _resourcePlayer = resourcePlayer; _resourceVillage = resourceVillage; }