lucaspoffo / renet

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

Implement `Component` for `ClientId` #140

Closed sylv256 closed 9 months ago

sylv256 commented 9 months ago

This is especially useful for tracking players in a server.

ActuallyHappening commented 9 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 9 months ago

Thanks!