registerSideModule
此内容尚不支持你的语言。
registerSideModule(
id,descriptor):void
Defined in: sideModules/registry.ts:95
Declare a module the engine did not build.
Called by the runtime from the packaged game’s config (which the export writes
from .esengine/modules/), so a game never registers by hand — but it is
public, because a host embedding the engine may know its modules some other
way. Registering an id the engine owns is refused: physics meaning two
different binaries depending on load order is not a capability.
Parameters
Section titled “Parameters”string
descriptor
Section titled “descriptor”Returns
Section titled “Returns”void