public void TokenCallback(ParadoxParser parser, string token) { switch (token) { case "name": Name = parser.ReadString(); break; case "type": Type = parser.ReadString(); break; case "morale": Morale = parser.ReadDouble(); break; case "strength": Strength = parser.ReadDouble(); break; } }
public void TokenCallback(ParadoxParser parser, string token) { switch (token) { case "name": Name = parser.ReadString(); break; case "tax": Tax = parser.ReadDouble(); break; case "add_core": Cores.Add(parser.ReadString()); break; case "top_provinces": TopProvinces = parser.ReadStringList(); break; case "army": Armies.Add(parser.Parse(new Army())); break; } }
void ReadInto(ParadoxParser x, ref int?tech, ref double?progress) { tech = x.ReadInt32(); progress = x.ReadDouble(); }