public static OutAPIResult GenerateEmptyGame(GameServer server, string RoomCode)
        {
            OutAPIResult r    = new OutAPIResult();
            EOneGame     game = new EOneGame(RoomCode);

            GameDataHandle handle = new GameDataHandle(game);

            try
            {
                handle.InitNewGameData();

                if (server.GameDataDic.ContainsKey(RoomCode))
                {
                    r.ErrorMsg = "房间已存在!";
                }
                else
                {
                    server.GameDataDic.Add(RoomCode, handle);
                }
            }
            catch (Exception ex)
            {
                r.ErrorMsg = ex.Message;
            }

            return(r);
        }
        public static OutAPIResult ReCoverData(GameServer server, string RoomCode)
        {
            OutAPIResult r = new OutAPIResult();

            try
            {
                if (server.GameDataDic.ContainsKey(RoomCode))
                {
                    return(r);
                }
                else
                {
                    EOneGame       game   = new EOneGame(RoomCode);
                    GameDataHandle handle = new GameDataHandle(game);

                    server.GameDataDic.Add(RoomCode, handle);
                }
            }
            catch (Exception ex)
            {
                r.ErrorMsg = ex.Message;
            }

            return(r);
        }