Table of Contents

Class SteamLobbyHandler

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class SteamLobbyHandler
Inheritance
SteamLobbyHandler
Inherited Members
Extension Methods

Constructors

SteamLobbyHandler(Action<string, string, bool>, int, bool)

public SteamLobbyHandler(Action<string, string, bool> onJoinedRoomAction, int maxPlayers, bool useSteamNetwork)

Parameters

onJoinedRoomAction Action<string, string, bool>
maxPlayers int
useSteamNetwork bool

Fields

GAME_VERSION_KEY

public const string GAME_VERSION_KEY = "ContentWarningVersion"

Field Value

string

OnHostedAction

public Action<ulong> OnHostedAction

Field Value

Action<ulong>

OnJoinedAction

public Action<string, string, bool> OnJoinedAction

Field Value

Action<string, string, bool>

PHOTON_REGION_KEY

public const string PHOTON_REGION_KEY = "PhotonRegion"

Field Value

string

PHOTON_ROOM_KEY

public const string PHOTON_ROOM_KEY = "Photon"

Field Value

string

PLUGINS_KEY

public const string PLUGINS_KEY = "Plugins"

Field Value

string

PRIVATE_MATCH_KEY

public const string PRIVATE_MATCH_KEY = "PrivateMatch"

Field Value

string

UseSteamNetwork

public bool UseSteamNetwork

Field Value

bool

m_CurrentLobby

public CSteamID m_CurrentLobby

Field Value

CSteamID

m_Joined

public bool m_Joined

Field Value

bool

m_JoiningLobby

public CSteamID m_JoiningLobby

Field Value

CSteamID

m_MaxPlayers

public int m_MaxPlayers

Field Value

int

m_Members

public List<SteamNetworkingIdentity> m_Members

Field Value

List<SteamNetworkingIdentity>

m_OnInviteCallResult

public Callback<GameLobbyJoinRequested_t> m_OnInviteCallResult

Field Value

Callback<GameLobbyJoinRequested_t>

m_OnLobbyChatUpdateCallBack

public Callback<LobbyChatUpdate_t> m_OnLobbyChatUpdateCallBack

Field Value

Callback<LobbyChatUpdate_t>

m_OnLobbyCreatedCallBack

public CallResult<LobbyCreated_t> m_OnLobbyCreatedCallBack

Field Value

CallResult<LobbyCreated_t>

m_OnLobbyEnterCallBack

public CallResult<LobbyEnter_t> m_OnLobbyEnterCallBack

Field Value

CallResult<LobbyEnter_t>

m_OnLobbyUpdateCallBack

public Callback<LobbyDataUpdate_t> m_OnLobbyUpdateCallBack

Field Value

Callback<LobbyDataUpdate_t>

m_OnMatchListCallResult

public CallResult<LobbyMatchList_t> m_OnMatchListCallResult

Field Value

CallResult<LobbyMatchList_t>

m_OnMessageSessionFailed

public Callback<SteamNetworkingMessagesSessionFailed_t> m_OnMessageSessionFailed

Field Value

Callback<SteamNetworkingMessagesSessionFailed_t>

m_OnMessageSessionRequest

public Callback<SteamNetworkingMessagesSessionRequest_t> m_OnMessageSessionRequest

Field Value

Callback<SteamNetworkingMessagesSessionRequest_t>

m_ReceiveThread

public Thread m_ReceiveThread

Field Value

Thread

m_isHostingPrivate

public bool m_isHostingPrivate

Field Value

bool

m_isJoining

public bool m_isJoining

Field Value

bool

m_isPrivateMatch

public bool m_isPrivateMatch

Field Value

bool

receiveBuffers

public IntPtr[] receiveBuffers

Field Value

IntPtr[]

sendBuffer

public IntPtr sendBuffer

Field Value

IntPtr

Properties

MasterClient

public bool MasterClient { get; }

Property Value

bool

Members

public IEnumerable<SteamNetworkingIdentity> Members { get; }

Property Value

IEnumerable<SteamNetworkingIdentity>

Methods

AddSteamClient(CSteamID)

