Class GameStatesLobbyUtils
Useful methods to interact with Lobby states
Inheritance
Inherited Members
Namespace: LLBML.States
Assembly: LLBModdingLib.dll
Syntax
public static class GameStatesLobbyUtils
Methods
GetAutoreadyStatus()
Gets the autoready status from the current online lobby state.
Declaration
public static bool GetAutoreadyStatus()
Returns
| Type | Description |
|---|---|
| System.Boolean | Whether or not the autoready is currently enabled. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Thrown when the method is called when there's no instanciated online lobby object. |
GetLobby()
Gets the current GameStatesLobby object.
Declaration
public static HPNLMFHPHFD GetLobby()
Returns
| Type | Description |
|---|---|
| HPNLMFHPHFD | The current GameStatesLobby object |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Thrown when the method is called when there's no instanciated lobby object. |
GetLocalLobby()
Gets the current GameStatesLobbyLocal object.
Declaration
public static IJDANPONMLL GetLocalLobby()
Returns
| Type | Description |
|---|---|
| IJDANPONMLL | The current GameStatesLobbyLocal object |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Thrown when the method is called when there's no instanciated local lobby object. |
GetOnlineLobby()
Gets the current GameStatesLobbyOnline object.
Declaration
public static HDLIJDBFGKN GetOnlineLobby()
Returns
| Type | Description |
|---|---|
| HDLIJDBFGKN | The current GameStatesLobbyOnline object |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Thrown when the method is called when there's no instanciated online lobby object. |
GetSingleLobby()
Gets the current GameStatesLobbySingle object.
Declaration
public static HFAEJNGHDDM GetSingleLobby()
Returns
| Type | Description |
|---|---|
| HFAEJNGHDDM | The current GameStatesLobbySingle object |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Thrown when the method is called when there's no instanciated single lobby object. |
MakeSureReadyIs(HDLIJDBFGKN, Boolean, Boolean)
Sets ready information and updates clients with the new state.
Declaration
public static void MakeSureReadyIs(HDLIJDBFGKN gs_lobbyOnline, bool ready, bool resetTimer = false)
Parameters
| Type | Name | Description |
|---|---|---|
| HDLIJDBFGKN | gs_lobbyOnline | The current online lobby state. |
| System.Boolean | ready | Should ready be set. |
| System.Boolean | resetTimer | Should the autoready timer be reset and ran again. |
MakeSureReadyIs(Boolean, Boolean)
Sets ready information and updates clients with the new state.
Declaration
public static void MakeSureReadyIs(bool ready, bool resetTimer = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | ready | |
| System.Boolean | resetTimer |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Thrown when the method is called when there's no instanciated online lobby object. |
RefreshLocalPlayerState()
Updates the state from the player's data and sends it to the other clients
Declaration
public static void RefreshLocalPlayerState()
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Thrown when the method is called when there's no instanciated online lobby object. |
RefreshPlayerState(Player)
Updates the state from the player's data and sends it to the other clients
Declaration
public static void RefreshPlayerState(Player player)
Parameters
| Type | Name | Description |
|---|---|---|
| Player | player | The player to update the state from. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Thrown when the method is called when there's no instanciated online lobby object. |
SendPlayerState(HDLIJDBFGKN, Player)
Sends the provided player's data to the other clients.
Declaration
public static void SendPlayerState(HDLIJDBFGKN gs_lobbyOnline, Player player)
Parameters
| Type | Name | Description |
|---|---|---|
| HDLIJDBFGKN | gs_lobbyOnline | The current online lobby state. |
| Player | player | The player to pull info from. |
SendPlayerState(Player)
Sets ready information and updates clients with the new state.
Declaration
public static void SendPlayerState(Player player)
Parameters
| Type | Name | Description |
|---|---|---|
| Player | player |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Thrown when the method is called when there's no instanciated online lobby object. |
UpdatePlayer(HPNLMFHPHFD, Player, Boolean)
Updates the state's data with data from the provided player.
Declaration
public static void UpdatePlayer(HPNLMFHPHFD gs_lobby, Player player, bool play_selection_anim = false)
Parameters
| Type | Name | Description |
|---|---|---|
| HPNLMFHPHFD | gs_lobby | The current lobby state. |
| Player | player | The player to update info from. |
| System.Boolean | play_selection_anim | Whether the character selection animation be played. |
UpdatePlayer(Player, Boolean)
Updates the current state's data with data from the provided player.
Declaration
public static void UpdatePlayer(Player player, bool play_selection_anim = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Player | player | |
| System.Boolean | play_selection_anim |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Thrown when the method is called when there's no instanciated lobby object. |