tModLoader v2024.03
A mod to make and play Terraria mods
Lobby Class Reference

Public Member Functions

void Create (bool inviteOnly)
 
void Create (bool inviteOnly, CallResult< LobbyCreated_t >.APIDispatchDelegate callResult)
 
byte[] GetMessage (int index)
 
byte[] GetMessage (int index)
 
IRailGameServer GetServer ()
 
CSteamID GetUserByIndex (int index)
 
RailID GetUserByIndex (int index)
 
int GetUserCount ()
 
int GetUserCount ()
 
void Join (CSteamID lobbyId, CallResult< LobbyEnter_t >.APIDispatchDelegate callResult)
 
void Join (RailID local_peer, RailID remote_peer)
 
void Leave ()
 
void Leave ()
 
void OnRailEvent (RAILEventID id, EventBase data)
 
void OpenInviteOverlay ()
 
void OpenInviteOverlay ()
 
bool SendMessage (byte[] data)
 
bool SendMessage (byte[] data)
 
bool SendMessage (byte[] data, int length)
 
bool SendMessage (byte[] data, int length)
 
void Set (CSteamID lobbyId)
 
void Set (RailID lobbyId)
 
void SetPlayedWith (CSteamID userId)
 
void SetPlayedWith (RailID userId)
 

Public Attributes

Action< RailID > _lobbyCreatedExternalCallback
 
CSteamID Id = CSteamID.Nil
 
CSteamID Owner = CSteamID.Nil
 
LobbyState State