public void AddSteamClient(CSteamID cSteamID)

Parameters

cSteamID CSteamID

CloseConnections()

public void CloseConnections()

GetEChatRoomEnterResponse(uint)

public string GetEChatRoomEnterResponse(uint code)

Parameters

code uint

Returns

string

GetSteamClientsInLobby()

public void GetSteamClientsInLobby()

HideLobby()

public void HideLobby()

HostMatch(Action<ulong>, bool)

public void HostMatch(Action<ulong> _action, bool privateMatch)

Parameters

_action Action<ulong>
privateMatch bool

InitCallbacks()

public void InitCallbacks()

InitHandshakeWithEveryone()

public void InitHandshakeWithEveryone()

InitThread()

public void InitThread()

InviteScreen()

public void InviteScreen()

IsPlayingWithRandoms()

public bool IsPlayingWithRandoms()

Returns

bool

JoinLobby(CSteamID)

public void JoinLobby(CSteamID lobbyID)

Parameters

lobbyID CSteamID

JoinRandom()

public void JoinRandom()

LeaveLobby()

public void LeaveLobby()

OnChatUpdateCallback(LobbyChatUpdate_t)

public void OnChatUpdateCallback(LobbyChatUpdate_t data)

Parameters

data LobbyChatUpdate_t

OnIniviteCallback(GameLobbyJoinRequested_t)

public void OnIniviteCallback(GameLobbyJoinRequested_t param)

Parameters

param GameLobbyJoinRequested_t

OnLobbyCreatedCallback(LobbyCreated_t, bool)

public void OnLobbyCreatedCallback(LobbyCreated_t param, bool bioFailure)

Parameters

param LobbyCreated_t
bioFailure bool

OnLobbyDataUpdate(LobbyDataUpdate_t)

public void OnLobbyDataUpdate(LobbyDataUpdate_t param)

Parameters

param LobbyDataUpdate_t

OnLobbyEnterCallback(LobbyEnter_t, bool)

public void OnLobbyEnterCallback(LobbyEnter_t param, bool bioFailure)

Parameters

param LobbyEnter_t
bioFailure bool

OnMatchListReceived(LobbyMatchList_t, bool)

public void OnMatchListReceived(LobbyMatchList_t param, bool biofailure)

Parameters

param LobbyMatchList_t
biofailure bool

OnMessageReceived(byte[])

public void OnMessageReceived(byte[] msg)

Parameters

msg byte[]

OnNetworkingSessionRequest(SteamNetworkingMessagesSessionRequest_t)

public void OnNetworkingSessionRequest(SteamNetworkingMessagesSessionRequest_t param)

Parameters

param SteamNetworkingMessagesSessionRequest_t

OnNetworkingSessionRequestFailed(SteamNetworkingMessagesSessionFailed_t)

public void OnNetworkingSessionRequestFailed(SteamNetworkingMessagesSessionFailed_t param)

Parameters

param SteamNetworkingMessagesSessionFailed_t

OpenLobby()

public void OpenLobby()

ReceiveMessage()

public void ReceiveMessage()

RemoveSteamClient(CSteamID)

public void RemoveSteamClient(CSteamID cSteamID)

Parameters

cSteamID CSteamID

SendPackage(byte[], ref SteamNetworkingIdentity)

public void SendPackage(byte[] buffer, ref SteamNetworkingIdentity identity)

Parameters

buffer byte[]
identity SteamNetworkingIdentity

SendPackageToAll(byte[])

public void SendPackageToAll(byte[] buffer)

Parameters

buffer byte[]

SetHostLobbyType()

public void SetHostLobbyType()

SetLobbyName(string)

public void SetLobbyName(string roomName)

Parameters

roomName string

SetLobbyRegion()

public void SetLobbyRegion()

TryToJoinLobby(CSteamID)

public void TryToJoinLobby(CSteamID lobbyID)

Parameters

lobbyID CSteamID

makePtrFromBytes(byte[])

public IntPtr makePtrFromBytes(byte[] message)

Parameters

message byte[]

Returns

IntPtr