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); }
public bool IsOffline(int uid) { return(LeaveUIdList.Contains(uid)); }