Crate tentacli_packet

Source

Derive Macros§

LoginPacket
LoginPacket is a part of tentacli-based projects. This proc-macro allows to send and receive packets from WoW Login server. #[depends_on] attribute indicates that the field depends on another fields. These fields will be converted into bytes and the byte-array will be used as dependency for read_from method of BinaryConverter
Segment
Segment is a part of tentacli-based projects. This proc-macro is used mostly for serialization, when there’s a need to serialize set of fields into byte-array. Can be useful for sharing duplicated parts between different packets. #[depends_on] attribute indicates that the field depends on another fields. These fields will be converted into bytes and the byte-array will be used as dependency for read_from method of BinaryConverter. #[conditional] attribute indicates that the field’s value will be parsed only if condition is true. The result for condition will be parsed from implemented method with same name as field name.
WorldPacket
WorldPacket is a part of tentacli-based projects. This proc-macro allows to send and receive packets from WoW World server. #[depends_on] attribute indicates that the field depends on another fields. These fields will be converted into bytes and the byte-array will be used as dependency for read_from method of BinaryConverter. #[conditional] attribute indicates that the field’s value will be parsed only if condition is true. The result for condition will be parsed from implemented method with same name as field name.