MCPcopy Index your code
hub / github.com/esengine/esengine / IRuntimeModule

Interface IRuntimeModule

packages/engine-core/src/EnginePlugin.ts:176–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174 * Runtime module interface
175 */
176export interface IRuntimeModule {
177 /**
178 * 注册组件到 ComponentRegistry
179 * Register components to ComponentRegistry
180 */
181 registerComponents?(registry: IComponentRegistry): void;
182
183 /**
184 * 注册服务到 ServiceContainer
185 * Register services to ServiceContainer
186 */
187 registerServices?(services: ServiceContainer): void;
188
189 /**
190 * 为场景创建系统
191 * Create systems for scene
192 */
193 createSystems?(scene: IScene, context: SystemContext): void;
194
195 /**
196 * 所有系统创建完成后调用
197 * Called after all systems are created
198 */
199 onSystemsCreated?(scene: IScene, context: SystemContext): void;
200
201 /**
202 * 模块初始化完成回调
203 * Module initialization complete callback
204 */
205 onInitialize?(): Promise<void>;
206
207 /**
208 * 模块销毁回调
209 * Module destroy callback
210 */
211 onDestroy?(): void;
212}
213
214// ============================================================================
215// 插件接口 | Plugin Interface

Callers 23

initializeRuntimeMethod · 0.65
activatePluginRuntimeMethod · 0.65
initializeRuntimeMethod · 0.65
initializeRuntimeMethod · 0.65
activatePluginRuntimeMethod · 0.65
createSystemsForSceneMethod · 0.65
createSystemsForSceneMethod · 0.65
activatePluginRuntimeMethod · 0.65
createSystemsForSceneMethod · 0.65
createSystemsForSceneMethod · 0.65
constructorMethod · 0.65
enableDebugMethod · 0.65

Implementers 13

TilemapRuntimeModulepackages/tilemap/src/TilemapRuntimeMod
FGUIRuntimeModulepackages/fairygui/src/ecs/FGUIRuntimeM
BehaviorTreeRuntimeModulepackages/behavior-tree/src/BehaviorTre
CameraRuntimeModulepackages/camera/src/CameraPlugin.ts
EngineRuntimeModulepackages/engine-core/src/EnginePlugin.
Physics2DComponentsModulepackages/physics-rapier2d/src/Physics2
PhysicsRuntimeModulepackages/physics-rapier2d/src/PhysicsR
ParticleRuntimeModulepackages/particle/src/ParticleRuntimeM
WorldStreamingModulepackages/world-streaming/src/WorldStre
AudioRuntimeModulepackages/audio/src/AudioPlugin.ts
Mesh3DRuntimeModulepackages/mesh-3d/src/Mesh3DRuntimeModu
BlueprintRuntimeModulepackages/blueprint/src/BlueprintPlugin

Calls

no outgoing calls

Tested by

no test coverage detected