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: Add socket to NetworkInfo #390

Closed MaxCWhitehead closed 4 months ago

MaxCWhitehead commented 4 months ago

Expose socket via NetworkInfo (resource managed by net session runner).

NetworkMatchSocket resource only exists in menu session. This change makes it easier to get socket from game session.

It might make sense to instead make this a shared resource and add Option so it may be default, however I worry about forgetting to clean this shared resource up when it is no longer relevant (If left multi-player game and went to single player and didn't clear shared resource, we would start executing online paths of code).