Пример #1
0
        /// <summary>
        /// Please note: only player characters has skills. For NPC/Mobs this method will return null
        /// </summary>
        /// <param name="character"></param>
        /// <returns></returns>
        public static PlayerCharacterSkills SharedGetSkills(this ICharacter character)
        {
            if (!(character.ProtoCharacter is PlayerCharacter))
            {
                return(null);
            }

            return(PlayerCharacter.GetPrivateState(character).Skills);
        }
Пример #2
0
 private static PlayerCharacterPrivateState GetPrivateState(ICharacter character)
 {
     return(PlayerCharacter.GetPrivateState(character));
 }
 public static PlayerCharacterAchievements SharedGetAchievements(this ICharacter character)
 {
     return(PlayerCharacter.GetPrivateState(character)
            .Achievements);
 }
Пример #4
0
 public static PlayerCharacterQuests SharedGetQuests(this ICharacter character)
 {
     return(PlayerCharacter.GetPrivateState(character)
            .Quests);
 }
Пример #5
0
 public static PlayerCharacterTechnologies SharedGetTechnologies(this ICharacter character)
 {
     return(PlayerCharacter.GetPrivateState(character)
            .Technologies);
 }