SWLobby Class
Last updated
Last updated
You don't need to create a SWLobby object manually. NetworkClient automatically creates one if you provided a valid API_KEY. All the Lobby APIs can be accessed using the NetworkClient.Lobby instance.
Properties
Type
Description
PlayerId
string
ID of the local player.
IsOwner
bool
Indicates whether the local player is the room owner.
RoomData
Cached room custom data of the player's current room in the Lobby server.
RoomId
string
Local player's roomId. null if the local player is not in a room.
Methods
SWLobby's methods are discussed in details in the following pages.
You need to call the method to get the custom data. The fetches custom data is cached and updated afterwards.
null if the local player is not in a room. null if has not been called or the room custom data has not been changed.