public User FindUser(int id) { User ret; if (!_users.TryGetValue(id, out ret)) { return(null); } else { return(ret); } }
public Character FindCharacter(int id) { Character character; if (_characterPool.TryGetValue(id, out character)) { return(character); } if (_temporaryCharacterPool.TryGetValue(id, out character)) { return(character); } return(null); }