Beispiel #1
0
        public static ServerCommandVersionFourMessageClient Send(string adminId, string adminToken, int eventIndex,
                                                                 bool isFake, bool announceEvent, InGameEventType eventType,
                                                                 string action)
        {
            ServerCommandVersionFourMessageClient msg = new ServerCommandVersionFourMessageClient
            {
                AdminId       = adminId,
                AdminToken    = adminToken,
                EventIndex    = eventIndex,
                IsFake        = isFake,
                AnnounceEvent = announceEvent,
                EventType     = eventType,
                Action        = action
            };

            msg.Send();
            return(msg);
        }
Beispiel #2
0
        public static ServerCommandVersionFourMessageClient Send(string adminId, string adminToken, int eventIndex,
                                                                 bool isFake, bool announceEvent, InGameEventType eventType,
                                                                 string action, BaseEventParameters eventParameters = null)
        {
            ServerCommandVersionFourMessageClient msg = new ServerCommandVersionFourMessageClient
            {
                AdminId                   = adminId,
                AdminToken                = adminToken,
                EventIndex                = eventIndex,
                IsFake                    = isFake,
                AnnounceEvent             = announceEvent,
                EventType                 = eventType,
                Action                    = action,
                SerializedEventParameters = JsonConvert.SerializeObject(eventParameters)
            };

            msg.Send();
            return(msg);
        }