Exemplo n.º 1
0
        public int getPlayerCount()
        {
            List <RoomInfo> list  = GameManager.getRoomInfos();
            int             count = 0;

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

            return(Tool.ToJson(list));
        }