Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
        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;
            }
        }