コード例 #1
0
        public User FindUser(int id)
        {
            User ret;

            if (!_users.TryGetValue(id, out ret))
            {
                return(null);
            }
            else
            {
                return(ret);
            }
        }
コード例 #2
0
        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);
        }