Urho3D
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Dviglo::TmxLayer2D Class Reference

Tmx layer. More...

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

Inheritance diagram for Dviglo::TmxLayer2D:
Dviglo::RefCounted Dviglo::TmxImageLayer2D Dviglo::TmxObjectGroup2D Dviglo::TmxTileLayer2D

Public Member Functions

 TmxLayer2D (TmxFile2D *tmxFile, TileMapLayerType2D type)
 
TmxFile2DGetTmxFile () const
 Return tmx file.
 
TileMapLayerType2D GetType () const
 Return type.
 
const StringGetName () const
 Return name.
 
int GetWidth () const
 Return width.
 
int GetHeight () const
 Return height.
 
bool IsVisible () const
 Return is visible.
 
bool HasProperty (const String &name) const
 Return has property (use for script).
 
const StringGetProperty (const String &name) const
 Return property value (use for script).
 
- Public Member Functions inherited from Dviglo::RefCounted
 RefCounted ()
 Construct. Allocate the reference count structure and set an initial self weak reference.
 
virtual ~RefCounted ()
 Destruct. Mark as expired and also delete the reference count structure if no outside weak references exist.
 
 RefCounted (const RefCounted &rhs)=delete
 Prevent copy construction.
 
RefCountedoperator= (const RefCounted &rhs)=delete
 Prevent assignment.
 
void AddRef ()
 
void ReleaseRef ()
 
int Refs () const
 
int WeakRefs () const
 
RefCountRefCountPtr ()
 Return pointer to the reference count structure.
 

Protected Member Functions

void LoadInfo (const XMLElement &element)
 Load layer info.
 
void LoadPropertySet (const XMLElement &element)
 Load property set.
 

Protected Attributes

WeakPtr< TmxFile2DtmxFile_
 Tmx file.
 
TileMapLayerType2D type_
 Layer type.
 
String name_
 Name.
 
int width_ {}
 Width.
 
int height_ {}
 Height.
 
bool visible_ {}
 Visible.
 
SharedPtr< PropertySet2DpropertySet_
 Property set.
 

Detailed Description

Tmx layer.


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