C# (CSharp) SagaLib Packet - 19 examples found. These are the top rated real world C# (CSharp) examples of SagaLib.Packet extracted from open source projects. You can rate examples to help us improve the quality of examples.
Defines the base class of a network packet. Packets are send back and forth between the client and server. Different types of packets are used for different purposes. The general packet structure is: PACKET_SIZE (2 bytes), PACKET_ID (2 bytes), PACKET_DATA (x bytes). The id bytes are considered to be part of the data bytes. The size bytes are unencrypted, but the id bytes and all data following are encrypted.