public List <string> GetOnlineList() { if (!Authed.ContainsKey(CurrentClient.ClientId)) { return(null); } return(Global.PlayerService.GetOnline().Select(p => p.PlayerData.Name).ToList()); }
public ClientSession GetSessionByCharacterId(long characterId) { if (_sessions.ContainsKey(characterId)) { return(_sessions[characterId]); } return(null); }
internal List <ShopSkillDTO> GetShopSkillsByShopId(int shopId) { if (_shopSkills.ContainsKey(shopId)) { return(_shopSkills[shopId]); } return(new List <ShopSkillDTO>()); }
internal Shop GetShopByMapNpcId(int mapNpcId) { if (_shops.ContainsKey(mapNpcId)) { return(_shops[mapNpcId]); } return(null); }
internal List <NpcMonsterSkill> GetNpcMonsterSkillsByMonsterVNum(short npcMonsterVNum) { if (_monsterSkills.ContainsKey(npcMonsterVNum)) { return(_monsterSkills[npcMonsterVNum]); } return(new List <NpcMonsterSkill>()); }
internal IEnumerable <MapNpc> GetMapNpcsByMapId(short mapId) { if (_mapNpcs.ContainsKey(mapId)) { return(_mapNpcs[mapId]); } return(new List <MapNpc>()); }
public List <Recipe> GetReceipesByMapNpcId(int mapNpcId) { if (_recipes.ContainsKey(mapNpcId)) { return(_recipes[mapNpcId]); } return(new List <Recipe>()); }
public List <DropDTO> GetDropsByMonsterVNum(short monsterVNum) { if (_monsterDrops.ContainsKey(monsterVNum)) { return(_generalDrops.Concat(_monsterDrops[monsterVNum]).ToList()); } return(new List <DropDTO>()); }
internal List <TeleporterDTO> GetTeleportersByNpcVNum(short npcMonsterVNum) { if (_teleporters != null && _teleporters.ContainsKey(npcMonsterVNum)) { return(_teleporters[npcMonsterVNum]); } else { return(new List <TeleporterDTO>()); } }
public TServiceInterface GetService <TServiceInterface>() where TServiceInterface : class { var type = typeof(TServiceInterface).Name; if (_serviceObjects.ContainsKey(type) == false) { throw new ArgumentOutOfRangeException("Service of type \"" + type + "\" not installed yet."); } return(_serviceObjects[type] as TServiceInterface); }
public bool IsMemberOfGroup(long characterId) { return(_characters.ContainsKey(characterId)); }
public ClientSession GetSessionByCharacterId(long characterId) => _sessions.ContainsKey(characterId) ? _sessions[characterId] : null;
public bool IsMemberOfRaid(long characterId) { return(_characters != null && (_characters.ContainsKey(characterId) || _leader.Character.CharacterId == characterId)); }
public void LoadSkills() { Skills = new ThreadSafeSortedList<int, CharacterSkill>(); IEnumerable<CharacterSkillDTO> characterskillDTO = DAOFactory.CharacterSkillDAO.LoadByCharacterId(CharacterId).ToList(); foreach (CharacterSkillDTO characterskill in characterskillDTO.OrderBy(s => s.SkillVNum)) { if (!Skills.ContainsKey(characterskill.SkillVNum)) { Skills[characterskill.SkillVNum] = characterskill as CharacterSkill; } } }