Path to the current session file.
Returns the per-file state for the given file name.
Returns the session value for the given key, or defaultValue if
the key is not set.
Returns whether the given key is present in the session.
Sets the session value for the given key.
Sets the per-file state for the given file name.
Warning: This replaces the entire per-file state for the given file. To set only a single value, use setFileStateValue instead.
Sets a single value in the per-file state for the given file name.
Generated using TypeDoc
Provides access to session-specific settings. The session stores per-project preferences like last-used tile sizes, open files, and file states.
Values are accessed by their string key (e.g.
"map.tileWidth").Known Session Properties
"map.orientation"number(Map.Orientation)Map.Orthogonal"map.layerDataFormat"number(Map.LayerDataFormat)Map.CSV"map.renderOrder"number(Map.RenderOrder)Map.RightDown"map.fixedSize"booleantrue"map.width"number30"map.height"number20"map.tileWidth"number32"map.tileHeight"number32"map.lastUsedFormat"string"""map.lastUsedExportFilter"string"""tileset.type"number0"tileset.embedInMap"booleanfalse"tileset.useTransparentColor"booleanfalse"tileset.transparentColor"color"tileset.tileSize"size{width: 32, height: 32}"tileset.spacing"number0"tileset.margin"number0"tileset.lastUsedFilter"string"""tileset.lastUsedFormat"string"""resizeMap.removeObjects"booleantrue"exportAsImage.visibleLayersOnly"booleantrue"exportAsImage.useCurrentScale"booleanfalse"exportAsImage.drawTileGrid"booleanfalse"exportAsImage.drawObjectLabels"booleanfalse"exportAsImage.includeBackgroundColor"booleanfalse"automapping.whileDrawing"booleanfalse"mapScene.enableWorlds"booleantrue"textEdit.monospace"booleantrue"frame.defaultDuration"number100"console.history"string[][]"property.type"string"string""file.lastUsedOpenFilter"string"""loadedWorlds"string[][]"lastUsedTilesetExportFilter"string"""stampsFolder"string"<dataDir>/stamps"1.12