Class OnlineSession
public sealed class OnlineSession : IOnlineSession
- Inheritance
-
OnlineSession
- Implements
- Inherited Members
Constructors
OnlineSession()
public OnlineSession()
Properties
Code
Join code for the current lobby, when this process has one. Not written to the log.
public string? Code { get; }
Property Value
CrossPlay
Set from settings before create, search, or join. Default is on.
public bool CrossPlay { get; set; }
Property Value
Current
public LobbyKey? Current { get; }
Property Value
Instance
public static OnlineSession Instance { get; }
Property Value
Launch
public LaunchStore Launch { get; }
Property Value
Listings
public IReadOnlyList<LobbyListing> Listings { get; }
Property Value
LocalPlayer
public PlayerKey? LocalPlayer { get; }
Property Value
Pipe
Pipe for the current match, or the pipe the next create would use.
public SessionPipe Pipe { get; }
Property Value
Methods
Create(LobbyKind, int, string)
public SessionResult Create(LobbyKind kind, int maxMembers, string game)
Parameters
Returns
Invite()
public InviteAction Invite()
Returns
Join(LobbyKey)
public SessionResult Join(LobbyKey lobby)
Parameters
lobbyLobbyKey
Returns
JoinCode(string, string)
public SessionResult JoinCode(string game, string code)
Parameters
Returns
Leave()
public void Leave()
Link(PlayerKey)
public PeerLink Link(PlayerKey player)
Parameters
playerPlayerKey
Returns
Members()
public IReadOnlyList<MemberCard> Members()
Returns
Poll()
public IReadOnlyList<SessionPacket> Poll()
Returns
Search(string)
public SessionResult Search(string game)
Parameters
gamestring
Returns
Send(PlayerKey, byte[], bool)
public 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.
public void Tick()
Events
PortraitReady
public event Action? PortraitReady