Skip to content

@temporary-escape/mod-sdk / onInit

Function: onInit() ​

ts
function onInit(): void;

Defined in: init.ts:38

Host entry point. Every mod re-exports this as its onInit export; the host (SectorInstance/GameServer) invokes it after the owning instance is set up. Callbacks are drained so a second onInit on the same instance is a no-op.

Returns ​

void