public void TokenCallback(ParadoxParser parser, string token) { if (token == "incoming") { incomings.Add(parser.Parse(new Incoming())); } else if (token == "trade_goods_size") { tradeGoodsSize = parser.ReadDoubleList(); } else { throw new ApplicationException(token + " not recognized"); } }
public void TokenCallback(ParadoxParser parser, string token) { switch (token) { case "development": Development = parser.ReadFloat(); break; case "raw_development": RawDevelopment = parser.ReadFloat(); break; case "capped_development": CappedDevelopment = parser.ReadFloat(); break; case "realm_development": RealmDevelopment = parser.ReadFloat(); break; case "institutions": Institutions = parser.ReadIntList(); break; case "colors": Colors = parser.Parse(new Colors()); break; case "estimated_monthly_income": EstimatedMonthlyIncome = parser.ReadFloat(); break; case "technology": Technology = parser.Parse(new Technology()); break; case "great_power_score": GreatPowerScore = parser.ReadFloat(); break; case "score_rating": ScoreRatings = parser.ReadDoubleList(); break; } }
public void TokenCallback(ParadoxParser parser, string token) { if (token == "incoming") incomings.Add(parser.Parse(new Incoming())); else if (token == "trade_goods_size") tradeGoodsSize = parser.ReadDoubleList(); else throw new ApplicationException(token + " not recognized"); }