Blaze.Server.GameSettingsChangeNotification.Notify C# (CSharp) Метод

Notify() публичный статический Метод

public static Notify ( Client client ) : void
client Client
Результат void
        public static void Notify(Client client)
        {
            var game = GameManager.Games[client.GameID];

            var data = new List<Tdf>
            {
                new TdfInteger("ATTR", (ulong)game.Settings),
                new TdfInteger("GID", game.ID)
            };

            client.Notify(Component.GameManager, 0x6E, 0, data);
        }
    }

Usage Example

Пример #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);
        }
All Usage Examples Of Blaze.Server.GameSettingsChangeNotification::Notify
GameSettingsChangeNotification