Skip to content

Changes from 1.6.0 to 2.0

Andrej Dobes edited this page Oct 10, 2018 · 2 revisions

PacketClass attribute

  • Attribute to mark a class as serializable providing packet number.

PacketProperty attribute

  • Attribute to mark a property (of a class containing PacketClass attribute) to be serialized providing an order in which the properties should be serialized.

PacketSerializer class

  • Newly added class to allow serialization of objects which have PacketClassAttribute.
  • Class provides extension methods ToPacket() and FromPacket() to serialize/deserialize an object.

ByteBuffer class

  • Added methods to write and read PacketGuid without providing an order of bytes.
  • Added methods to write and read types Single (float), double, decimal, DateTime and Guid.

Client class

  • TransformStreamToPackets method can now handle streams bigger than 10KB.

Server class

  • Removed ctor without IP address to avoid hardcoded value (possible security issue).