AssetPackage
Description
An AssetContainer with an additional tag used to conditionally load assets depending on which maze the player is entering.
Fields
| Field | Type | Description |
|---|---|---|
OID | OID | Inherited from AssetContainer |
AssetMap | map[string][]Asset | Inherited from AssetContainer |
AssetPackages | []AssetPackage | Inherited from AssetContainer |
PTag | string | Tag matched against the current maze name to decide whether this package is loaded |
CreateDate | time.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)PTagis 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. (?)