Example #1
0
        private void PacketSequenceComplete(BMSByte data, int groupId, byte receivers, bool isReliable)
        {
            // Pull the frame from the sent message
            FrameStream frame = Factory.DecodeMessage(data.CompressBytes(), false, groupId, currentReadingPlayer, receivers);

            if (isReliable)
            {
                frame.ExtractReliableId();

                // TODO:  If the current reliable index for this player is not at
                // the specified index, then it needs to wait for the correct ordering
                currentReadingPlayer.WaitReliable(frame);
            }
            else
            {
                FireRead(frame, currentReadingPlayer);
            }
        }