跳转到内容

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