modifier¶
Source: base/tealdef/mission/modifier.d.tl
Notes
Resource-modifier helper that missions use to patch loaded game resources by file path.
Modifier¶
record global base/tealdef/mission/modifier.d.tl:3
global record Modifier
Load: local modifier = require "::/mission/modifier.lua"
Notes
Resource-modifier helper for missions.
Functions
treevisitor(tree : any) base/tealdef/mission/modifier.d.tl:4
Call as modifier.treevisitor
Notes
Registers modifiers for all resource types that walk a table tree by the parts of the loaded file path and call the function found there on the resource data.
| Parameter | Type | Description |
|---|---|---|
tree |
any |
Nested tables keyed by path segments (with default as fallback), whose leaves are functions function(data). |