Supplies a set of controls for manipulating the player's 'camera' (screen position).
More...
Supplies a set of controls for manipulating the player's 'camera' (screen position).
Definition at line 10 of file Camera.cs.
◆ ApplyOffset()
static void HamstarHelpers.Services.Camera.Camera.ApplyOffset |
( |
int |
offsetX, |
|
|
int |
offsetY |
|
) |
| |
|
static |
Shifts the camera from its current position by the given offset.
- Parameters
-
Definition at line 16 of file Camera.cs.
◆ ApplyPosition()
static void HamstarHelpers.Services.Camera.Camera.ApplyPosition |
( |
int? |
worldX, |
|
|
int? |
worldY |
|
) |
| |
|
static |
Positions the camera statically somewhere in the world..
- Parameters
-
worldX | null uses current screen position. |
worldY | null uses current screen position. |
Definition at line 28 of file Camera.cs.
◆ ApplyShake()
static void HamstarHelpers.Services.Camera.Camera.ApplyShake |
( |
float |
magnitude | ) |
|
|
static |
Applies a shaking motion to the camera.
- Parameters
-
Definition at line 39 of file Camera.cs.
◆ ApplyZoom()
static void HamstarHelpers.Services.Camera.Camera.ApplyZoom |
( |
float |
scale | ) |
|
|
static |
Applies zoom to the camera.
- Parameters
-
Definition at line 49 of file Camera.cs.
◆ ResetOffset()
static void HamstarHelpers.Services.Camera.Camera.ResetOffset |
( |
| ) |
|
|
static |
Resets camera shift.
Definition at line 64 of file Camera.cs.
◆ ResetPosition()
static void HamstarHelpers.Services.Camera.Camera.ResetPosition |
( |
| ) |
|
|
static |
Resets camera position.
Definition at line 74 of file Camera.cs.
◆ ResetShake()
static void HamstarHelpers.Services.Camera.Camera.ResetShake |
( |
| ) |
|
|
static |
Reset shaking motion to the camera.
Definition at line 84 of file Camera.cs.
◆ ResetZoom()
static void HamstarHelpers.Services.Camera.Camera.ResetZoom |
( |
| ) |
|
|
static |
Resets zoom of the camera.
Definition at line 93 of file Camera.cs.
◆ Instance
Camera HamstarHelpers.Services.Camera.Camera.Instance => ModContent.GetInstance<Camera>() |
|
static |
◆ OffsetX
int HamstarHelpers.Services.Camera.Camera.OffsetX = 0 |
|
get |
◆ OffsetY
int HamstarHelpers.Services.Camera.Camera.OffsetY = 0 |
|
get |
◆ ShakeMagnitude
float HamstarHelpers.Services.Camera.Camera.ShakeMagnitude = 0f |
|
get |
◆ WorldPositionX
int? HamstarHelpers.Services.Camera.Camera.WorldPositionX = null |
|
get |
◆ WorldPositionY
int? HamstarHelpers.Services.Camera.Camera.WorldPositionY = null |
|
get |
◆ ZoomScale
float HamstarHelpers.Services.Camera.Camera.ZoomScale = -1 |
|
get |
The documentation for this class was generated from the following files: