public void DestroyGame(DestroyDebugGameRequest destroyDebugGameRequest)
 {
     myGateway.Emit("Area.Debug.Destroy", destroyDebugGameRequest);
 }
Exemplo n.º 2
0
        private void GameDestroy(UserLogicModel user, DestroyDebugGameRequest data)
        {
            myServerManager.UnregisterGameServer(user);

            var room = rooms.Filter(a => a.RoomID == data.RoomID)[0];
            if (room == null)
            {
                ServerLogger.LogError("--room not found ", data);
                return;
            }
            rooms.Remove(room);
            room.Fiber.Reset();

        }
 public void DestroyGame(DestroyDebugGameRequest destroyDebugGameRequest)
 {
     clientDebugManager.DestroyGame(destroyDebugGameRequest);
 }