valence/crates/valence_protocol_macros
Ryan Johnson 7af119da72
Replace EncodePacket and DecodePacket with Packet (#261)
## Description

Combines the `EncodePacket` and `DecodePacket` trait into a single
`Packet` trait. This makes `valence_protocol` simpler and easier to use.
This can be done because all packets were made to be bidirectional in
#253.

Additionally, a `packet_id` method has been added. This should help with
#238.

## Test Plan

Steps:
1. Run examples, packet_inspector, etc. Behavior should be the same.
2023-02-25 11:21:25 -08:00
..
src Replace EncodePacket and DecodePacket with Packet (#261) 2023-02-25 11:21:25 -08:00
Cargo.toml ECS Rewrite (#184) 2023-02-11 09:51:53 -08:00