示例#1
0
 public void InitSkillSlot(int _slotType, int _skillID, int _passiveID)
 {
     if (base.actorPtr == 0)
     {
         DebugHelper.Assert(base.actorPtr == 1);
     }
     else
     {
         Skill        skill   = new Skill(_skillID);
         PassiveSkill passive = null;
         if (_passiveID != 0)
         {
             passive = new PassiveSkill(_passiveID, base.actorPtr);
         }
         SkillSlot slot = new SkillSlot((SkillSlotType)_slotType);
         slot.Init(ref this.actorPtr, skill, passive);
         slot.InitSkillControlIndicator();
         this.SkillSlotArray[_slotType] = slot;
     }
 }