Exemple #1
0
        private int GetLevelByClass(CNWSCreatureStats stats, uint classType)
        {
            for (int i = 0; i < stats.m_nNumMultiClasses; i++)
            {
                CNWSCreatureStats_ClassInfo classInfo = stats.m_ClassInfo[i];
                if (classInfo.m_nClass == classType)
                {
                    return(classInfo.m_nLevel);
                }
            }

            return(0);
        }
Exemple #2
0
 internal CreatureClassInfo(CNWSCreatureStats_ClassInfo classInfo)
 {
     this.classInfo = classInfo;
 }
Exemple #3
0
 internal MemorizedSpellSlot(CNWSCreatureStats_ClassInfo classInfo, byte spellLevel, byte spellSlot)
 {
     this.classInfo  = classInfo;
     this.spellLevel = spellLevel;
     this.spellSlot  = spellSlot;
 }