Class PlayerLobbyState
A wrapper to the game's obfuscated PlayerLobbyState class
Inheritance
System.Object
PlayerLobbyState
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: LLBModdingLib.dll
Syntax
public class PlayerLobbyState
Constructors
PlayerLobbyState()
Declaration
public PlayerLobbyState()
PlayerLobbyState(JMLEHJLKPAC)
Declaration
public PlayerLobbyState(JMLEHJLKPAC pls)
Parameters
| Type |
Name |
Description |
| JMLEHJLKPAC |
pls |
|
PlayerLobbyState(Player)
Declaration
public PlayerLobbyState(Player player)
Parameters
| Type |
Name |
Description |
| Player |
player |
|
Properties
character
Declaration
public Character character { get; set; }
Property Value
| Type |
Description |
| Character |
|
playerNr
Declaration
public int playerNr { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
ready
Declaration
public bool ready { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
selected
Declaration
public bool selected { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
spectator
Declaration
public bool spectator { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
team
Declaration
public Team team { get; set; }
Property Value
variant
Declaration
public CharacterVariant variant { get; set; }
Property Value
| Type |
Description |
| CharacterVariant |
|
Methods
CopyTo(Player)
Declaration
public void CopyTo(Player p)
Parameters
| Type |
Name |
Description |
| Player |
p |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.Object.GetHashCode()
ReadBytes(BinaryReader)
Declaration
public static PlayerLobbyState ReadBytes(BinaryReader reader)
Parameters
| Type |
Name |
Description |
| System.IO.BinaryReader |
reader |
|
Returns
RegisterPayload(PluginInfo, Func<PlayerLobbyState, Byte[]>, Action<PlayerLobbyState, Byte[]>)
Register a custom packing and unpacking methods that will be called each time a PlayerLobbyState is sent and received
Declaration
public static void RegisterPayload(PluginInfo info, Func<PlayerLobbyState, byte[]> onSendPayload, Action<PlayerLobbyState, byte[]> onReceivePayload)
Parameters
| Type |
Name |
Description |
| BepInEx.PluginInfo |
info |
The BepInEx.PluginInfo of the requesting plugin
|
| System.Func<PlayerLobbyState, System.Byte[]> |
onSendPayload |
The method to call when packing data to send a PlayerLobbyState
|
| System.Action<PlayerLobbyState, System.Byte[]> |
onReceivePayload |
The method to call when unpacking data from a PlayerLobbyState
|
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
System.Object.ToString()
UnregisterPayload(PluginInfo)
Declaration
public static void UnregisterPayload(PluginInfo info)
Parameters
| Type |
Name |
Description |
| BepInEx.PluginInfo |
info |
The BepInEx.PluginInfo of the requesting plugin
|
WriteBytes(BinaryWriter)
Declaration
public void WriteBytes(BinaryWriter writer)
Parameters
| Type |
Name |
Description |
| System.IO.BinaryWriter |
writer |
|
Operators
Implicit(JMLEHJLKPAC to PlayerLobbyState)
Declaration
public static implicit operator PlayerLobbyState(JMLEHJLKPAC pls)
Parameters
| Type |
Name |
Description |
| JMLEHJLKPAC |
pls |
|
Returns
Implicit(PlayerLobbyState to JMLEHJLKPAC)
Declaration
public static implicit operator JMLEHJLKPAC(PlayerLobbyState pls)
Parameters
Returns
| Type |
Description |
| JMLEHJLKPAC |
|