foundation-library-functions
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| foundation-library-functions [2023/09/14 11:32] – created - external edit 127.0.0.1 | foundation-library-functions [2026/08/03 17:10] (current) – maxime | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Foundation | + | ====== Foundation |
| ===== createMod ===== | ===== createMod ===== | ||
| Line 62: | Line 62: | ||
| Creates a new instance of a data type | Creates a new instance of a data type | ||
| - | '' | + | '' |
| ^ Name ^ Type ^ Description ^ | ^ Name ^ Type ^ Description ^ | ||
| Line 74: | Line 74: | ||
| ... | ... | ||
| } | } | ||
| - | foundation.createData(instanceData ) | + | local newData = foundation.createData(instanceData) |
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== createAsset ===== | ||
| + | |||
| + | Creates a new runtime instance of an asset type | ||
| + | |||
| + | '' | ||
| + | |||
| + | ^ Name ^ Type ^ Description ^ | ||
| + | | //'' | ||
| + | |||
| + | ==== Example ==== | ||
| + | |||
| + | <code lua> | ||
| + | local assetData = { | ||
| + | DataType = " | ||
| + | ... | ||
| + | } | ||
| + | local newAsset = foundation.createAsset(assetData) | ||
| </ | </ | ||
foundation-library-functions.1694705574.txt.gz · Last modified: 2023/09/14 11:32 by 127.0.0.1
