Свойство | Type | Description | |
---|---|---|---|
collisionLayer | Nez.Tiled.TiledTileLayer | ||
layerIndicesToRender | int[] | ||
physicsLayer | int | ||
tiledMap | TiledMap |
Méthode | Description | |
---|---|---|
IUpdatable ( ) : void | ||
TiledMapComponent ( TiledMap tiledMap, string collisionLayerName = null, bool shouldCreateColliders = true ) : System | ||
addColliders ( ) : void | ||
debugRender ( |
||
getColumnAtWorldPosition ( float xPos ) : int | ||
getRowAtWorldPosition ( float yPos ) : int | ||
getTileAtWorldPosition ( Vector2 worldPos ) : |
this method requires that you are using a collision layer setup in the constructor.
|
|
getTilesIntersectingBounds ( |
gets all the non-empty tiles that intersect the passed in bounds for the collision layer. The returned List can be put back in the pool via ListPool.free.
|
|
onAddedToEntity ( ) : void | ||
onEntityTransformChanged ( |
||
onRemovedFromEntity ( ) : void | ||
removeColliders ( ) : void | ||
render ( |
||
renderObjectGroup ( |
||
setLayerToRender ( string layerName ) : void |
sets this component to only render a single layer
|
|
setLayersToRender ( ) : void |
sets which layers should be rendered by this component by name. If you know the indices you can set layerIndicesToRender directly.
|
public TiledMapComponent ( TiledMap tiledMap, string collisionLayerName = null, bool shouldCreateColliders = true ) : System | ||
tiledMap | TiledMap | |
collisionLayerName | string | |
shouldCreateColliders | bool | |
Résultat | System |
public debugRender ( |
||
graphics | ||
Résultat | void |
public getColumnAtWorldPosition ( float xPos ) : int | ||
xPos | float | |
Résultat | int |
public getRowAtWorldPosition ( float yPos ) : int | ||
yPos | float | |
Résultat | int |
public getTileAtWorldPosition ( Vector2 worldPos ) : |
||
worldPos | Vector2 | World position. |
Résultat |
public getTilesIntersectingBounds ( |
||
bounds | Bounds. | |
Résultat | List |
public onEntityTransformChanged ( |
||
comp | ||
Résultat | void |
public render ( |
||
graphics | ||
camera | ||
Résultat | void |
public renderObjectGroup ( |
||
group | ||
graphics | ||
Résultat | void |
public setLayerToRender ( string layerName ) : void | ||
layerName | string | Layer name. |
Résultat | void |
public TiledTileLayer,Nez.Tiled collisionLayer | ||
Résultat | Nez.Tiled.TiledTileLayer |