MapObject

Represents a single object within a layer, that can represent many different things. All objects have a priority identifier (int), a group identifier (int), and a name.

Members

Enums

MapObjectType
enum MapObjectType

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

Functions

opEquals
bool opEquals(MapObject rhs)

Checks if two objects have the same identifier.

serialize
Tag serialize()

Serializes the object into an SDL tag

Properties

type
MapObjectType type [@property getter]

Returns the type of this object

Variables

_type
MapObjectType _type;

type of the object

ancillaryTags
Tag[] ancillaryTags;

Tags that hold extra information

gID
int gID;

group identifier (equals with layer number)

name
string name;

name of object

pID
int pID;

priority identifier

Meta