valence/crates/valence_client/src
Ryan Johnson c5557e744d
Move packets out of valence_core. (#335)
## Description

- Move all packets out of `valence_core` and into the places where
they're actually used. This has a few benefits:
- Avoids compiling code for packets that go unused when feature flags
are disabled.
- Code is distributed more uniformly across crates, improving
compilation times.
- Improves local reasoning when everything relevant to a module is
defined in the same place.
  - Easier to share code between the packet consumer and the packet.
- Tweak `Packet` macro syntax.
- Update `syn` to 2.0.
- Reorganize some code in `valence_client` (needs further work).
- Impl `WritePacket` for `Instance`.
- Remove packet enums such as `S2cPlayPacket` and `C2sPlayPacket`.
- Replace `assert_packet_count` and `assert_packet_order` macros with
non-macro methods.
To prevent this PR from getting out of hand, I've disabled the packet
inspector and stresser until they have been rewritten to account for
these changes.
2023-05-29 01:36:11 -07:00
..
action.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
chat.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
command.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
custom_payload.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
event_loop.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
hand_swing.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
interact_block.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
interact_entity.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
interact_item.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
keepalive.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
lib.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
movement.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
op_level.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
packet.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
resource_pack.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
settings.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
status.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
teleport.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
title.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
weather.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00