User Tools

Site Tools


foundation-library-functions

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
foundation-library-functions [2026/10/05 16:15] – maximefoundation-library-functions [2026/10/05 16:19] (current) – maxime
Line 62: Line 62:
 Checks if a DLC is enabled Checks if a DLC is enabled
  
-''bool **myMod:isDlcEnabled**(//dlcName//)''+''bool **foundation.isDlcEnabled**(//dlcName//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
 | //''dlcName''// | ''string'' | the codename of the DLC (see [[dlc|DLC]] for the complete list) | | //''dlcName''// | ''string'' | the codename of the DLC (see [[dlc|DLC]] for the complete list) |
 +
 +==== Example ====
 +
 +<code lua>
 +local isEnabled = foundation.isDlcEnabled("agriculture")
 +</code>
  
 ---- ----
Line 73: Line 79:
 Creates a new instance of a data type Creates a new instance of a data type
  
-''data **myMod:createData**(//instanceData//)''+''data **foundation.createData**(//instanceData//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
Line 94: Line 100:
 Creates a new runtime instance of an asset type Creates a new runtime instance of an asset type
  
-''[[api:ASSET|ASSET]] **myMod:createAsset**(//instanceAssetData//)''+''[[api:ASSET|ASSET]] **foundation.createAsset**(//instanceAssetData//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
foundation-library-functions.1791231352.txt.gz · Last modified: 2026/10/05 16:15 by maxime

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki