public DnDWizard(DnDCharacter character, DnDMagicSchool specialization, List<DnDMagicSchool> forbiddenSchools, int level = 1) : base(character) { Init(); mSpecialization = specialization; mForbiddenSchools = forbiddenSchools; mClassLevel = level; }
public DnDWizard(DnDCharacter character, DnDMagicSchool specialization, List <DnDMagicSchool> forbiddenSchools, int level = 1) : base(character) { Init(); mSpecialization = specialization; mForbiddenSchools = forbiddenSchools; mClassLevel = level; }
public DnDClassSoul(DnDCharacter character) { mCharacter = character; }
private void InitCharacters() { string data = ""; data = IOManager.ReadData(mFilePath + cCharFileName); if (!string.IsNullOrEmpty(data)) { mCharacters.Clear(); JSONObject obj = JSONObject.Parse(data); JSONArray array = obj.GetArray(SerializableObject.CHARACTER_LIST); foreach (var val in array) { PlayerCharacter newChar = null; CharacterGame game = (CharacterGame)(int)val.Array[0].Number; switch (game) { case CharacterGame.DnD_3_5: newChar = new DnDCharacter(); break; default: break; } if (newChar != null) { newChar.Deserialize(val.Array[1].Obj); mCharacters.Add(newChar); } } } }
public DnDSorcerer(DnDCharacter character, int level = 1) : base(character) { Init(); mClassLevel = level; }
public DnDWizard(DnDCharacter character, int level = 1) : base(character) { Init(); mClassLevel = level; }