generated from Anuken/MindustryJavaModTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dasba
authored and
dasba
committed
Oct 1, 2022
1 parent
cbe9f1b
commit ffb4f5d
Showing
15 changed files
with
282 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,36 @@ | ||
package extralogic; | ||
|
||
import arc.Events; | ||
import arc.util.Log; | ||
import extralogic.content.ExtraLogicBlocks; | ||
import extralogic.content.ExtraLogicContent; | ||
import extralogic.content.ExtraLogicUI; | ||
import extralogic.logic.ExtraLogicIO; | ||
import extralogic.logic.statements.ExtraLStatements; | ||
import mindustry.game.EventType; | ||
import mindustry.mod.Mod; | ||
|
||
public class ExtraLogicMod extends Mod { | ||
|
||
public ExtraLogicMod() { | ||
Log.info("Initializing ExtraLogic!"); | ||
// // listen for game load event | ||
|
||
Events.on(EventType.WorldLoadEvent.class, e->{ | ||
ExtraLogicIO.regenerateStatements(); | ||
}); | ||
} | ||
|
||
@Override | ||
public void loadContent() { | ||
Log.info("Loading ExtraLogic content!"); | ||
ExtraLogicBlocks.load(); | ||
ExtraLStatements.load(); | ||
ExtraLogicIO.regenerateStatements(); | ||
} | ||
|
||
@Override | ||
public void init() { | ||
ExtraLogicContent.ui = new ExtraLogicUI(); | ||
ExtraLogicContent.logicVars.init(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.