コード例 #1
0
		public DnDWizard(DnDCharacter character, DnDMagicSchool specialization, List<DnDMagicSchool> forbiddenSchools, int level = 1) : base(character)
		{
			Init();
			mSpecialization = specialization;
			mForbiddenSchools = forbiddenSchools;
			mClassLevel = level;
		}
コード例 #2
0
 public DnDWizard(DnDCharacter character, DnDMagicSchool specialization, List <DnDMagicSchool> forbiddenSchools, int level = 1) : base(character)
 {
     Init();
     mSpecialization   = specialization;
     mForbiddenSchools = forbiddenSchools;
     mClassLevel       = level;
 }
コード例 #3
0
 public DnDClassSoul(DnDCharacter character)
 {
     mCharacter = character;
 }
コード例 #4
0
		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);
					}
				}
			}
		}
コード例 #5
0
		public DnDSorcerer(DnDCharacter character, int level = 1) : base(character)
		{
			Init();
			mClassLevel = level;
		}
コード例 #6
0
 public DnDSorcerer(DnDCharacter character, int level = 1) : base(character)
 {
     Init();
     mClassLevel = level;
 }
コード例 #7
0
		public DnDWizard(DnDCharacter character, int level = 1) : base(character)
		{
			Init();
			mClassLevel = level;
		}
コード例 #8
0
		public DnDClassSoul(DnDCharacter character)
		{
			mCharacter = character;
		}
コード例 #9
0
 public DnDWizard(DnDCharacter character, int level = 1) : base(character)
 {
     Init();
     mClassLevel = level;
 }