Skip to content

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")
var version: Archmage.VersionInfo

The version object, or null when atlas.json has none.

var unique: Dictionary[String, String] = {}

Maps a key to its file.

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.

func pick_from_variant(key: String, variant_name: String) -> String

Returns the file of variant_name of key, or an empty string when there is none.