예제 #1
0
        private UserInfo NewUserInfo(int id)
        {
            UserInfo user = null;

            if (m_UnusedUsers.Count > 0)
            {
                user = m_UnusedUsers.Dequeue();
                user.Reset();
                user.InitId(id);
            }
            else
            {
                user = new UserInfo(id);
            }
            return(user);
        }