SpriteObject

Implements a sprite object. Adds a sprite source identifier, X and Y coordinates, and two 1024 based scaling indicator.

Constructors

this
this(int pID, int gID, string name, int ssID, int x, int y, int scaleHoriz, int scaleVert)

Creates a new instance from scratch.

this
this(Tag t, int gID)

Deserializes itself from a Tag.

Members

Functions

serialize
Tag serialize()

Serializes the object into an SDL tag

Variables

_ssID
int _ssID;

Sprite source identifier

scaleHoriz
int scaleHoriz;

Horizontal scaling value

scaleVert
int scaleVert;

Vertical scaling value

x
int x;

X position

y
int y;

Y position

Inherited Members

From MapObject

MapObjectType
enum MapObjectType

Enumerator used for differentiating between multiple kinds of objects. The value serialized as a string as the name of a tag.

pID
int pID;

priority identifier

gID
int gID;

group identifier (equals with layer number)

name
string name;

name of object

_type
MapObjectType _type;

type of the object

ancillaryTags
Tag[] ancillaryTags;

Tags that hold extra information

type
MapObjectType type [@property getter]

Returns the type of this object

serialize
Tag serialize()

Serializes the object into an SDL tag

opEquals
bool opEquals(MapObject rhs)

Checks if two objects have the same identifier.

Meta