• 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 Player

A wrapper to the game's obfuscated Player class

Inheritance
System.Object
Player
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: LLBML.Players
Assembly: LLBModdingLib.dll
Syntax
public class Player

Constructors

Player(ALDOKEMAOMB)

Declaration
public Player(ALDOKEMAOMB p)
Parameters
Type Name Description
ALDOKEMAOMB p

Properties

aiLevel

Declaration
public int aiLevel { get; set; }
Property Value
Type Description
System.Int32

Character

Declaration
public Character Character { get; set; }
Property Value
Type Description
Character

CharacterSelected

Declaration
public Character CharacterSelected { get; set; }
Property Value
Type Description
Character

CharacterSelectedIsRandom

Declaration
public bool CharacterSelectedIsRandom { get; }
Property Value
Type Description
System.Boolean

CharacterVariant

Declaration
public CharacterVariant CharacterVariant { get; set; }
Property Value
Type Description
CharacterVariant

controller

Declaration
public Controller controller { get; set; }
Property Value
Type Description
LLHandlers.Controller

cpuSelecting

Declaration
public int cpuSelecting { get; set; }
Property Value
Type Description
System.Int32

cursor

Declaration
public LLCursor cursor { get; set; }
Property Value
Type Description
LLGUI.LLCursor

DidJoinedMatch

Declaration
public bool DidJoinedMatch { get; }
Property Value
Type Description
System.Boolean

ip

Declaration
public string ip { get; set; }
Property Value
Type Description
System.String

IsAI

Declaration
public bool IsAI { get; set; }
Property Value
Type Description
System.Boolean

IsDisconnected

Declaration
public bool IsDisconnected { get; }
Property Value
Type Description
System.Boolean

IsInMatch

Declaration
public bool IsInMatch { get; }
Property Value
Type Description
System.Boolean

isLocal

Declaration
public bool isLocal { get; set; }
Property Value
Type Description
System.Boolean

IsLocalPeer

Declaration
public bool IsLocalPeer { get; }
Property Value
Type Description
System.Boolean

IsSpectator

Declaration
public bool IsSpectator { get; }
Property Value
Type Description
System.Boolean

LocalPlayerNumber

Gets the current player number for the local player.

Declaration
public static int LocalPlayerNumber { get; }
Property Value
Type Description
System.Int32

The current platform as a PlatformBase object.

Remarks

Curently not failsafe, game has it as -1 in some occasions, and localPeer is initialized before the Player is

MAX_PLAYERS

Declaration
public static int MAX_PLAYERS { get; }
Property Value
Type Description
System.Int32

name

Declaration
public string name { get; set; }
Property Value
Type Description
System.String

nPlayersInMatch

Declaration
public static int nPlayersInMatch { get; set; }
Property Value
Type Description
System.Int32

nPlayersJoinedMatch

Declaration
public static int nPlayersJoinedMatch { get; set; }
Property Value
Type Description
System.Int32

nr

Declaration
public int nr { get; set; }
Property Value
Type Description
System.Int32

peer

Declaration
public Peer peer { get; set; }
Property Value
Type Description
Multiplayer.Peer

playerEntity

Declaration
public PlayerEntity playerEntity { get; set; }
Property Value
Type Description
GameplayEntities.PlayerEntity

playerStatus

Declaration
public PlayerStatus playerStatus { get; set; }
Property Value
Type Description
PlayerStatus

port

Declaration
public int port { 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

Team

Declaration
public Team Team { get; set; }
Property Value
Type Description
Team

variant

Declaration
public CharacterVariant variant { get; set; }
Property Value
Type Description
CharacterVariant

Methods

BiggerHeadActivated(Character)

Declaration
public bool BiggerHeadActivated(Character character)
Parameters
Type Name Description
Character character
Returns
Type Description
System.Boolean

CheckCheats(Character)

Declaration
public void CheckCheats(Character character)
Parameters
Type Name Description
Character character

ClearDetermine()

Declaration
public void ClearDetermine()

DetermineCharacter(Character[])

Declaration
public void DetermineCharacter(Character[] skipCharacters = null)
Parameters
Type Name Description
Character[] skipCharacters

EPlayers()

Declaration
public static IEnumerable<ALDOKEMAOMB> EPlayers()
Returns
Type Description
System.Collections.Generic.IEnumerable<ALDOKEMAOMB>

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)

ForAll(Action<ALDOKEMAOMB>)

Declaration
public static void ForAll(Action<ALDOKEMAOMB> callback)
Parameters
Type Name Description
System.Action<ALDOKEMAOMB> callback

ForAll(Action<Player>)

Declaration
public static void ForAll(Action<Player> callback)
Parameters
Type Name Description
System.Action<Player> callback

ForAllActivelyInMatch(Action<PlayerEntity>)

Wraps ForAllInMatch(Action<PlayerEntity>) to additionaly check if the GameplayEntities.PlayerEntity is actively in match

Declaration
public static void ForAllActivelyInMatch(Action<PlayerEntity> callback)
Parameters
Type Name Description
System.Action<GameplayEntities.PlayerEntity> callback

