lucaspoffo / renet

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

Added a helper method to get the last package of a unreliable channel #90

Closed TrustNoOneElse closed 1 year ago

TrustNoOneElse commented 1 year ago

The goal of this pr is to fixes #80.

lucaspoffo commented 1 year ago

This helper function made sense when the unreliable channel had the option to be sequenced, when this was set, the unreliable messages were received in order, and messages received out of order were dropped. So when using this option, you usually cared about the last message, inputs for example (only the last one was used). But now, the unreliable channel does not have this option, and the logic for sequenced messages needs to be implemented by the user side.

So this auxiliary function doesn't make much sense now and could confuse the user. My bad, I should have closed the issue before.