• Articles
  • Api Documentation
Show / Hide Table of Contents
  • DDSLoader
    • DDSImage
    • DDSImage.DDSHeader
    • DDSImage.DDSPixelFormat
    • DDSImage.HeaderFlags
    • DDSImage.PixelFormatFlags
    • DDSUnityExtensions
    • FourCC
  • LLBML
    • BallApi
    • CharacterApi
    • GraphicUtils
    • InputApi
    • LLBMLPlugin
    • LoadingInfo
    • LoadingScreen
    • PluginInfos
    • ProgressApi
    • ScreenApi
    • StateApi
  • LLBML.Audio
    • AudioAsset
    • AudioCache
    • AudioInfo
    • AudioUtils
  • LLBML.External
    • IntHelpers
    • Murmur3
  • LLBML.GameEvents
    • GameEvents
    • GameStateEvents
    • LobbyEventArgs
    • LobbyEvents
    • LobbyReadyArgs
    • MenuEvents
    • OnLobbyEnteredHandler
    • OnLobbyReadyHandler
    • OnMainMenuEnteredArgs
    • OnMainMenuEnteredHandler
    • OnMainMenuFirstEnteredHandler
    • OnPlayerJoinArgs
    • OnPlayerJoinHandler
    • OnStateChangeArgs
    • OnStateChangeHandler
    • OnUnlinkFromPlayerArgs
    • OnUnlinkFromPlayerHandler
    • OnUserCharacterPickArgs
    • OnUserCharacterPickHandler
    • OnUserSkinClickArgs
    • OnUserSkinClickHandler
  • LLBML.Graphic
    • Draw
    • Draw.Alignment
  • LLBML.Math
    • BinaryUtils
    • Boundsf
    • Floatf
    • Vector2f
    • Vector2i
  • LLBML.Messages
    • CustomMessage
    • MessageActions
    • MessageApi
    • MessageApi.OnReceiveMessageHandler
    • MessageEventArgs
  • LLBML.Networking
    • Channel
    • EnvelopeApi
    • EnvelopeApi.OnReceiveEnvelopeHandler
    • EnvelopeEventArgs
    • EP2PSend
    • EP2PSend.Enum
    • EP2PSend.Enum_Mapping
    • NetworkApi
    • Transaction
    • TransactionCode
    • TransactionState
  • LLBML.Players
    • Player
    • PlayerStatus
    • PlayerStatus.Enum
    • PlayerStatus.Enum_Mappings
    • Team
    • Team.Enum
    • Team.Enum_Mappings
  • LLBML.Settings
    • GameSettings
  • LLBML.States
    • GameState
    • GameState.Enum
    • GameState.Enum_Mapping
    • GameStates
    • GameStatesGameUtils
    • GameStatesLobbyUtils
    • PlayerLobbyState
  • LLBML.Texture
    • TextureUtils
  • LLBML.UI
    • Dialogs
  • LLBML.Utils
    • ArrayExtension
    • BepInRef
    • ControlledRandom
    • DebugUtils
    • EnumWrapper<T>
    • GenericCache<K, T>
    • GenericUtils
    • Hash<T>
    • IByteable
    • ModDependenciesUtils
    • ModdingFolder
    • PatchUtils
    • StringUtils

Class GameStatesLobbyUtils

Useful methods to interact with Lobby states

Inheritance
System.Object
GameStatesLobbyUtils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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.

In This Article
Back to top Generated by DocFX