Beispiel #1
0
 public MPSpawnableCharacter(MPCharacterConfig config, int formationIndex, bool isFemale, bool isPlayer = false)
 {
     HeroClass          = config.HeroClass;
     SelectedFirstPerk  = config.SelectedFirstPerk;
     SelectedSecondPerk = config.SelectedSecondPerk;
     IsHero             = config.IsHero;
     IsFemale           = isFemale;
     FormationIndex     = (FormationClass)formationIndex;
     IsPlayer           = isPlayer;
 }
 public override void SetConfig(TeamConfig teamConfig, CharacterConfig config, bool isAttacker)
 {
     if (!(config is MPCharacterConfig mpConfig))
     {
         return;
     }
     _config     = mpConfig;
     _isAttacker = isAttacker;
     FirstPerks.SelectedIndex  = _config.SelectedFirstPerk;
     SecondPerks.SelectedIndex = _config.SelectedSecondPerk;
     IsHero.Value      = _config.IsHero;
     FemaleRatio.Value = _config.FemaleRatio;
     SetCharacterToViewModel();
 }