Urho3D
Public Member Functions | Public Attributes | List of all members
Dviglo::TileMapInfo2D Struct Reference

#include </home/runner/work/Dviglo/Dviglo/DvigloRepository/Source/Urho3D/Urho2D/TileMapDefs2D.h>

Public Member Functions

float GetMapWidth () const
 
float GetMapHeight () const
 
Vector2 ConvertPosition (const Vector2 &position) const
 Convert tmx position to Urho position.
 
Vector2 TileIndexToPosition (int x, int y) const
 Convert tile index to position.
 
bool PositionToTileIndex (int &x, int &y, const Vector2 &position) const
 Convert position to tile index, if out of map return false.
 

Public Attributes

Orientation2D orientation_
 Orientation.
 
int width_
 Width.
 
int height_
 Height.
 
float tileWidth_
 Tile width.
 
float tileHeight_
 Tile height.
 

Detailed Description

Tile map information.

Member Function Documentation

◆ GetMapHeight()

float Dviglo::TileMapInfo2D::GetMapHeight ( ) const

return map height.

◆ GetMapWidth()

float Dviglo::TileMapInfo2D::GetMapWidth ( ) const

Return map width.


The documentation for this struct was generated from the following files: