MapFormat.addObjectToLayer

Adds an object to a layer. Intended for editor use.

class MapFormat
@trusted
Tag
addObjectToLayer
(
int layer
,
Tag t
)

Parameters

layer int

The ID of the layer.

t Tag

The serialized tag of the object.

Return Value

Type: Tag

The backup of the previous object's copy, or null if no object have existed with the same ID.

Meta