The controller of a player. More...
Public Member Functions | |
delegate void | ModPlayerControllerNameChanged (ModPlayerController modPlayerController, string playerName) |
delegate void | ModPlayerControllerPlayerTransformChanged (ModPlayerController modPlayerController, Transform playerTransform) |
delegate void | ModPlayerControllerCharacterCallback (ModPlayerController modPlayerController, ModPlayerCharacter playerCharacter) |
delegate void | ModPlayerControllerGameplayCameraCallback (ModPlayerController modPlayerController, ModGameplayCamera gameplayCamera) |
delegate void | ModPlayerControllerCallback (ModPlayerController modPlayerController) |
void | AssignPlayerController (object playerControllerRaw) |
void | ServerSetSandboxUIEnabled (bool bEnabled) |
Set whether the Sandbox menu is enabled (Server only) Setting this to true will allow this player to be in Sandbox mode. | |
void | ServerLoadSavedClothesOnActivePlayer (bool bForced=false) |
Load their saved clothes onto their current player character (Server only) | |
void | ServerLoadSavedClothesOnActivePlayer (ModClothingSelectionType selectionType, bool bForced=false) |
Load their saved clothes onto their current player character (Server only) | |
void | SetOwnerCameraFocus (ModCameraFocus cameraFocus, bool bAppendPrevious=true) |
Sets the current camera focus for this controller. | |
void | SetOwnerCameraFocusPrevious () |
Sets the camera focus to the previous one. | |
void | SetOwnerCameraFocusPlayer () |
Sets the camera focus to the player character. | |
ModCameraFocus | GetCurrentCameraFocus () |
Gets the current camera focus. | |
void | ServerSetAllowedCustomClothingAbilities (bool bServerAllowedCustomsClothingAbilities) |
Set whether players are allowed to use special clothing abilities i.e Jet Pack etc (Server only) | |
object | GetPlayerControllerRaw () |
Returns the raw player controller. | |
ModPlayerCharacter | GetPlayerCharacter () |
Returns the player character. | |
bool | HasPlayerLoaded () |
Returns whether the player has loaded. | |
string | GetPlayerName () |
Returns the player name. | |
Transform | GetPlayerTransform () |
Returns the player transform. | |
ModPlayerControllerUI | GetModPlayerControllerUI () |
Returns the ui for this player. | |
ModPlayerControllerInputManager | GetModPlayerControllerInputManager () |
Returns the input manager for this player. | |
ModPlayerControllerSpectate | GetModPlayerControllerSpectate () |
Returns the spectate system for this player. | |
ModPlayerControllerInteractor | GetControllerInteractor () |
Returns the interactor for this player. | |
ModGameplayCamera | GetModGameplayCamera () |
Returns the gameplay camera for this player. | |
bool | IsAllowedSavedClothes () |
Returns whether this player is allowed to use their saved clothes or not. | |
virtual bool | IsAllowedToSleep () |
Returns whether this player is allowed to sleep. | |
bool | IsAllowedToRespawn () |
Returns whether this player is allowed to respawn. | |
void | SetAllowedSavedClothes (bool bAllowedSavedClothes) |
Sets whether this player is allowed to use saved clothing. | |
void | SetAllowedToRespawn (bool bAllowedToRespawn) |
Sets whether this player can respawn Setting this to false will remove the respawn option on their screen. | |
int | GetLocalPlayerid () |
Returns the local player id. | |
bool | IsSplitscreenPlayer () |
Returns whether this player is a split screen player. | |
bool | IsLocal () |
Return whether this player is local The same as doing networkObject.IsOwner() | |
![]() | |
delegate void | ModNetworkBehaviourCallback (ModNetworkBehaviour modNetworkBehaviour) |
Delegate for a ModNetworkBehaviour. | |
delegate void | ModNetworkBehaviourNetworkObjectCallback (ModNetworkObject modNetworkObject) |
Delegate for a ModNetworkObject. | |
delegate void | ModNetworkBehaviourCallbackNetwork (ModNetworkBehaviour modNetworkBehaviour, Action< object > networkStartCallback, Action< object > registerRPCsCallback, Action< object > networkPostCallback) |
Internal use. | |
void | AssignNetworkBehaviour (object networkBehaviour) |
void | ModPrepare (bool bIsPrefab) |
Internal use. | |
bool | IsServer () |
Returns whether you are the server. | |
bool | IsConnected () |
Returns whether you are connected. | |
Guid | GetAssetId () |
Returns the assetid. | |
string | GetAssetIdRaw () |
Returns the assetidraw. | |
void | SetAssetId_Internal (string assetID) |
Sets the assetid. | |
object | GetNetworkBehaviourRaw () |
Returns the raw networkobject (Internal use) | |
Protected Member Functions | |
override void | NetworkPost (object networkObject) |
virtual void | ModReady () |
bool | ModCheck () |
override void | OnValidate () |
override void | Awake () |
override void | OnAssignNetworkBehaviour (object networkBehaviour) |
virtual void | OnPlayerBasedUIAssigned () |
Called when the ui system is ready (Owner only) | |
virtual void | OnServerPersistentDataLoaded () |
Called when the persistent data has been loaded i.e Clothes data (Server only) | |
virtual void | OnPlayerNameChanged (string playerName) |
Called when the player name is changed. | |
virtual void | OnPlayerTransformChanged (Transform playerTransform) |
Called when the player transform has changed. | |
virtual void | OnPlayerCharacterSpawned (ModPlayerCharacter playerCharacter) |
Called when the player character has spawned. | |
virtual void | OnPlayerCharacterDestroyed (ModPlayerCharacter playerCharacter) |
Called when the player character has been destroyed. | |
virtual void | OnModGameplayCameraCreated (ModGameplayCamera modGameplayCamera) |
Called when the player camera has been created (Owners only) | |
virtual void | OnPlayerHasLoaded () |
Called when the player has loaded. | |
override void | OnDestroy () |
![]() | |
virtual void | OnAssignNetworkBehaviour (object networkBehaviour) |
virtual void | Awake () |
virtual void | Start () |
virtual void | Reset () |
virtual void | OnDestroy () |
virtual void | OnValidate () |
virtual void | ModAwake () |
Called on Awake. | |
virtual void | ModStart () |
Called on Start. | |
virtual void | ModReset () |
Called on Reset. | |
virtual void | ModOnValidate () |
Called on validate. | |
virtual void | ModOnDestroy () |
Called on OnDestroy. | |
virtual void | RegisterRPCs (object networkObject) |
virtual void | NetworkStart (object networkObject) |
virtual void | NetworkPost (object networkObject) |
virtual void | ModRegisterRPCs (ModNetworkObject modNetworkObject) |
Called when you should register rpcs. | |
virtual void | ModNetworkStart (ModNetworkObject modNetworkObject) |
Called when this object is ready on the network. | |
virtual void | ModNetworkPost (ModNetworkObject modNetworkObject) |
Called after fully initalized the network. | |
Protected Attributes | |
object | playerControllerRaw |
![]() | |
object | networkBehaviour |
Additional Inherited Members | |
![]() | |
ModNetworkObject | modNetworkObject |
The networkObject used for communication of this object. | |
The controller of a player.
void ModWobblyLife.ModPlayerController.AssignPlayerController | ( | object | playerControllerRaw | ) |
|
protectedvirtual |
Reimplemented from ModWobblyLife.Network.ModNetworkBehaviour.
ModPlayerControllerInteractor ModWobblyLife.ModPlayerController.GetControllerInteractor | ( | ) |
Returns the interactor for this player.
ModCameraFocus ModWobblyLife.ModPlayerController.GetCurrentCameraFocus | ( | ) |
Gets the current camera focus.
int ModWobblyLife.ModPlayerController.GetLocalPlayerid | ( | ) |
Returns the local player id.
ModGameplayCamera ModWobblyLife.ModPlayerController.GetModGameplayCamera | ( | ) |
Returns the gameplay camera for this player.
ModPlayerControllerInputManager ModWobblyLife.ModPlayerController.GetModPlayerControllerInputManager | ( | ) |
Returns the input manager for this player.
ModPlayerControllerSpectate ModWobblyLife.ModPlayerController.GetModPlayerControllerSpectate | ( | ) |
Returns the spectate system for this player.
ModPlayerControllerUI ModWobblyLife.ModPlayerController.GetModPlayerControllerUI | ( | ) |
Returns the ui for this player.
ModPlayerCharacter ModWobblyLife.ModPlayerController.GetPlayerCharacter | ( | ) |
Returns the player character.
object ModWobblyLife.ModPlayerController.GetPlayerControllerRaw | ( | ) |
Returns the raw player controller.
string ModWobblyLife.ModPlayerController.GetPlayerName | ( | ) |
Returns the player name.
Transform ModWobblyLife.ModPlayerController.GetPlayerTransform | ( | ) |
Returns the player transform.
bool ModWobblyLife.ModPlayerController.HasPlayerLoaded | ( | ) |
Returns whether the player has loaded.
bool ModWobblyLife.ModPlayerController.IsAllowedSavedClothes | ( | ) |
Returns whether this player is allowed to use their saved clothes or not.
bool ModWobblyLife.ModPlayerController.IsAllowedToRespawn | ( | ) |
Returns whether this player is allowed to respawn.
|
virtual |
Returns whether this player is allowed to sleep.
bool ModWobblyLife.ModPlayerController.IsLocal | ( | ) |
Return whether this player is local The same as doing networkObject.IsOwner()
bool ModWobblyLife.ModPlayerController.IsSplitscreenPlayer | ( | ) |
Returns whether this player is a split screen player.
|
protected |
delegate void ModWobblyLife.ModPlayerController.ModPlayerControllerCallback | ( | ModPlayerController | modPlayerController | ) |
delegate void ModWobblyLife.ModPlayerController.ModPlayerControllerCharacterCallback | ( | ModPlayerController | modPlayerController, |
ModPlayerCharacter | playerCharacter | ||
) |
delegate void ModWobblyLife.ModPlayerController.ModPlayerControllerGameplayCameraCallback | ( | ModPlayerController | modPlayerController, |
ModGameplayCamera | gameplayCamera | ||
) |
delegate void ModWobblyLife.ModPlayerController.ModPlayerControllerNameChanged | ( | ModPlayerController | modPlayerController, |
string | playerName | ||
) |
delegate void ModWobblyLife.ModPlayerController.ModPlayerControllerPlayerTransformChanged | ( | ModPlayerController | modPlayerController, |
Transform | playerTransform | ||
) |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented from ModWobblyLife.Network.ModNetworkBehaviour.
|
protectedvirtual |
Reimplemented from ModWobblyLife.Network.ModNetworkBehaviour.
|
protectedvirtual |
Reimplemented from ModWobblyLife.Network.ModNetworkBehaviour.
|
protectedvirtual |
Called when the player camera has been created (Owners only)
modGameplayCamera |
|
protectedvirtual |
Called when the ui system is ready (Owner only)
|
protectedvirtual |
Called when the player character has been destroyed.
playerCharacter |
|
protectedvirtual |
Called when the player character has spawned.
playerCharacter |
|
protectedvirtual |
Called when the player has loaded.
|
protectedvirtual |
Called when the player name is changed.
playerName |
|
protectedvirtual |
Called when the player transform has changed.
playerTransform |
|
protectedvirtual |
Called when the persistent data has been loaded i.e Clothes data (Server only)
|
protectedvirtual |
Reimplemented from ModWobblyLife.Network.ModNetworkBehaviour.
void ModWobblyLife.ModPlayerController.ServerLoadSavedClothesOnActivePlayer | ( | bool | bForced = false | ) |
Load their saved clothes onto their current player character (Server only)
bForced |
void ModWobblyLife.ModPlayerController.ServerLoadSavedClothesOnActivePlayer | ( | ModClothingSelectionType | selectionType, |
bool | bForced = false |
||
) |
Load their saved clothes onto their current player character (Server only)
selectionType | |
bForced |
void ModWobblyLife.ModPlayerController.ServerSetAllowedCustomClothingAbilities | ( | bool | bServerAllowedCustomsClothingAbilities | ) |
Set whether players are allowed to use special clothing abilities i.e Jet Pack etc (Server only)
bServerAllowedCustomsClothingAbilities |
void ModWobblyLife.ModPlayerController.ServerSetSandboxUIEnabled | ( | bool | bEnabled | ) |
Set whether the Sandbox menu is enabled (Server only) Setting this to true will allow this player to be in Sandbox mode.
bEnabled |
void ModWobblyLife.ModPlayerController.SetAllowedSavedClothes | ( | bool | bAllowedSavedClothes | ) |
Sets whether this player is allowed to use saved clothing.
bAllowedSavedClothes |
void ModWobblyLife.ModPlayerController.SetAllowedToRespawn | ( | bool | bAllowedToRespawn | ) |
Sets whether this player can respawn Setting this to false will remove the respawn option on their screen.
bAllowedToRespawn |
void ModWobblyLife.ModPlayerController.SetOwnerCameraFocus | ( | ModCameraFocus | cameraFocus, |
bool | bAppendPrevious = true |
||
) |
Sets the current camera focus for this controller.
cameraFocus | The camera focus you are setting it to |
bAppendPrevious | Whether to set the previous camera to the current camera |
void ModWobblyLife.ModPlayerController.SetOwnerCameraFocusPlayer | ( | ) |
Sets the camera focus to the player character.
void ModWobblyLife.ModPlayerController.SetOwnerCameraFocusPrevious | ( | ) |
Sets the camera focus to the previous one.
|
protected |
ModPlayerControllerGameplayCameraCallback ModWobblyLife.ModPlayerController.onGameplayCameraCreated |
Called when the player camera has been created (Owners only)
ModPlayerControllerCallback ModWobblyLife.ModPlayerController.onPlayerBasedUIAssigned |
Called when the ui system is ready (Owner only)
ModPlayerControllerCharacterCallback ModWobblyLife.ModPlayerController.onPlayerCharacterDestroyed |
Called when the player character has been destroyed.
ModPlayerControllerCharacterCallback ModWobblyLife.ModPlayerController.onPlayerCharacterSpawned |
Called when the player character has spawned.
ModPlayerControllerCallback ModWobblyLife.ModPlayerController.onPlayerLoaded |
Called when the player has loaded.
ModPlayerControllerNameChanged ModWobblyLife.ModPlayerController.onPlayerNameChanged |
Called when the player name is changed.
ModPlayerControllerPlayerTransformChanged ModWobblyLife.ModPlayerController.onPlayerTransformChanged |
Called when the player transform has changed.
ModPlayerControllerCallback ModWobblyLife.ModPlayerController.onServerPersistentDataLoaded |
Called when the persistent data has been loaded i.e Clothes data (Server only)