public void TokenCallback(ParadoxParser parser, string token) { switch (token) { case "name": Name = parser.ReadString(); break; case "leader": Leader = parser.Parse(new ParadoxId()); break; case "unit": Units.Add(parser.Parse(new Unit())); break; case "attachments": Attachments = parser.ReadList(() => parser.Parse (new ParadoxId())); break; } }
public void TokenCallback(ParadoxParser parser, string token) { switch (token) { case "name": Name = parser.ReadString(); break; case "leader": Leader = parser.Parse(new ParadoxId()); break; case "unit": Units.Add(parser.Parse(new Unit())); break; case "attachments": Attachments = parser.ReadList(() => parser.Parse(new ParadoxId())); break; } }