lucaspoffo / renet

Server/Client network library for multiplayer games with authentication and connection management made with Rust
Apache License 2.0
685 stars 68 forks source link

add: impl `Reflect` on `ClientId` #130

Closed ActuallyHappening closed 2 weeks ago

ActuallyHappening commented 11 months ago

This optionally implements Reflect on the ClientId type. I'll want this (eventually) when I begin serialising my scenes, since I believe bevy relies on Reflect (not necessarily Serialise and Deserialise) but I might be wrong.

sylv256 commented 10 months ago

Additionally, I'd find it very useful for it to implement Component. I'll make a PR shortly.

sylv256 commented 10 months ago

140

lucaspoffo commented 2 weeks ago

I changed ClientId back to u64. Mostly because ease of integration, there is always a derive that everyone needs. In the end a u64 simplifies this.