Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Rich invites #17

@xMyran

Description

@xMyran

Unet should support rich invites for Steam/Galaxy/Discord, something like this might work:

Unet services subscribe to the appropriate events (for Steam, OnRichPresenceJoinRequested and OnGameLobbyJoinRequested, maybe more).
Whenever such an event is triggered unet requests the lobby.
When the lobby request gets back unet calls its own callback for OnRichJoinLobby(LobbyInfo).

For this to work unet also needs to implement a connect string, this would work something like this:
Whenever a unet service joins or leaves a lobby some function like Unet::RefreshConnectionStrings would be called.
RefreshConnectionStrings would work something like:
First it builds a connection string with the current lobby lobbyinfo, basically append each entry point (steam would have "st99999999", galaxy would have "gx9999999", enet would be "ip255.255.255.255:6555"), so you get a string which holds everything. ("st99999999 gx9999999 ip255.255.255.255:6555")
Send that string to each service, which for Steam and Galaxy just sets the "connect" string.
This is the string we get from the platform callbacks (OnRichPresenceJoinRequested...) and we use to get the lobby.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions