fishfolk / bones

An easy-to-use game engine for making real games.
https://fishfolk.org/development/bones/introduction/
Other
210 stars 20 forks source link

feat(networking): Add 'DisconnectedPlayers' resource to net session runner #409

Closed MaxCWhitehead closed 3 months ago

MaxCWhitehead commented 3 months ago

Each frame DisconnectedPlayers resource is updated in net session, can be used by game to determine which players may not be connected.

If rollback before a disconnect - player is still listed in resource, because dc'd players are persisted on runner directly + copied to resource.