Example #1
0
        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;
            }
        }
Example #2
0
        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;
            }
        }
 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;
     }
 }
Example #4
0
 void ReadInto(ParadoxParser x, ref int?tech, ref double?progress)
 {
     tech     = x.ReadInt32();
     progress = x.ReadDouble();
 }
 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;
     }
 }