示例#1
0
        private void open(SoldierClass soldierClass)
        {
            SoldierClass openSoldierClass = ProjectState.setOpenSoldierClass(soldierClass.getInternalName());

            setupMenuItemOpen();

            tDisplayName.Text = soldierClass.metadata.displayName;
            tDescription.Text = soldierClass.metadata.description;
            tIconString.Text  = soldierClass.metadata.iconString;

            tNumInForcedDeck.Text    = soldierClass.experience.numberInForcedDeck.ToString();
            tNumInDeck.Text          = soldierClass.experience.numberInDeck.ToString();
            tKillAssistsPerKill.Text = soldierClass.experience.killAssistsPerKill.ToString();

            tSquaddieLoadout.Text = soldierClass.equipment.squaddieLoadout;
            tAllowedArmor.Text    = soldierClass.equipment.allowedArmors;

            BindingList <Weapon> weapons = new BindingList <Weapon>(soldierClass.equipment.weapons);

            lWeapons.DataSource = weapons;

            openSoldierStats(soldierClass);
            openSoldierAbilities(soldierClass);
        }
示例#2
0
 private static void deleteClass(SoldierClass soldierClass)
 {
     deleteClass(soldierClass.getInternalName());
 }
示例#3
0
 public static string getOpenSoldierClassInternalName()
 {
     return(openSoldierClass.getInternalName());
 }