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

Implement `Component` for `ClientId` #140

Closed sylv256 closed 10 months ago

sylv256 commented 10 months ago

This is especially useful for tracking players in a server.

ActuallyHappening commented 10 months ago

Yes I want this as well I got around it by creating a new type called PlayerId, but implementing Component on ClientId is far better, since you could write type PlayerId = ClientId if you still wanted to retain the explicitness of a custom name

lucaspoffo commented 10 months ago

Thanks!