Example #1
0
        public static CharacterRace GetRace([NotNull] this CharBaseInfoEntry entry)
        {
            if (entry == null)
            {
                throw new ArgumentNullException(nameof(entry));
            }

            return((CharacterRace)entry.RaceId);
        }
Example #2
0
        public static CharacterClass GetClass([NotNull] this CharBaseInfoEntry entry)
        {
            if (entry == null)
            {
                throw new ArgumentNullException(nameof(entry));
            }

            return((CharacterClass)entry.ClassId);
        }