Example #1
0
        public void Start()
        {
            activateBuffer     = 0;
            deactivateBuffer   = 0;
            toggleBuffer       = 0;
            currentStateBuffer = 0;

            AGActivateChannel = GameEvents.FindEvent <EventData <byte, object> >("onSerialReceived" + InboundPackets.ActionGroupActivate);
            if (AGActivateChannel != null)
            {
                AGActivateChannel.Add(actionActivateCallback);
            }
            AGDeactivateChannel = GameEvents.FindEvent <EventData <byte, object> >("onSerialReceived" + InboundPackets.ActionGroupDeactivate);
            if (AGDeactivateChannel != null)
            {
                AGDeactivateChannel.Add(actionDeactivateCallback);
            }
            AGToggleChannel = GameEvents.FindEvent <EventData <byte, object> >("onSerialReceived" + +InboundPackets.ActionGroupToggle);
            if (AGToggleChannel != null)
            {
                AGToggleChannel.Add(actionToggleCallback);
            }

            AGStateChannel = GameEvents.FindEvent <EventData <byte, object> >("toSerial" + OutboundPackets.ActionGroups);
            GameEvents.FindEvent <EventData <byte, object> >("onSerialChannelSubscribed" + OutboundPackets.ActionGroups).Add(resendActionGroup);
        }
Example #2
0
        public void Start()
        {
            activateBuffer     = 0;
            deactivateBuffer   = 0;
            toggleBuffer       = 0;
            currentStateBuffer = 0;

            AGActivateChannel = GameEvents.FindEvent <EventData <byte, object> >("onSerialReceived13");
            if (AGActivateChannel != null)
            {
                AGActivateChannel.Add(actionActivateCallback);
            }
            AGDeactivateChannel = GameEvents.FindEvent <EventData <byte, object> >("onSerialReceived14");
            if (AGDeactivateChannel != null)
            {
                AGDeactivateChannel.Add(actionDeactivateCallback);
            }
            AGToggleChannel = GameEvents.FindEvent <EventData <byte, object> >("onSerialReceived15");
            if (AGToggleChannel != null)
            {
                AGToggleChannel.Add(actionToggleCallback);
            }

            AGStateChannel = GameEvents.FindEvent <EventData <byte, object> >("toSerial23");
        }