Updated modules

minjaesong
2022-09-07 21:26:19 +09:00
parent 51fb6e4502
commit ca823ad5e4

@@ -44,11 +44,11 @@ A module may have one Jar file. Two or more Jars are not allowed: if your module
Except for the [[retextures|Modules:Retextures]], there are *technically* no strict directory structure required, certain ingame elements loaded by the engine expects certain paths.
### Entry Point
If your module has a Jar file, it must have single class that extends `net.torvald.terrarum.ModuleEntryPoint`: such class is called a Entry Point. The Entry Point initialises and installs your module to the game. What the Entry Point does to load your module depends upto you, but the engine provides the Modmgr for installing ingame elements to the game.
If your module has a Jar file, it must have a single class that extends `net.torvald.terrarum.ModuleEntryPoint`: such class is called a Entry Point. The Entry Point initialises and installs your module to the game. What the Entry Point does to load your module depends up to you, but the engine provides the **Modmgr** for installing ingame elements to the game.
### The Modmgr
The Modmgr provides function to load following ingame elements:
The Modmgr provides the functions to load the following ingame elements:
- ModMgr.**GameBlockLoader** — loads the blocks and wires
- ModMgr.**GameItemLoader** — loads the items
- ModMgr.**GameMaterialLoader** — loads the materials that accompany with the blocks and items
@@ -70,7 +70,7 @@ Autotiling and TODO
#### GameItemLoader
The GameBlockLoader looks for the `<module root>/items/itemid.csv` for the list of items.
The GameItemLoader looks for the `<module root>/items/itemid.csv` for the list of items.
TODO describe the csv but not the GameItem
@@ -90,7 +90,7 @@ TODP
The GameRetextureLoader looks for the `<module root>/retextures/` for the retextures.
For the retexture file formats, please refer to the [[Modules:Retextures]]
For the retexture file formats, please refer to the [[Modules:Retextures]].
#### GameCraftingRecipeLoader