Свойство | Type | Description | |
---|---|---|---|
camera | |||
deadzone | RectangleF | ||
focusOffset | Vector2 | ||
followLerp | float | ||
mapLockEnabled | bool | ||
mapSize | Vector2 |
Méthode | 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 |
Méthode | 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 | |
Résultat | System |
public FollowCamera ( System.Entity targetEntity, |
||
targetEntity | System.Entity | |
camera | ||
Résultat | System |
public debugRender ( |
||
graphics | ||
Résultat | void |
public follow ( System.Entity targetEntity, CameraStyle cameraStyle = CameraStyle.CameraWindow ) : void | ||
targetEntity | System.Entity | |
cameraStyle | CameraStyle | |
Résultat | void |
public setCenteredDeadzone ( int width, int height ) : void | ||
width | int | Width. |
height | int | Height. |
Résultat | void |