Пример #1
0
 void cl_UpdateSkilldeckSkills(List <int> aSkilldeckSkills)
 {
     SkilldeckSkills = new FSkill_Type[mTiers * mTierSlots];
     for (var i = 0; i < aSkilldeckSkills.Count; i++)
     {
         if (aSkilldeckSkills[i] != 0)
         {
             SkilldeckSkills[i] = SBDBSync.GetResourceObject <FSkill_Type>(aSkilldeckSkills[i]);
         }
         else
         {
             SkilldeckSkills[i] = null;
         }
     }
     //OnSkilldeckChanged();
 }
Пример #2
0
        void ShiftToNPCTypeID(int aNPCTypeID)
        {
            NPC_Type NPCType;

            TestInvariant();
            if (aNPCTypeID != 0)
            {
                NPCType = SBDBSync.GetResourceObject <NPC_Type>(aNPCTypeID);
                ShiftAppearance(NPCType);
            }
            else
            {
                UnshiftAppearance();
            }
            TestInvariant();
        }
Пример #3
0
        void cl_SetSkills(List <int> aCharacterSkills, List <int> aSkilldeckSkills)
        {
            var i = 0;

            while (i < aCharacterSkills.Count)
            {
                var skillResource = SBDBSync.GetResourceObject <FSkill_Type>(aCharacterSkills[i]);
                if (skillResource == null)
                {
                    throw new Exception("Skill not found: " + aCharacterSkills[i]);
                }
                CharacterSkills.Add(skillResource);
                ++i;
            }
            cl_UpdateSkilldeckSkills(aSkilldeckSkills);
            //OnCharacterSkillsChanged();
        }