MapObject
The MapObject type is a base type for all map editor objects.
Regarding MapObject *Property
and set*Property
functions
MapObject properties in SLADE generally mirror the properties defined in the UDMF specification. As an example, setting the texturetop
string property on a
Derived Types
The following types inherit all MapObject properties and functions:
Properties
Property | Type | Description |
---|---|---|
The object's index in the map | ||
The object type name (eg. Vertex ) |
Constructors
No Constructors
This type can not be created directly in scripts.
Functions
hasProperty
string name : The name of the property to check
Returns
Returns true
if the object has a property matching the given
boolProperty
string name : The name of the property to get
Returns
Returns the false
.
intProperty
string name : The name of the property to get
Returns
Returns the integer
floatProperty
string name : The name of the property to get
Returns
Returns the floating point
stringProperty
string name : The name of the property to get
Returns
Returns the
setBoolProperty
string name : The name of the property to setboolean value : The value to apply
Sets the property
setIntProperty
string name : The name of the property to setnumber value : The value to apply
Sets the property
setFloatProperty
string name : The name of the property to setnumber value : The value to apply
Sets the property
setStringProperty
string name : The name of the property to setstring value : The value to apply
Sets the property