Interface IOnlineSession
The session Banqi and Sven call. Steam and Epic Online Services stay behind it.
public interface IOnlineSession
Properties
Code
Join code for the current lobby, when this process has one. Not written to the log.
string? Code { get; }
Property Value
CrossPlay
Set from settings before create, search, or join. Default is on.
bool CrossPlay { get; set; }
Property Value
Current
LobbyKey? Current { get; }
Property Value
Launch
LaunchStore Launch { get; }
Property Value
Listings
IReadOnlyList<LobbyListing> Listings { get; }
Property Value
LocalPlayer
PlayerKey? LocalPlayer { get; }
Property Value
Pipe
Pipe for the current match, or the pipe the next create would use.
SessionPipe Pipe { get; }
Property Value
Methods
Create(LobbyKind, int, string)
SessionResult Create(LobbyKind kind, int maxMembers, string game)
Parameters
Returns
Invite()
InviteAction Invite()
Returns
Join(LobbyKey)
SessionResult Join(LobbyKey lobby)
Parameters
lobbyLobbyKey
Returns
JoinCode(string, string)
SessionResult JoinCode(string game, string code)
Parameters
Returns
Leave()
void Leave()
Link(PlayerKey)
PeerLink Link(PlayerKey player)
Parameters
playerPlayerKey
Returns
Members()
IReadOnlyList<MemberCard> Members()
Returns
Poll()
IReadOnlyList<SessionPacket> Poll()
Returns
Search(string)
SessionResult Search(string game)
Parameters
gamestring
Returns
Send(PlayerKey, byte[], bool)
bool Send(PlayerKey to, byte[] data, bool reliable)
Parameters
Returns
Tick()
Pumps EOS on this thread after the platform exists. Steam callbacks stay on SteamManager.RunCallbacks.
void Tick()
Events
PortraitReady
event Action? PortraitReady