ModWorld
Initialize
Called before the game goes into the gameplay mode. public override void Initialize() { } | ||||||||||||||
Save
Called when the world is being saved. public override void Save(BinBuffer bb) { }
| ||||||||||||||
Load
Called when the world is being loaded. public override void Load(BinBuffer bb) { }
| ||||||||||||||
PostUpdate
Called every frame when the world updates (in singleplayer and on the server). public override void PostUpdate() { } | ||||||||||||||
CheckChristmas
Called when the game rechecks the Christmas status. public override bool? CheckChristmas() { return null; }
| ||||||||||||||
CheckHalloween
Called when the game rechecks the Halloween status. public override bool? CheckHalloween() { return null; }
| ||||||||||||||
WorldGenPostInit
Called after the world generation process finishes initializing. public override void WorldGenPostInit() { } | ||||||||||||||
WorldGenModifyTaskList
Called after queuing world generation tasks, can be used to modify which tasks should be done and/or add custom tasks. public override void WorldGenModifyTaskList(List<WorldGenTask> list) { }
| ||||||||||||||
WorldGenPostGen
Called after the whole world generation process. public override void WorldGenPostGen() { } | ||||||||||||||
WorldGenModifyHardmodeTaskList
Called after queuing world generation tasks when switching the world to hardmode, can be used to modify which tasks should be done and/or add custom tasks. public override void WorldGenModifyHardmodeTaskList(List<WorldGenTask> list) { }
| ||||||||||||||
PreHitWire
Called when a wire current goes through a tile. public override bool PreHitWire(int x, int y, int wireType) { return true; }
|