Property | Type | Description | |
---|---|---|---|
camera | |||
deadzone | RectangleF | ||
focusOffset | Vector2 | ||
followLerp | float | ||
mapLockEnabled | bool | ||
mapSize | Vector2 |
Method | Description | |
---|---|---|
FollowCamera ( System.Entity targetEntity ) : System | ||
FollowCamera ( System.Entity targetEntity, |
||
IUpdatable ( ) : void | ||
debugRender ( |
||
follow ( System.Entity targetEntity, CameraStyle cameraStyle = CameraStyle.CameraWindow ) : void | ||
onAddedToEntity ( ) : void | ||
onGraphicsDeviceReset ( ) : void | ||
onRemovedFromEntity ( ) : void | ||
setCenteredDeadzone ( int width, int height ) : void |
sets up the deadzone centered in the current cameras bounds with the given size
|
|
updateFollow ( ) : void |
Method | Description | |
---|---|---|
clampToMapSize ( Vector2 position ) : Vector2 |
Clamps the camera so it never leaves the visible area of the map.
|
public FollowCamera ( System.Entity targetEntity ) : System | ||
targetEntity | System.Entity | |
return | System |
public FollowCamera ( System.Entity targetEntity, |
||
targetEntity | System.Entity | |
camera | ||
return | System |
public debugRender ( |
||
graphics | ||
return | void |
public follow ( System.Entity targetEntity, CameraStyle cameraStyle = CameraStyle.CameraWindow ) : void | ||
targetEntity | System.Entity | |
cameraStyle | CameraStyle | |
return | void |
public setCenteredDeadzone ( int width, int height ) : void | ||
width | int | Width. |
height | int | Height. |
return | void |