Свойство | Тип | Описание | |
---|---|---|---|
camera | |||
deadzone | RectangleF | ||
focusOffset | Vector2 | ||
followLerp | float | ||
mapLockEnabled | bool | ||
mapSize | Vector2 |
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 | |
Результат | System |
public FollowCamera ( System.Entity targetEntity, |
||
targetEntity | System.Entity | |
camera | ||
Результат | System |
public debugRender ( |
||
graphics | ||
Результат | void |
public follow ( System.Entity targetEntity, CameraStyle cameraStyle = CameraStyle.CameraWindow ) : void | ||
targetEntity | System.Entity | |
cameraStyle | CameraStyle | |
Результат | void |
public setCenteredDeadzone ( int width, int height ) : void | ||
width | int | Width. |
height | int | Height. |
Результат | void |