valence/crates
Joel Ellis f0027aa097
Colorise the inspector output based on S2C or C2S (#242)
<!-- Please make sure that your PR is aligned with the guidelines in
CONTRIBUTING.md to the best of your ability. -->
<!-- Good PRs have tests! Make sure you have sufficient test coverage.
-->

## Description

<!-- Describe the changes you've made. You may include any justification
you want here. -->
I've used the popular `owo-colors` library to colourise the output of
the `packet_inspector`.
This makes it a lot easier to see who's sending what for debugging
purposes.

In future, I'd like to be able to filter out common, low-information
packets like `SetPlayerPosition` and `KeepAlive` as well, but that's not
in this PR.


![image](https://user-images.githubusercontent.com/28905212/218880818-69c0461c-bd23-45c4-9fd4-7c5868be4b67.png)

## Test Plan

No tests - just eyeball 😄.
2023-02-14 15:31:17 -08:00
..
packet_inspector Colorise the inspector output based on S2C or C2S (#242) 2023-02-14 15:31:17 -08:00
playground ECS Rewrite (#184) 2023-02-11 09:51:53 -08:00
valence Clean up dimension/biome code (#239) 2023-02-14 03:36:52 -08:00
valence_anvil ECS Rewrite (#184) 2023-02-11 09:51:53 -08:00
valence_nbt Add a simple SNBT parser (#201) 2023-02-03 03:16:27 -08:00
valence_protocol Clean up dimension/biome code (#239) 2023-02-14 03:36:52 -08:00
valence_protocol_macros ECS Rewrite (#184) 2023-02-11 09:51:53 -08:00
valence_spatial_index Reorganize Packages (#180) 2022-12-29 16:51:05 -08:00