Class GameStates
A wrapper to the game's obfuscated Player class
Inheritance
System.Object
GameStates
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
Constructors
GameStates(DNPFJHMAIBP)
Declaration
public GameStates(DNPFJHMAIBP gs)
Parameters
| Type |
Name |
Description |
| DNPFJHMAIBP |
gs |
|
Properties
Instance
Declaration
public static GameStates Instance { get; }
Property Value
Messages
Declaration
public static List<Message> Messages { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.List<Message> |
|
Methods
ClearMessages()
Declaration
public static void ClearMessages()
DirectProcess(Message)
Declaration
public static void DirectProcess(Message message)
Parameters
| Type |
Name |
Description |
| Message |
message |
|
DirectProcess(Msg, Int32, Int32)
Declaration
public static void DirectProcess(Msg msg, int playerNr, int index)
Parameters
| Type |
Name |
Description |
| Msg |
msg |
|
| System.Int32 |
playerNr |
|
| System.Int32 |
index |
|
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)
GetCurrent()
Declaration
public static GameState GetCurrent()
Returns
GetCurrentGameStateObject()
Declaration
public static FHPLAFJAAIP GetCurrentGameStateObject()
Returns
| Type |
Description |
| FHPLAFJAAIP |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.Object.GetHashCode()
IsInGame()
Is the current state any state of game.
Declaration
public static bool IsInGame()
Returns
| Type |
Description |
| System.Boolean |
true, if curently in game, false otherwise.
|
IsInIntro()
Declaration
public static bool IsInIntro()
Returns
| Type |
Description |
| System.Boolean |
|
IsInLobby()
Is the current state a lobby.
Declaration
public static bool IsInLobby()
Returns
| Type |
Description |
| System.Boolean |
true, if curently in any type of lobby, false otherwise.
|
IsInLocalLobby()
Is the current state a local lobby.
Declaration
public static bool IsInLocalLobby()
Returns
| Type |
Description |
| System.Boolean |
true, if curently in a local lobby, false otherwise.
|
IsInMatch()
Is the current state an ongoing game.
Declaration
public static bool IsInMatch()
Returns
| Type |
Description |
| System.Boolean |
true, if curently in a match, false otherwise.
|
IsInOnlineLobby()
Is the current state an online lobby.
Declaration
public static bool IsInOnlineLobby()
Returns
| Type |
Description |
| System.Boolean |
true, if curently in an online lobby, false otherwise.
|
IsInSingleLobby()
Is the current state a single-player lobby.
Declaration
public static bool IsInSingleLobby()
Returns
| Type |
Description |
| System.Boolean |
true, if curently in a single-player lobby, false otherwise.
|
Declaration
public static bool IsMenuState(GameState s, bool alsoOptions = false)
Parameters
| Type |
Name |
Description |
| GameState |
s |
|
| System.Boolean |
alsoOptions |
|
Returns
| Type |
Description |
| System.Boolean |
|
IsSwitching()
Declaration
public static bool IsSwitching()
Returns
| Type |
Description |
| System.Boolean |
|
Send(Message)
Declaration
public static void Send(Message message)
Parameters
| Type |
Name |
Description |
| Message |
message |
|
Send(Msg, Int32, Int32)
Declaration
public static void Send(Msg msgType, int playerNr, int index)
Parameters
| Type |
Name |
Description |
| Msg |
msgType |
|
| System.Int32 |
playerNr |
|
| System.Int32 |
index |
|
SendAfter(Single, Message)
Declaration
public static void SendAfter(float delay, Message message)
Parameters
| Type |
Name |
Description |
| System.Single |
delay |
|
| Message |
message |
|
Set(GameState, Boolean)
Declaration
public static void Set(GameState newState, bool noLink = false)
Parameters
| Type |
Name |
Description |
| GameState |
newState |
|
| System.Boolean |
noLink |
|
Declaration
public static bool ShouldIgnoreInputs()
Returns
| Type |
Description |
| System.Boolean |
|
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
System.Object.ToString()
UpdateToConfigAll()
Declaration
public static void UpdateToConfigAll()
Operators
Implicit(DNPFJHMAIBP to GameStates)
Declaration
public static implicit operator GameStates(DNPFJHMAIBP gs)
Parameters
| Type |
Name |
Description |
| DNPFJHMAIBP |
gs |
|
Returns
Implicit(GameStates to DNPFJHMAIBP)
Declaration
public static implicit operator DNPFJHMAIBP(GameStates gs)
Parameters
Returns
| Type |
Description |
| DNPFJHMAIBP |
|