Rebel Fork Framework
Urho3D::TmxImageLayer2D Class Reference

Tmx image layer. More...

#include <Urho3D/Urho2D/TmxFile2D.h>

Inheritance diagram for Urho3D::TmxImageLayer2D:
Urho3D::TmxLayer2D Urho3D::RefCounted

Public Member Functions

 TmxImageLayer2D (TmxFile2D *tmxFile)
bool Load (const XMLElement &element, const TileMapInfo2D &info)
 Load from XML element.
const Vector2GetPosition () const
 Return position.
const ea::string & GetSource () const
 Return source.
Sprite2DGetSprite () const
 Return sprite.
- Public Member Functions inherited from Urho3D::TmxLayer2D
 TmxLayer2D (TmxFile2D *tmxFile, TileMapLayerType2D type)
TmxFile2DGetTmxFile () const
 Return tmx file.
TileMapLayerType2D GetType () const
 Return type.
const ea::string & GetName () const
 Return name.
int GetWidth () const
 Return width.
int GetHeight () const
 Return height.
bool IsVisible () const
 Return is visible.
bool HasProperty (const ea::string &name) const
 Return has property (use for script).
const ea::string & GetProperty (const ea::string &name) const
 Return property value (use for script).
- Public Member Functions inherited from Urho3D::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.
int AddRef ()
int ReleaseRef ()
int Refs () const
int WeakRefs () const
RefCountRefCountPtr () const
 Return pointer to the reference count structure.
bool HasScriptObject () const
 Return true if script runtime object wrapping this native object exists.
bool IsScriptStrongRef () const
 Return true if script reference is strong.

Private Attributes

Vector2 position_
ea::string source_
SharedPtr< Sprite2Dsprite_

Additional Inherited Members

- Protected Member Functions inherited from Urho3D::TmxLayer2D
void LoadInfo (const XMLElement &element)
 Load layer info.
void LoadPropertySet (const XMLElement &element)
 Load property set.
- Protected Attributes inherited from Urho3D::TmxLayer2D
WeakPtr< TmxFile2DtmxFile_
 Tmx file.
TileMapLayerType2D type_
 Layer type.
ea::string name_
int width_ {}
int height_ {}
bool visible_ {}
SharedPtr< PropertySet2DpropertySet_
 Property set.

Detailed Description

Tmx image layer.

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