Example #1
0
        private void decode_EventData(PhotonCmdHeader cmd_hdr, BinaryReader packet)
        {
            int event_code = packet.ReadByte(); // Event Code

            Event_Photon_Cmd_Info?.Invoke("Photon Reliable Event Data - " + event_code);

            var evResponse = new ReliableMessage_EventData();

            evResponse.evType = (AlbionEvent)event_code;

            Event_Photon_ReliableEvent?.Invoke(evResponse);
        }
 private void PhotonDecoder_Event_Photon_ReliableEvent(ReliableMessage_EventData info)
 {
     packetStats.photon_reliable_event++;
     // LogEvent("Albion Event: " + info.evType);
 }