/// <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); }
private static PlayerCharacterPrivateState GetPrivateState(ICharacter character) { return(PlayerCharacter.GetPrivateState(character)); }
public static PlayerCharacterAchievements SharedGetAchievements(this ICharacter character) { return(PlayerCharacter.GetPrivateState(character) .Achievements); }
public static PlayerCharacterQuests SharedGetQuests(this ICharacter character) { return(PlayerCharacter.GetPrivateState(character) .Quests); }
public static PlayerCharacterTechnologies SharedGetTechnologies(this ICharacter character) { return(PlayerCharacter.GetPrivateState(character) .Technologies); }