The function applying to each GameplayEntities.PlayerEntity

ForAllActivelyInMatch(Action<Player>)

Wraps ForAllInMatch(Action<Player>) to additionaly check if the Player is actively in match

Declaration
public static void ForAllActivelyInMatch(Action<Player> callback)
Parameters
Type Name Description
System.Action<Player> callback

The function applying to each Player

ForAllInMatch(Action<ALDOKEMAOMB>)

Declaration
public static void ForAllInMatch(Action<ALDOKEMAOMB> callback)
Parameters
Type Name Description
System.Action<ALDOKEMAOMB> callback

ForAllInMatch(Action<PlayerEntity>)

Declaration
public static void ForAllInMatch(Action<PlayerEntity> callback)
Parameters
Type Name Description
System.Action<GameplayEntities.PlayerEntity> callback

ForAllInMatch(Action<Player>)

Declaration
public static void ForAllInMatch(Action<Player> callback)
Parameters
Type Name Description
System.Action<Player> callback

ForAllInTeam(Team, Action<PlayerEntity>)

Declaration
public static void ForAllInTeam(Team team, Action<PlayerEntity> callback)
Parameters
Type Name Description
Team team
System.Action<GameplayEntities.PlayerEntity> callback

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

GetLocalPlayer()

Casts EPlayers() to a System.Collections.Generic.List<T>

Declaration
public static Player GetLocalPlayer()
Returns
Type Description
Player

A list of Player

GetNextTeam(GameMode, Int32)

Declaration
public Team GetNextTeam(GameMode gameMode, int prevNext = 1)
Parameters
Type Name Description
GameMode gameMode
System.Int32 prevNext
Returns
Type Description
Team

GetPlayer(Int32)

Declaration
public static Player GetPlayer(int playerNr)
Parameters
Type Name Description
System.Int32 playerNr
Returns
Type Description
Player

GetPlayerList()

Casts EPlayers() to a System.Collections.Generic.List<T>

Declaration
public static List<Player> GetPlayerList()
Returns
Type Description
System.Collections.Generic.List<Player>

A list of Player

GetRandomCharacter(Character[])

Declaration
public Character GetRandomCharacter(Character[] skipCharacters = null)
Parameters
Type Name Description
Character[] skipCharacters
Returns
Type Description
Character

GetRandomCharacter(Boolean)

Declaration
public Character GetRandomCharacter(bool any)
Parameters
Type Name Description
System.Boolean any
Returns
Type Description
Character

GetRandomName()

Declaration
public static string GetRandomName()
Returns
Type Description
System.String

GetVariantFirst()

Declaration
public CharacterVariant GetVariantFirst()
Returns
Type Description
CharacterVariant

GetVariantFirst(Character)

Declaration
public CharacterVariant GetVariantFirst(Character forCharacter)
Parameters
Type Name Description
Character forCharacter
Returns
Type Description
CharacterVariant

GetVariantFixed()

Declaration
public CharacterVariant GetVariantFixed()
Returns
Type Description
CharacterVariant

GetVariantNext(Int32)

Declaration
public CharacterVariant GetVariantNext(int prevNext = 1)
Parameters
Type Name Description
System.Int32 prevNext
Returns
Type Description
CharacterVariant

GetVariantRandom(Boolean)

Declaration
public CharacterVariant GetVariantRandom(bool any = false)
Parameters
Type Name Description
System.Boolean any
Returns
Type Description
CharacterVariant

Init()

Declaration
public static void Init()

JoinMatch(Boolean)

Declaration
public void JoinMatch(bool join)
Parameters
Type Name Description
System.Boolean join

LeaveMatch()

Declaration
public void LeaveMatch()

Reset()

Declaration
public void Reset()

ResetAll()

Declaration
public static void ResetAll()

ResetName()

Declaration
public void ResetName()

ResetTeam(GameMode, Boolean)

Declaration
public void ResetTeam(GameMode gameMode, bool changeAnyway)
Parameters
Type Name Description
GameMode gameMode
System.Boolean changeAnyway

SetCursorActive(Boolean, Single, Single)

Declaration
public void SetCursorActive(bool active, float relX = -1F, float relY = -1F)
Parameters
Type Name Description
System.Boolean active
System.Single relX
System.Single relY

SetSpectator()

Declaration
public void SetSpectator()

SmallerHeadActivated(Character)

Declaration
public bool SmallerHeadActivated(Character character)
Parameters
Type Name Description
Character character
Returns
Type Description
System.Boolean

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

UpdateLight()

Declaration
public void UpdateLight()

UpdateLights()

Declaration
public static void UpdateLights()

Operators

Implicit(ALDOKEMAOMB to Player)

Declaration
public static implicit operator Player(ALDOKEMAOMB p)
Parameters
Type Name Description
ALDOKEMAOMB p
Returns
Type Description
Player

Implicit(Player to ALDOKEMAOMB)

Declaration
public static implicit operator ALDOKEMAOMB(Player p)
Parameters
Type Name Description
Player p
Returns
Type Description
ALDOKEMAOMB
In This Article
Back to top Generated by DocFX