Пример #1
0
        public BattleSkillsModel(BattleCharacterModel targetModel)
        {
            this.currentSkillPoint = 0;

            for (int slotIndex = 0; slotIndex < slots.Length; slotIndex++)
            {
                slots[slotIndex] = new BattleSkillModel(targetModel, (SlotNumber)slotIndex);
            }
        }
Пример #2
0
        public static BattleCharacterModel CreateCharacter(BattleViewModel view, DirectorModel director, CharacterModel characterModel)
        {
            BattleCharacterModel battleCharacterModel = new BattleCharacterModel(view, director, characterModel);

            battleCharacterModel.SetInternalRefference();

            // オブジェクトを追加
            BattleGlobal.Instance.ObjectsUpdater.AddObject(battleCharacterModel);

            return(battleCharacterModel);
        }
Пример #3
0
 public BattleSkillModel(BattleCharacterModel targetModel, BattleSkillsModel.SlotNumber slotNumber)
 {
     this.targetModel      = targetModel;
     this.currentSkillRank = 1;
     this.skillModel       = targetModel.Character.GetSkillModel((uint)slotNumber);
 }