Exemple #1
0
        public int getPlayerCount()
        {
            List <RoomInfo> list  = GameManager.getRoomInfos();
            int             count = 0;

            foreach (RoomInfo info in list)
            {
                count += info.Count;
            }
            return(count);
        }
Exemple #2
0
 public int getRoomCount()
 {
     return(GameManager.getRoomInfos(true, true).Count);
 }
Exemple #3
0
        public string getRoomJson(bool hasLock = true, bool hasStart = false)
        {
            List <RoomInfo> list = GameManager.getRoomInfos(hasLock, hasStart);

            return(Tool.ToJson(list));
        }