Mod Creation/Mod Context API Reference: Difference between revisions

Line 281: Line 281:
<small>''Comments in JSON are purely illustrative and not valid markup''</small>
<small>''Comments in JSON are purely illustrative and not valid markup''</small>


  <nowiki>await ctx.gameData.addPackage('data.json');</nowiki>
  <syntaxhighlight lang="js" line>await ctx.gameData.addPackage('data.json');</syntaxhighlight>


=== buildPackage(builder: (packageBuilder: GameDataPackageBuilder) => void): BuiltGameDataPackage ===
=== buildPackage(builder: (packageBuilder: GameDataPackageBuilder) => void): BuiltGameDataPackage ===
91

edits