Skip to content

registerWorldRules

registerWorldRules(rules): void

Defined in: sdk/src/worldgen/rules.ts:139

Makes rules available to every WorldGen that names them; a second set under the same id replaces the first. A WorldGen waiting for its rules (a script registers them after the scene loaded) is laid out once they are here.

WorldRules

void