chore: add files from IsaacScript 3.6.45 template
This commit is contained in:
21
src/main.ts
Normal file
21
src/main.ts
Normal file
@ -0,0 +1,21 @@
|
||||
import { ModCallback } from "isaac-typescript-definitions";
|
||||
|
||||
const MOD_NAME = "BetterDevilChance";
|
||||
|
||||
main();
|
||||
|
||||
function main() {
|
||||
// Instantiate a new mod object, which grants the ability to add callback functions that
|
||||
// correspond to in-game events.
|
||||
const mod = RegisterMod(MOD_NAME, 1);
|
||||
|
||||
// Register a callback function that corresponds to when a new player is initialized.
|
||||
mod.AddCallback(ModCallback.POST_PLAYER_INIT, postPlayerInit);
|
||||
|
||||
// Print a message to the "log.txt" file.
|
||||
Isaac.DebugString(`${MOD_NAME} initialized.`);
|
||||
}
|
||||
|
||||
function postPlayerInit() {
|
||||
Isaac.DebugString("Callback fired: POST_PLAYER_INIT");
|
||||
}
|
Reference in New Issue
Block a user