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

A simple look at camera. More...

Inheritance diagram for ModWobblyLife.ModCameraFocusSimpleLookAt:
ModWobblyLife.ModCameraFocus ModWobblyLife.Network.ModNetworkSubBehaviour ModWobblyLife.Network.IModNetworkSubBehaviour

Public Member Functions

override void UpdateCamera (ModGameplayCamera camera, Transform cameraTransform)
 Called per frame to update the camera.
 
override bool IsFOVChangeAllowed ()
 Whether FOV changing is allowed.
 
override bool ShouldResetFOVOnFocus ()
 Whether should change FOV to default FOV on focus.
 
- Public Member Functions inherited from ModWobblyLife.ModCameraFocus
void AssignCameraFocus (object cameraFocus)
 Internal use.
 
abstract void UpdateCamera (ModGameplayCamera camera, Transform cameraTransform)
 Called per frame to update the camera.
 
virtual bool IsFOVChangeAllowed ()
 Whether FOV changing is allowed.
 
virtual bool ShouldResetFOVOnFocus ()
 Whether should change FOV to default FOV on focus.
 
ModCameraFocusCallbacks GetInternalCallbacks ()
 Internal use.
 
- Public Member Functions inherited from ModWobblyLife.Network.ModNetworkSubBehaviour
void RegisterRPCs (ModNetworkObject networkObject)
 Called when you should register rpcs.
 
void NetworkStart (ModNetworkObject networkObject)
 Called when this object is ready on the network.
 
void NetworkPost (ModNetworkObject networkObject)
 Called after fully initalized the network.
 
GameObject GetGameObject ()
 Returns the gameobject of this object.
 
void RegisterRPCs (ModNetworkObject networkObject)
 Called when you should register rpcs.
 
void NetworkStart (ModNetworkObject networkObject)
 Called when this object is ready on the network.
 
void NetworkPost (ModNetworkObject networkObject)
 Called after fully initalized the network.
 
GameObject GetGameObject ()
 Returns the gameobject of this object.
 

Protected Member Functions

override void OnFocusCamera (ModPlayerController playerController)
 When a camera has focused on this camera focus.
 
override void OnUnfocusCamera (ModPlayerController playerController)
 When a camera has unfocused from this camera focus.
 
- Protected Member Functions inherited from ModWobblyLife.ModCameraFocus
override void Awake ()
 
abstract void OnFocusCamera (ModPlayerController playerController)
 When a camera has focused on this camera focus.
 
abstract void OnUnfocusCamera (ModPlayerController playerController)
 When a camera has unfocused from this camera focus.
 
- Protected Member Functions inherited from ModWobblyLife.Network.ModNetworkSubBehaviour
virtual void Awake ()
 
virtual void Start ()
 
virtual void OnDestroy ()
 
virtual void ModAwake ()
 
virtual void ModStart ()
 
virtual void ModOnDestroy ()
 
virtual void ModRegisterRPCs (ModNetworkObject modNetworkObject)
 
virtual void ModNetworkStart (ModNetworkObject modNetworkObject)
 
virtual void ModNetworkPost (ModNetworkObject modNetworkObject)
 

Additional Inherited Members

- Public Attributes inherited from ModWobblyLife.Network.ModNetworkSubBehaviour
ModNetworkObject modNetworkObject
 
- Events inherited from ModWobblyLife.ModCameraFocus
static Action< ModCameraFocusonPrepare
 Internal use.
 

Detailed Description

A simple look at camera.

Member Function Documentation

◆ IsFOVChangeAllowed()

override bool ModWobblyLife.ModCameraFocusSimpleLookAt.IsFOVChangeAllowed ( )
virtual

Whether FOV changing is allowed.

Returns

Reimplemented from ModWobblyLife.ModCameraFocus.

◆ OnFocusCamera()

override void ModWobblyLife.ModCameraFocusSimpleLookAt.OnFocusCamera ( ModPlayerController  playerController)
protectedvirtual

When a camera has focused on this camera focus.

Parameters
playerController

Implements ModWobblyLife.ModCameraFocus.

◆ OnUnfocusCamera()

override void ModWobblyLife.ModCameraFocusSimpleLookAt.OnUnfocusCamera ( ModPlayerController  playerController)
protectedvirtual

When a camera has unfocused from this camera focus.

Parameters
playerController

Implements ModWobblyLife.ModCameraFocus.

◆ ShouldResetFOVOnFocus()

override bool ModWobblyLife.ModCameraFocusSimpleLookAt.ShouldResetFOVOnFocus ( )
virtual

Whether should change FOV to default FOV on focus.

Returns

Reimplemented from ModWobblyLife.ModCameraFocus.

◆ UpdateCamera()

override void ModWobblyLife.ModCameraFocusSimpleLookAt.UpdateCamera ( ModGameplayCamera  camera,
Transform  cameraTransform 
)
virtual

Called per frame to update the camera.

Parameters
camera
cameraTransform

Implements ModWobblyLife.ModCameraFocus.