Archmage.AtlasJson
The content of atlas.json, which maps each item key to its config files.
Inherits: RefCounted
The paths are relative to the cfg_root argument of Archmage.AtlasLoader.load_atlas(). An atlas modifier (see Archmage.AtlasOptions.with_atlas_modifier()) may change the maps before the items are loaded:
func modify(aj: Archmage.AtlasJson) -> void: aj.variant["balance"]["/"] = aj.variant["balance"]["hard"] aj.unique.erase("chapter")Properties
Section titled “Properties”version
Section titled “version”var version: Archmage.VersionInfoThe version object, or null when atlas.json has none.
unique
Section titled “unique”var unique: Dictionary[String, String] = {}Maps a key to its file.
variant
Section titled “variant”var variant: Dictionary[String, Dictionary] = {}Maps a key to a Dictionary that maps each variant to its file. The variant "/" is the default.
var many: Dictionary[String, Array] = {}Maps a key to an Array[String] of files, which are merged in order.
Methods
Section titled “Methods”pick_from_variant()
Section titled “pick_from_variant()”func pick_from_variant(key: String, variant_name: String) -> StringReturns the file of variant_name of key, or an empty string when there is none.