TmjObject Class
Definition
Namespace: Brine2D.Tilemap
Inheritance System.Object → TmjObject
| Properties | |
|---|---|
| Class | Tiled 1.9+ renamed the "type" field to "class". Populated when loading newer maps. TmjLoader uses Type first and falls back to this. |
| Ellipse | Present and true when this is an ellipse object. |
| Gid | Raw GID from Tiled for tile objects, including any flip bits in the high bytes. Use TmjLoader to strip bits and populate the clean Gid. Absent for all other shape types. |
| Point | Present and true when this is a point object. |
| Polygon | Vertex list for polygon objects. Coordinates are relative to the object origin. |
| Polyline | Vertex list for polyline objects. Coordinates are relative to the object origin. |
| Text | Present for text objects. The nested Tiled "text" object; only the "text" string field is extracted � font, size, and style are editor-only concerns. |
| Type | The object's user-defined type/class. Tiled 1.8 and earlier export this as "type"; Tiled 1.9+ exports it as "class". Both are read so maps from any Tiled version load correctly. |