LdtkTocInstanceData

ceramic.LdtkTocInstanceData (Class)

Contains instance data for an entity referenced in the table of contents. Includes location information to quickly find entities across levels.

Instance Members

ldtk
tocEntry: LdtkTocEntry

The LdtkTocEntry object this instance data belongs to


An object containing the values of all entity fields with the exportToDoc option enabled.


ldtk
widPx: Int

Entity width in pixels as it appears in the LDtk editor


ldtk
heiPx: Int

Entity height in pixels as it appears in the LDtk editor


ldtk
worldX: Int

Entity X coordinate in world pixels (across all levels)


ldtk
worldY: Int

Entity Y coordinate in world pixels (across all levels)


ldtk
worldIid: String

Unique instance identifier for the world containing this entity


ldtk
levelIid: String

Unique instance identifier for the level containing this entity


ldtk
layerIid: String

Unique instance identifier for the layer containing this entity


ldtk
entityIid: String

Unique instance identifier for this entity instance


ldtk
toString(): String
Returns
String

ldtk
new(?tocEntry: LdtkTocEntry, ?json: haxe.DynamicAccess<Dynamic>): Void
Name Type Default
tocEntry LdtkTocEntry (optional)
json haxe.DynamicAccess<Dynamic> (optional)