Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AssetPackage

Description

An AssetContainer with an additional tag used to conditionally load assets depending on which maze the player is entering.

Fields

FieldTypeDescription
OIDOIDInherited from AssetContainer
AssetMapmap[string][]AssetInherited from AssetContainer
AssetPackages[]AssetPackageInherited from AssetContainer
PTagstringTag matched against the current maze name to decide whether this package is loaded
CreateDatetime.Time

PTag matching

During LoadMazeCommand:238, the client iterates all packages from the home theme and applies this rule:

  • PTag == maze.name -> package is loaded (maze-specific assets)
  • PTag == "" (empty) -> package is always loaded (shared assets)
  • PTag is anything else -> package is skipped

This allows the server to ship assets for multiple different mazes in a single response, while the client only downloads what is relevant to the current location. (?)