Wobbly Life Mod SDK
 
Loading...
Searching...
No Matches
ModWobblyLife.ModInstance Class Reference

ModInstance Keeps track of all player controllers/player characters Ability to go back to lobby. More...

Inheritance diagram for ModWobblyLife.ModInstance:

Public Member Functions

delegate void ModInstanceModPlayerControllerCallback (ModPlayerController modPlayerController)
 
delegate void ModInstanceModPlayerCharacterCallback (ModPlayerCharacter modPlayerCharacter)
 
void ServerReturnToLobby ()
 Returns the game back to the lobby.
 
void ServerPlayAgainOrReturnToLobby ()
 Puts a prompt on the servers screen asking whether you want to play again Yes: Reloads the scene No: Returns the game back to lobby.
 
void IterateModPlayerCharacters (Action< ModPlayerCharacter > expression)
 
void IterateModPlayerControllers (Action< ModPlayerController > expression)
 
ModPlayerCharacter[] GetModPlayerCharacters ()
 
void GetModPlayerCharacters (List< ModPlayerCharacter > characters)
 
ModPlayerController[] GetModPlayerControllers ()
 
void GetModPlayerControllers (List< ModPlayerController > controllers)
 
ModPlayerController GetModPlayerControllerByNetworkid (uint networkid)
 

Static Public Member Functions

static ModInstance GetRawInstance ()
 

Properties

static bool InstanceExists [get]
 
static ModInstance Instance [get]
 

Events

ModInstanceModPlayerControllerCallback onAssignedPlayerController
 
ModInstanceModPlayerControllerCallback onUnassignedPlayerController
 
ModInstanceModPlayerCharacterCallback onAssignedPlayerCharacter
 
ModInstanceModPlayerCharacterCallback onUnassignedPlayerCharacter
 

Detailed Description

ModInstance Keeps track of all player controllers/player characters Ability to go back to lobby.

Member Function Documentation

◆ GetModPlayerCharacters() [1/2]

ModPlayerCharacter[] ModWobblyLife.ModInstance.GetModPlayerCharacters ( )

◆ GetModPlayerCharacters() [2/2]

void ModWobblyLife.ModInstance.GetModPlayerCharacters ( List< ModPlayerCharacter characters)

◆ GetModPlayerControllerByNetworkid()

ModPlayerController ModWobblyLife.ModInstance.GetModPlayerControllerByNetworkid ( uint  networkid)

◆ GetModPlayerControllers() [1/2]

ModPlayerController[] ModWobblyLife.ModInstance.GetModPlayerControllers ( )

◆ GetModPlayerControllers() [2/2]

void ModWobblyLife.ModInstance.GetModPlayerControllers ( List< ModPlayerController controllers)

◆ GetRawInstance()

static ModInstance ModWobblyLife.ModInstance.GetRawInstance ( )
static

◆ IterateModPlayerCharacters()

void ModWobblyLife.ModInstance.IterateModPlayerCharacters ( Action< ModPlayerCharacter expression)

◆ IterateModPlayerControllers()

void ModWobblyLife.ModInstance.IterateModPlayerControllers ( Action< ModPlayerController expression)

◆ ModInstanceModPlayerCharacterCallback()

delegate void ModWobblyLife.ModInstance.ModInstanceModPlayerCharacterCallback ( ModPlayerCharacter  modPlayerCharacter)

◆ ModInstanceModPlayerControllerCallback()

delegate void ModWobblyLife.ModInstance.ModInstanceModPlayerControllerCallback ( ModPlayerController  modPlayerController)

◆ ServerPlayAgainOrReturnToLobby()

void ModWobblyLife.ModInstance.ServerPlayAgainOrReturnToLobby ( )

Puts a prompt on the servers screen asking whether you want to play again Yes: Reloads the scene No: Returns the game back to lobby.

◆ ServerReturnToLobby()

void ModWobblyLife.ModInstance.ServerReturnToLobby ( )

Returns the game back to the lobby.

Property Documentation

◆ Instance

ModInstance ModWobblyLife.ModInstance.Instance
staticget

◆ InstanceExists

bool ModWobblyLife.ModInstance.InstanceExists
staticget

Event Documentation

◆ onAssignedPlayerCharacter

ModInstanceModPlayerCharacterCallback ModWobblyLife.ModInstance.onAssignedPlayerCharacter

◆ onAssignedPlayerController

ModInstanceModPlayerControllerCallback ModWobblyLife.ModInstance.onAssignedPlayerController

◆ onUnassignedPlayerCharacter

ModInstanceModPlayerCharacterCallback ModWobblyLife.ModInstance.onUnassignedPlayerCharacter

◆ onUnassignedPlayerController

ModInstanceModPlayerControllerCallback ModWobblyLife.ModInstance.onUnassignedPlayerController