Exemple #1
0
        public int GetNextUId(int lastUid)
        {
            int nextuid      = -1;
            int lastPosition = getPosition(lastUid);

            for (int i = lastPosition; i < 4; i++)
            {
                //1不为空 2不能离开了
                if (PlayerList[i] != null && !LeaveUIdList.Contains(PlayerList[i].UserId))
                {
                    nextuid = PlayerList[i].UserId;
                    break;
                }
            }

            return(nextuid);
        }
Exemple #2
0
 public bool IsOffline(int uid)
 {
     return(LeaveUIdList.Contains(uid));
 }