User Tools

Site Tools


mod-functions:mod

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
mod-functions:mod [2019/05/29 13:30] – external edit 127.0.0.1mod-functions:mod [2020/01/23 13:49] maxime
Line 32: Line 32:
  
 Parameters: Parameters:
-  * ''assetData'' (table): the data defining the new asset. The table must contain at least the asset's type (''DataType'', see [[preview:api|API]] for the complete list) and its ID (''Id'').+  * ''assetData'' (table): the data defining the new asset. The table must contain at least the asset's type (''DataType'', see [[:api|API]] for the complete list) and its ID (''Id'').
  
 ---- ----
Line 38: Line 38:
 ===== override ===== ===== override =====
  
-Override an existing game asset (see [[preview:asset-override|Asset Override]] for a complete explanation)+Override an existing game asset (see [[:asset-override|Asset Override]] for a complete explanation)
  
 <code lua> <code lua>
Line 49: Line 49:
  
 Parameters: Parameters:
-  * ''assetData'' (table): the data defining the overridden asset. The table must contain at least the existing asset's type (''Id'', see [[preview:assets|Assets]] for the complete list).+  * ''assetData'' (table): the data defining the overridden asset. The table must contain at least the existing asset's type (''Id'', see [:assets|Assets]] for the complete list).
  
 ---- ----
Line 69: Line 69:
 ===== registerPrefabComponent ===== ===== registerPrefabComponent =====
  
-Registers a component to a prefab (see [[preview:components|Components]] for a complete explanation)+Registers a component to a prefab (see [[:components|Components]] for a complete explanation)
  
 <code lua> <code lua>
Line 81: Line 81:
 Parameters: Parameters:
   * ''prefabPath'' (string): the path to the prefab   * ''prefabPath'' (string): the path to the prefab
-  * ''componentData'' (table): the data defining the component. The table must contain at least the component's type (''DataType'', see [[preview:api|API]] for the complete list).+  * ''componentData'' (table): the data defining the component. The table must contain at least the component's type (''DataType'', see [[:api|API]] for the complete list).
  
 ---- ----
Line 87: Line 87:
 ===== registerAssetProcessor ===== ===== registerAssetProcessor =====
  
-Registers an asset processor to a file (see [[preview:building-asset-processor|Building Asset Processor]] for a complete explanation)+Registers an asset processor to a file (see [[:building-asset-processor|Building Asset Processor]] for a complete explanation)
  
 <code lua> <code lua>
Line 99: Line 99:
 Parameters: Parameters:
   * ''filePath'' (string): the path to the file   * ''filePath'' (string): the path to the file
-  * ''processorData'' (table): the data defining the asset processor. The table must contain at least the processor's type (''DataType'', see [[preview:api|API]] for the complete list).+  * ''processorData'' (table): the data defining the asset processor. The table must contain at least the processor's type (''DataType'', see [[:api|API]] for the complete list).
  
 ---- ----

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki