mod-functions:mod
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mod-functions:mod [2020/01/23 13:48] – maxime | mod-functions:mod [2020/05/06 16:32] (current) – removed maxime | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Mod management functions ====== | ||
- | ===== dofile ===== | ||
- | |||
- | Loads and runs a Lua script | ||
- | |||
- | <code lua> | ||
- | local result = myMod: | ||
- | </ | ||
- | |||
- | Parameters: | ||
- | * '' | ||
- | * '' | ||
- | |||
- | Return: | ||
- | * '' | ||
- | |||
- | ---- | ||
- | |||
- | ===== register ===== | ||
- | |||
- | Register a new game asset | ||
- | |||
- | <code lua> | ||
- | local assetData = { | ||
- | DataType = " | ||
- | Id = " | ||
- | ... | ||
- | } | ||
- | myMod: | ||
- | </ | ||
- | |||
- | Parameters: | ||
- | * '' | ||
- | |||
- | ---- | ||
- | |||
- | ===== override ===== | ||
- | |||
- | Override an existing game asset (see [[asset-override|Asset Override]] for a complete explanation) | ||
- | |||
- | <code lua> | ||
- | local assetData = { | ||
- | Id = " | ||
- | ... | ||
- | } | ||
- | myMod: | ||
- | </ | ||
- | |||
- | Parameters: | ||
- | * '' | ||
- | |||
- | ---- | ||
- | |||
- | ===== registerAssetId ===== | ||
- | |||
- | Assign an asset ID to an asset in the mod's directory | ||
- | |||
- | <code lua> | ||
- | myMod: | ||
- | </ | ||
- | |||
- | Parameters: | ||
- | * '' | ||
- | * '' | ||
- | |||
- | ---- | ||
- | |||
- | ===== registerPrefabComponent ===== | ||
- | |||
- | Registers a component to a prefab (see [[components|Components]] for a complete explanation) | ||
- | |||
- | <code lua> | ||
- | local componentData = { | ||
- | DataType = " | ||
- | ... | ||
- | } | ||
- | myMod: | ||
- | </ | ||
- | |||
- | Parameters: | ||
- | * '' | ||
- | * '' | ||
- | |||
- | ---- | ||
- | |||
- | ===== registerAssetProcessor ===== | ||
- | |||
- | Registers an asset processor to a file (see [[building-asset-processor|Building Asset Processor]] for a complete explanation) | ||
- | |||
- | <code lua> | ||
- | local processorData= { | ||
- | DataType = " | ||
- | ... | ||
- | } | ||
- | myMod: | ||
- | </ | ||
- | |||
- | Parameters: | ||
- | * '' | ||
- | * '' | ||
- | |||
- | ---- | ||
- | |||
- | ===== configurePrefabFlagList ===== | ||
- | |||
- | Configure a prefab with a list of flags | ||
- | |||
- | <code lua> | ||
- | local flagArray = { " | ||
- | myMod: | ||
- | </ | ||
- | |||
- | Parameters: | ||
- | * '' | ||
- | * '' |
mod-functions/mod.1579805316.txt.gz · Last modified: 2020/01/23 13:48 by maxime