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

MapObjectFlags
enum MapObjectFlags

Defines various flags for objects

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

flags
BitFlags!MapObjectFlags flags;

Contains property flags

gID
int gID;

group identifier (equals with layer number)

mainTag
Tag mainTag;

Tag that holds the data related to this mapobject + ancillary tags

name
string name;

name of object

pID
int pID;

priority identifier

Meta