예제 #1
0
        public static void HandleRequest(Request request)
        {
            var gameID       = (TdfInteger)request.Data["GID"];
            var gameSettings = (TdfInteger)request.Data["GSET"];

            Log.Info(string.Format("Client {0} setting game settings to {1}", gameID.Value, gameSettings.Value));

            GameManager.Games[gameID.Value].Settings = gameSettings.Value;

            request.Reply();

            GameSettingsChangeNotification.Notify(request.Client);
        }
        public static void HandleRequest(Request request)
        {
            var gameID         = (TdfInteger)request.Data["GID"];
            var playerCapacity = (TdfList)request.Data["PCAP"];

            Log.Info(string.Format("Client {0} setting game player capacity to {1}", gameID.Value, playerCapacity.List[0]));

            GameManager.Games[gameID.Value].Capacity = playerCapacity.List;

            request.Reply();

            GameSettingsChangeNotification.Notify(request.Client);
        }