SWLobby Class

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.

Declaration

public class SWLobby

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.

You need to call the NetworkClient.Lobby.GetRoomCustomData() 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 NetworkClient.Lobby.GetRoomCustomData() has not been called or the room custom data has not been changed.

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.

Register PlayerMessage PlayerCreate RoomChange Room SettingsGet RoomsFilter RoomsJoin RoomMessage RoomGet Players in RoomGet Room Custom DataChange Room Custom DataStart RoomLeave Room

Last updated