@esengine/ecs-framework 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +13451 -0
- package/dist/index.es5.js +4 -0
- package/dist/index.es5.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/index.umd.js +4 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/package.json +47 -0
- package/package.json +87 -84
- package/bin/Core/DI/Decorators.d.ts +0 -206
- package/bin/Core/DI/Decorators.d.ts.map +0 -1
- package/bin/Core/DI/Decorators.js +0 -253
- package/bin/Core/DI/Decorators.js.map +0 -1
- package/bin/Core/DI/index.d.ts +0 -8
- package/bin/Core/DI/index.d.ts.map +0 -1
- package/bin/Core/DI/index.js +0 -7
- package/bin/Core/DI/index.js.map +0 -1
- package/bin/Core/Plugin.d.ts +0 -112
- package/bin/Core/Plugin.d.ts.map +0 -1
- package/bin/Core/Plugin.js +0 -19
- package/bin/Core/Plugin.js.map +0 -1
- package/bin/Core/PluginManager.d.ts +0 -118
- package/bin/Core/PluginManager.d.ts.map +0 -1
- package/bin/Core/PluginManager.js +0 -229
- package/bin/Core/PluginManager.js.map +0 -1
- package/bin/Core/ServiceContainer.d.ts +0 -221
- package/bin/Core/ServiceContainer.d.ts.map +0 -1
- package/bin/Core/ServiceContainer.js +0 -352
- package/bin/Core/ServiceContainer.js.map +0 -1
- package/bin/Core.d.ts +0 -379
- package/bin/Core.d.ts.map +0 -1
- package/bin/Core.js +0 -553
- package/bin/Core.js.map +0 -1
- package/bin/ECS/Component.d.ts +0 -104
- package/bin/ECS/Component.d.ts.map +0 -1
- package/bin/ECS/Component.js +0 -105
- package/bin/ECS/Component.js.map +0 -1
- package/bin/ECS/Components/HierarchyComponent.d.ts +0 -46
- package/bin/ECS/Components/HierarchyComponent.d.ts.map +0 -1
- package/bin/ECS/Components/HierarchyComponent.js +0 -65
- package/bin/ECS/Components/HierarchyComponent.js.map +0 -1
- package/bin/ECS/Components/index.d.ts +0 -2
- package/bin/ECS/Components/index.d.ts.map +0 -1
- package/bin/ECS/Components/index.js +0 -2
- package/bin/ECS/Components/index.js.map +0 -1
- package/bin/ECS/Core/ArchetypeSystem.d.ts +0 -103
- package/bin/ECS/Core/ArchetypeSystem.d.ts.map +0 -1
- package/bin/ECS/Core/ArchetypeSystem.js +0 -244
- package/bin/ECS/Core/ArchetypeSystem.js.map +0 -1
- package/bin/ECS/Core/CommandBuffer.d.ts +0 -154
- package/bin/ECS/Core/CommandBuffer.d.ts.map +0 -1
- package/bin/ECS/Core/CommandBuffer.js +0 -244
- package/bin/ECS/Core/CommandBuffer.js.map +0 -1
- package/bin/ECS/Core/ComponentPool.d.ts +0 -139
- package/bin/ECS/Core/ComponentPool.d.ts.map +0 -1
- package/bin/ECS/Core/ComponentPool.js +0 -276
- package/bin/ECS/Core/ComponentPool.js.map +0 -1
- package/bin/ECS/Core/ComponentStorage/ComponentRegistry.d.ts +0 -127
- package/bin/ECS/Core/ComponentStorage/ComponentRegistry.d.ts.map +0 -1
- package/bin/ECS/Core/ComponentStorage/ComponentRegistry.js +0 -235
- package/bin/ECS/Core/ComponentStorage/ComponentRegistry.js.map +0 -1
- package/bin/ECS/Core/ComponentStorage.d.ts +0 -185
- package/bin/ECS/Core/ComponentStorage.d.ts.map +0 -1
- package/bin/ECS/Core/ComponentStorage.js +0 -321
- package/bin/ECS/Core/ComponentStorage.js.map +0 -1
- package/bin/ECS/Core/EntityLifecyclePolicy.d.ts +0 -26
- package/bin/ECS/Core/EntityLifecyclePolicy.d.ts.map +0 -1
- package/bin/ECS/Core/EntityLifecyclePolicy.js +0 -2
- package/bin/ECS/Core/EntityLifecyclePolicy.js.map +0 -1
- package/bin/ECS/Core/EventBus.d.ts +0 -210
- package/bin/ECS/Core/EventBus.d.ts.map +0 -1
- package/bin/ECS/Core/EventBus.js +0 -370
- package/bin/ECS/Core/EventBus.js.map +0 -1
- package/bin/ECS/Core/EventSystem.d.ts +0 -225
- package/bin/ECS/Core/EventSystem.d.ts.map +0 -1
- package/bin/ECS/Core/EventSystem.js +0 -448
- package/bin/ECS/Core/EventSystem.js.map +0 -1
- package/bin/ECS/Core/Events/index.d.ts +0 -3
- package/bin/ECS/Core/Events/index.d.ts.map +0 -1
- package/bin/ECS/Core/Events/index.js +0 -3
- package/bin/ECS/Core/Events/index.js.map +0 -1
- package/bin/ECS/Core/FluentAPI/ComponentBuilder.d.ts +0 -35
- package/bin/ECS/Core/FluentAPI/ComponentBuilder.d.ts.map +0 -1
- package/bin/ECS/Core/FluentAPI/ComponentBuilder.js +0 -48
- package/bin/ECS/Core/FluentAPI/ComponentBuilder.js.map +0 -1
- package/bin/ECS/Core/FluentAPI/ECSFluentAPI.d.ts +0 -135
- package/bin/ECS/Core/FluentAPI/ECSFluentAPI.d.ts.map +0 -1
- package/bin/ECS/Core/FluentAPI/ECSFluentAPI.js +0 -166
- package/bin/ECS/Core/FluentAPI/ECSFluentAPI.js.map +0 -1
- package/bin/ECS/Core/FluentAPI/EntityBatchOperator.d.ts +0 -58
- package/bin/ECS/Core/FluentAPI/EntityBatchOperator.d.ts.map +0 -1
- package/bin/ECS/Core/FluentAPI/EntityBatchOperator.js +0 -85
- package/bin/ECS/Core/FluentAPI/EntityBatchOperator.js.map +0 -1
- package/bin/ECS/Core/FluentAPI/EntityBuilder.d.ts +0 -110
- package/bin/ECS/Core/FluentAPI/EntityBuilder.d.ts.map +0 -1
- package/bin/ECS/Core/FluentAPI/EntityBuilder.js +0 -181
- package/bin/ECS/Core/FluentAPI/EntityBuilder.js.map +0 -1
- package/bin/ECS/Core/FluentAPI/SceneBuilder.d.ts +0 -53
- package/bin/ECS/Core/FluentAPI/SceneBuilder.d.ts.map +0 -1
- package/bin/ECS/Core/FluentAPI/SceneBuilder.js +0 -79
- package/bin/ECS/Core/FluentAPI/SceneBuilder.js.map +0 -1
- package/bin/ECS/Core/FluentAPI/index.d.ts +0 -6
- package/bin/ECS/Core/FluentAPI/index.d.ts.map +0 -1
- package/bin/ECS/Core/FluentAPI/index.js +0 -6
- package/bin/ECS/Core/FluentAPI/index.js.map +0 -1
- package/bin/ECS/Core/FluentAPI.d.ts +0 -2
- package/bin/ECS/Core/FluentAPI.d.ts.map +0 -1
- package/bin/ECS/Core/FluentAPI.js +0 -3
- package/bin/ECS/Core/FluentAPI.js.map +0 -1
- package/bin/ECS/Core/Query/TypedQuery.d.ts +0 -214
- package/bin/ECS/Core/Query/TypedQuery.d.ts.map +0 -1
- package/bin/ECS/Core/Query/TypedQuery.js +0 -294
- package/bin/ECS/Core/Query/TypedQuery.js.map +0 -1
- package/bin/ECS/Core/Query/index.d.ts +0 -3
- package/bin/ECS/Core/Query/index.d.ts.map +0 -1
- package/bin/ECS/Core/Query/index.js +0 -3
- package/bin/ECS/Core/Query/index.js.map +0 -1
- package/bin/ECS/Core/QuerySystem.d.ts +0 -458
- package/bin/ECS/Core/QuerySystem.d.ts.map +0 -1
- package/bin/ECS/Core/QuerySystem.js +0 -1069
- package/bin/ECS/Core/QuerySystem.js.map +0 -1
- package/bin/ECS/Core/QueryTypes.d.ts +0 -34
- package/bin/ECS/Core/QueryTypes.d.ts.map +0 -1
- package/bin/ECS/Core/QueryTypes.js +0 -13
- package/bin/ECS/Core/QueryTypes.js.map +0 -1
- package/bin/ECS/Core/ReactiveQuery.d.ts +0 -211
- package/bin/ECS/Core/ReactiveQuery.d.ts.map +0 -1
- package/bin/ECS/Core/ReactiveQuery.js +0 -401
- package/bin/ECS/Core/ReactiveQuery.js.map +0 -1
- package/bin/ECS/Core/ReferenceTracker.d.ts +0 -111
- package/bin/ECS/Core/ReferenceTracker.d.ts.map +0 -1
- package/bin/ECS/Core/ReferenceTracker.js +0 -254
- package/bin/ECS/Core/ReferenceTracker.js.map +0 -1
- package/bin/ECS/Core/SoASerializer.d.ts +0 -28
- package/bin/ECS/Core/SoASerializer.d.ts.map +0 -1
- package/bin/ECS/Core/SoASerializer.js +0 -85
- package/bin/ECS/Core/SoASerializer.js.map +0 -1
- package/bin/ECS/Core/SoAStorage.d.ts +0 -129
- package/bin/ECS/Core/SoAStorage.d.ts.map +0 -1
- package/bin/ECS/Core/SoAStorage.js +0 -685
- package/bin/ECS/Core/SoAStorage.js.map +0 -1
- package/bin/ECS/Core/SoATypeRegistry.d.ts +0 -50
- package/bin/ECS/Core/SoATypeRegistry.d.ts.map +0 -1
- package/bin/ECS/Core/SoATypeRegistry.js +0 -135
- package/bin/ECS/Core/SoATypeRegistry.js.map +0 -1
- package/bin/ECS/Core/Storage/index.d.ts +0 -4
- package/bin/ECS/Core/Storage/index.d.ts.map +0 -1
- package/bin/ECS/Core/Storage/index.js +0 -4
- package/bin/ECS/Core/Storage/index.js.map +0 -1
- package/bin/ECS/Core/StorageDecorators.d.ts +0 -20
- package/bin/ECS/Core/StorageDecorators.d.ts.map +0 -1
- package/bin/ECS/Core/StorageDecorators.js +0 -27
- package/bin/ECS/Core/StorageDecorators.js.map +0 -1
- package/bin/ECS/CoreEvents.d.ts +0 -131
- package/bin/ECS/CoreEvents.d.ts.map +0 -1
- package/bin/ECS/CoreEvents.js +0 -163
- package/bin/ECS/CoreEvents.js.map +0 -1
- package/bin/ECS/Decorators/EntityRefDecorator.d.ts +0 -46
- package/bin/ECS/Decorators/EntityRefDecorator.d.ts.map +0 -1
- package/bin/ECS/Decorators/EntityRefDecorator.js +0 -118
- package/bin/ECS/Decorators/EntityRefDecorator.js.map +0 -1
- package/bin/ECS/Decorators/PropertyDecorator.d.ts +0 -168
- package/bin/ECS/Decorators/PropertyDecorator.d.ts.map +0 -1
- package/bin/ECS/Decorators/PropertyDecorator.js +0 -40
- package/bin/ECS/Decorators/PropertyDecorator.js.map +0 -1
- package/bin/ECS/Decorators/TypeDecorators.d.ts +0 -124
- package/bin/ECS/Decorators/TypeDecorators.d.ts.map +0 -1
- package/bin/ECS/Decorators/TypeDecorators.js +0 -151
- package/bin/ECS/Decorators/TypeDecorators.js.map +0 -1
- package/bin/ECS/Decorators/index.d.ts +0 -7
- package/bin/ECS/Decorators/index.d.ts.map +0 -1
- package/bin/ECS/Decorators/index.js +0 -4
- package/bin/ECS/Decorators/index.js.map +0 -1
- package/bin/ECS/Entity.d.ts +0 -415
- package/bin/ECS/Entity.d.ts.map +0 -1
- package/bin/ECS/Entity.js +0 -683
- package/bin/ECS/Entity.js.map +0 -1
- package/bin/ECS/EntityTags.d.ts +0 -71
- package/bin/ECS/EntityTags.d.ts.map +0 -1
- package/bin/ECS/EntityTags.js +0 -82
- package/bin/ECS/EntityTags.js.map +0 -1
- package/bin/ECS/IScene.d.ts +0 -308
- package/bin/ECS/IScene.d.ts.map +0 -1
- package/bin/ECS/IScene.js +0 -2
- package/bin/ECS/IScene.js.map +0 -1
- package/bin/ECS/Scene.d.ts +0 -799
- package/bin/ECS/Scene.d.ts.map +0 -1
- package/bin/ECS/Scene.js +0 -1203
- package/bin/ECS/Scene.js.map +0 -1
- package/bin/ECS/SceneManager.d.ts +0 -197
- package/bin/ECS/SceneManager.d.ts.map +0 -1
- package/bin/ECS/SceneManager.js +0 -264
- package/bin/ECS/SceneManager.js.map +0 -1
- package/bin/ECS/Serialization/ComponentSerializer.d.ts +0 -106
- package/bin/ECS/Serialization/ComponentSerializer.d.ts.map +0 -1
- package/bin/ECS/Serialization/ComponentSerializer.js +0 -251
- package/bin/ECS/Serialization/ComponentSerializer.js.map +0 -1
- package/bin/ECS/Serialization/EntitySerializer.d.ts +0 -111
- package/bin/ECS/Serialization/EntitySerializer.d.ts.map +0 -1
- package/bin/ECS/Serialization/EntitySerializer.js +0 -155
- package/bin/ECS/Serialization/EntitySerializer.js.map +0 -1
- package/bin/ECS/Serialization/IncrementalSerializer.d.ts +0 -259
- package/bin/ECS/Serialization/IncrementalSerializer.d.ts.map +0 -1
- package/bin/ECS/Serialization/IncrementalSerializer.js +0 -500
- package/bin/ECS/Serialization/IncrementalSerializer.js.map +0 -1
- package/bin/ECS/Serialization/SceneSerializer.d.ts +0 -213
- package/bin/ECS/Serialization/SceneSerializer.d.ts.map +0 -1
- package/bin/ECS/Serialization/SceneSerializer.js +0 -387
- package/bin/ECS/Serialization/SceneSerializer.js.map +0 -1
- package/bin/ECS/Serialization/SerializationDecorators.d.ts +0 -136
- package/bin/ECS/Serialization/SerializationDecorators.d.ts.map +0 -1
- package/bin/ECS/Serialization/SerializationDecorators.js +0 -216
- package/bin/ECS/Serialization/SerializationDecorators.js.map +0 -1
- package/bin/ECS/Serialization/VersionMigration.d.ts +0 -156
- package/bin/ECS/Serialization/VersionMigration.d.ts.map +0 -1
- package/bin/ECS/Serialization/VersionMigration.js +0 -279
- package/bin/ECS/Serialization/VersionMigration.js.map +0 -1
- package/bin/ECS/Serialization/index.d.ts +0 -18
- package/bin/ECS/Serialization/index.d.ts.map +0 -1
- package/bin/ECS/Serialization/index.js +0 -18
- package/bin/ECS/Serialization/index.js.map +0 -1
- package/bin/ECS/Systems/EntityCache.d.ts +0 -114
- package/bin/ECS/Systems/EntityCache.d.ts.map +0 -1
- package/bin/ECS/Systems/EntityCache.js +0 -145
- package/bin/ECS/Systems/EntityCache.js.map +0 -1
- package/bin/ECS/Systems/EntitySystem.d.ts +0 -591
- package/bin/ECS/Systems/EntitySystem.d.ts.map +0 -1
- package/bin/ECS/Systems/EntitySystem.js +0 -1102
- package/bin/ECS/Systems/EntitySystem.js.map +0 -1
- package/bin/ECS/Systems/HierarchySystem.d.ts +0 -155
- package/bin/ECS/Systems/HierarchySystem.d.ts.map +0 -1
- package/bin/ECS/Systems/HierarchySystem.js +0 -498
- package/bin/ECS/Systems/HierarchySystem.js.map +0 -1
- package/bin/ECS/Systems/IntervalSystem.d.ts +0 -33
- package/bin/ECS/Systems/IntervalSystem.d.ts.map +0 -1
- package/bin/ECS/Systems/IntervalSystem.js +0 -50
- package/bin/ECS/Systems/IntervalSystem.js.map +0 -1
- package/bin/ECS/Systems/PassiveSystem.d.ts +0 -17
- package/bin/ECS/Systems/PassiveSystem.d.ts.map +0 -1
- package/bin/ECS/Systems/PassiveSystem.js +0 -19
- package/bin/ECS/Systems/PassiveSystem.js.map +0 -1
- package/bin/ECS/Systems/ProcessingSystem.d.ts +0 -21
- package/bin/ECS/Systems/ProcessingSystem.d.ts.map +0 -1
- package/bin/ECS/Systems/ProcessingSystem.js +0 -20
- package/bin/ECS/Systems/ProcessingSystem.js.map +0 -1
- package/bin/ECS/Systems/WorkerEntitySystem.d.ts +0 -313
- package/bin/ECS/Systems/WorkerEntitySystem.d.ts.map +0 -1
- package/bin/ECS/Systems/WorkerEntitySystem.js +0 -792
- package/bin/ECS/Systems/WorkerEntitySystem.js.map +0 -1
- package/bin/ECS/Systems/index.d.ts +0 -8
- package/bin/ECS/Systems/index.d.ts.map +0 -1
- package/bin/ECS/Systems/index.js +0 -8
- package/bin/ECS/Systems/index.js.map +0 -1
- package/bin/ECS/TypedEntity.d.ts +0 -192
- package/bin/ECS/TypedEntity.d.ts.map +0 -1
- package/bin/ECS/TypedEntity.js +0 -254
- package/bin/ECS/TypedEntity.js.map +0 -1
- package/bin/ECS/Utils/BigIntCompatibility.d.ts +0 -151
- package/bin/ECS/Utils/BigIntCompatibility.d.ts.map +0 -1
- package/bin/ECS/Utils/BigIntCompatibility.js +0 -476
- package/bin/ECS/Utils/BigIntCompatibility.js.map +0 -1
- package/bin/ECS/Utils/BitMaskHashMap.d.ts +0 -28
- package/bin/ECS/Utils/BitMaskHashMap.d.ts.map +0 -1
- package/bin/ECS/Utils/BitMaskHashMap.js +0 -127
- package/bin/ECS/Utils/BitMaskHashMap.js.map +0 -1
- package/bin/ECS/Utils/Bits.d.ts +0 -154
- package/bin/ECS/Utils/Bits.d.ts.map +0 -1
- package/bin/ECS/Utils/Bits.js +0 -331
- package/bin/ECS/Utils/Bits.js.map +0 -1
- package/bin/ECS/Utils/ComponentSparseSet.d.ts +0 -143
- package/bin/ECS/Utils/ComponentSparseSet.d.ts.map +0 -1
- package/bin/ECS/Utils/ComponentSparseSet.js +0 -347
- package/bin/ECS/Utils/ComponentSparseSet.js.map +0 -1
- package/bin/ECS/Utils/EntityList.d.ts +0 -115
- package/bin/ECS/Utils/EntityList.d.ts.map +0 -1
- package/bin/ECS/Utils/EntityList.js +0 -258
- package/bin/ECS/Utils/EntityList.js.map +0 -1
- package/bin/ECS/Utils/EntityProcessorList.d.ts +0 -56
- package/bin/ECS/Utils/EntityProcessorList.d.ts.map +0 -1
- package/bin/ECS/Utils/EntityProcessorList.js +0 -113
- package/bin/ECS/Utils/EntityProcessorList.js.map +0 -1
- package/bin/ECS/Utils/IdentifierPool.d.ts +0 -203
- package/bin/ECS/Utils/IdentifierPool.d.ts.map +0 -1
- package/bin/ECS/Utils/IdentifierPool.js +0 -325
- package/bin/ECS/Utils/IdentifierPool.js.map +0 -1
- package/bin/ECS/Utils/Matcher.d.ts +0 -171
- package/bin/ECS/Utils/Matcher.d.ts.map +0 -1
- package/bin/ECS/Utils/Matcher.js +0 -293
- package/bin/ECS/Utils/Matcher.js.map +0 -1
- package/bin/ECS/Utils/SparseSet.d.ts +0 -170
- package/bin/ECS/Utils/SparseSet.d.ts.map +0 -1
- package/bin/ECS/Utils/SparseSet.js +0 -280
- package/bin/ECS/Utils/SparseSet.js.map +0 -1
- package/bin/ECS/Utils/index.d.ts +0 -9
- package/bin/ECS/Utils/index.d.ts.map +0 -1
- package/bin/ECS/Utils/index.js +0 -10
- package/bin/ECS/Utils/index.js.map +0 -1
- package/bin/ECS/World.d.ts +0 -238
- package/bin/ECS/World.d.ts.map +0 -1
- package/bin/ECS/World.js +0 -416
- package/bin/ECS/World.js.map +0 -1
- package/bin/ECS/WorldManager.d.ts +0 -224
- package/bin/ECS/WorldManager.d.ts.map +0 -1
- package/bin/ECS/WorldManager.js +0 -365
- package/bin/ECS/WorldManager.js.map +0 -1
- package/bin/ECS/index.d.ts +0 -26
- package/bin/ECS/index.d.ts.map +0 -1
- package/bin/ECS/index.js +0 -21
- package/bin/ECS/index.js.map +0 -1
- package/bin/Platform/IPlatformAdapter.d.ts +0 -169
- package/bin/Platform/IPlatformAdapter.d.ts.map +0 -1
- package/bin/Platform/IPlatformAdapter.js +0 -2
- package/bin/Platform/IPlatformAdapter.js.map +0 -1
- package/bin/Platform/PlatformDetector.d.ts +0 -56
- package/bin/Platform/PlatformDetector.d.ts.map +0 -1
- package/bin/Platform/PlatformDetector.js +0 -247
- package/bin/Platform/PlatformDetector.js.map +0 -1
- package/bin/Platform/PlatformManager.d.ts +0 -50
- package/bin/Platform/PlatformManager.d.ts.map +0 -1
- package/bin/Platform/PlatformManager.js +0 -114
- package/bin/Platform/PlatformManager.js.map +0 -1
- package/bin/Platform/index.d.ts +0 -19
- package/bin/Platform/index.d.ts.map +0 -1
- package/bin/Platform/index.js +0 -29
- package/bin/Platform/index.js.map +0 -1
- package/bin/Plugins/DebugPlugin.d.ts +0 -156
- package/bin/Plugins/DebugPlugin.d.ts.map +0 -1
- package/bin/Plugins/DebugPlugin.js +0 -248
- package/bin/Plugins/DebugPlugin.js.map +0 -1
- package/bin/Plugins/index.d.ts +0 -2
- package/bin/Plugins/index.d.ts.map +0 -1
- package/bin/Plugins/index.js +0 -2
- package/bin/Plugins/index.js.map +0 -1
- package/bin/Types/IUpdatable.d.ts +0 -18
- package/bin/Types/IUpdatable.d.ts.map +0 -1
- package/bin/Types/IUpdatable.js +0 -7
- package/bin/Types/IUpdatable.js.map +0 -1
- package/bin/Types/TypeHelpers.d.ts +0 -238
- package/bin/Types/TypeHelpers.d.ts.map +0 -1
- package/bin/Types/TypeHelpers.js +0 -19
- package/bin/Types/TypeHelpers.js.map +0 -1
- package/bin/Types/index.d.ts +0 -466
- package/bin/Types/index.d.ts.map +0 -1
- package/bin/Types/index.js +0 -7
- package/bin/Types/index.js.map +0 -1
- package/bin/Utils/BinarySerializer.d.ts +0 -23
- package/bin/Utils/BinarySerializer.d.ts.map +0 -1
- package/bin/Utils/BinarySerializer.js +0 -100
- package/bin/Utils/BinarySerializer.js.map +0 -1
- package/bin/Utils/Debug/AdvancedProfilerCollector.d.ts +0 -153
- package/bin/Utils/Debug/AdvancedProfilerCollector.d.ts.map +0 -1
- package/bin/Utils/Debug/AdvancedProfilerCollector.js +0 -406
- package/bin/Utils/Debug/AdvancedProfilerCollector.js.map +0 -1
- package/bin/Utils/Debug/ComponentDataCollector.d.ts +0 -32
- package/bin/Utils/Debug/ComponentDataCollector.d.ts.map +0 -1
- package/bin/Utils/Debug/ComponentDataCollector.js +0 -250
- package/bin/Utils/Debug/ComponentDataCollector.js.map +0 -1
- package/bin/Utils/Debug/DebugConfigService.d.ts +0 -16
- package/bin/Utils/Debug/DebugConfigService.d.ts.map +0 -1
- package/bin/Utils/Debug/DebugConfigService.js +0 -42
- package/bin/Utils/Debug/DebugConfigService.js.map +0 -1
- package/bin/Utils/Debug/DebugManager.d.ts +0 -131
- package/bin/Utils/Debug/DebugManager.d.ts.map +0 -1
- package/bin/Utils/Debug/DebugManager.js +0 -848
- package/bin/Utils/Debug/DebugManager.js.map +0 -1
- package/bin/Utils/Debug/EntityDataCollector.d.ts +0 -115
- package/bin/Utils/Debug/EntityDataCollector.d.ts.map +0 -1
- package/bin/Utils/Debug/EntityDataCollector.js +0 -870
- package/bin/Utils/Debug/EntityDataCollector.js.map +0 -1
- package/bin/Utils/Debug/PerformanceDataCollector.d.ts +0 -31
- package/bin/Utils/Debug/PerformanceDataCollector.d.ts.map +0 -1
- package/bin/Utils/Debug/PerformanceDataCollector.js +0 -203
- package/bin/Utils/Debug/PerformanceDataCollector.js.map +0 -1
- package/bin/Utils/Debug/SceneDataCollector.d.ts +0 -18
- package/bin/Utils/Debug/SceneDataCollector.d.ts.map +0 -1
- package/bin/Utils/Debug/SceneDataCollector.js +0 -43
- package/bin/Utils/Debug/SceneDataCollector.js.map +0 -1
- package/bin/Utils/Debug/SystemDataCollector.d.ts +0 -14
- package/bin/Utils/Debug/SystemDataCollector.d.ts.map +0 -1
- package/bin/Utils/Debug/SystemDataCollector.js +0 -60
- package/bin/Utils/Debug/SystemDataCollector.js.map +0 -1
- package/bin/Utils/Debug/WebSocketManager.d.ts +0 -54
- package/bin/Utils/Debug/WebSocketManager.d.ts.map +0 -1
- package/bin/Utils/Debug/WebSocketManager.js +0 -141
- package/bin/Utils/Debug/WebSocketManager.js.map +0 -1
- package/bin/Utils/Debug/index.d.ts +0 -11
- package/bin/Utils/Debug/index.d.ts.map +0 -1
- package/bin/Utils/Debug/index.js +0 -10
- package/bin/Utils/Debug/index.js.map +0 -1
- package/bin/Utils/Emitter.d.ts +0 -61
- package/bin/Utils/Emitter.d.ts.map +0 -1
- package/bin/Utils/Emitter.js +0 -101
- package/bin/Utils/Emitter.js.map +0 -1
- package/bin/Utils/Extensions/NumberExtension.d.ts +0 -13
- package/bin/Utils/Extensions/NumberExtension.d.ts.map +0 -1
- package/bin/Utils/Extensions/NumberExtension.js +0 -17
- package/bin/Utils/Extensions/NumberExtension.js.map +0 -1
- package/bin/Utils/Extensions/TypeUtils.d.ts +0 -13
- package/bin/Utils/Extensions/TypeUtils.d.ts.map +0 -1
- package/bin/Utils/Extensions/TypeUtils.js +0 -15
- package/bin/Utils/Extensions/TypeUtils.js.map +0 -1
- package/bin/Utils/Extensions/index.d.ts +0 -3
- package/bin/Utils/Extensions/index.d.ts.map +0 -1
- package/bin/Utils/Extensions/index.js +0 -4
- package/bin/Utils/Extensions/index.js.map +0 -1
- package/bin/Utils/GlobalManager.d.ts +0 -29
- package/bin/Utils/GlobalManager.d.ts.map +0 -1
- package/bin/Utils/GlobalManager.js +0 -50
- package/bin/Utils/GlobalManager.js.map +0 -1
- package/bin/Utils/Logger/ConsoleLogger.d.ts +0 -74
- package/bin/Utils/Logger/ConsoleLogger.d.ts.map +0 -1
- package/bin/Utils/Logger/ConsoleLogger.js +0 -187
- package/bin/Utils/Logger/ConsoleLogger.js.map +0 -1
- package/bin/Utils/Logger/Constants.d.ts +0 -36
- package/bin/Utils/Logger/Constants.d.ts.map +0 -1
- package/bin/Utils/Logger/Constants.js +0 -40
- package/bin/Utils/Logger/Constants.js.map +0 -1
- package/bin/Utils/Logger/LoggerManager.d.ts +0 -91
- package/bin/Utils/Logger/LoggerManager.d.ts.map +0 -1
- package/bin/Utils/Logger/LoggerManager.js +0 -167
- package/bin/Utils/Logger/LoggerManager.js.map +0 -1
- package/bin/Utils/Logger/Types.d.ts +0 -40
- package/bin/Utils/Logger/Types.d.ts.map +0 -1
- package/bin/Utils/Logger/Types.js +0 -2
- package/bin/Utils/Logger/Types.js.map +0 -1
- package/bin/Utils/Logger/index.d.ts +0 -5
- package/bin/Utils/Logger/index.d.ts.map +0 -1
- package/bin/Utils/Logger/index.js +0 -5
- package/bin/Utils/Logger/index.js.map +0 -1
- package/bin/Utils/PerformanceMonitor.d.ts +0 -196
- package/bin/Utils/PerformanceMonitor.d.ts.map +0 -1
- package/bin/Utils/PerformanceMonitor.js +0 -244
- package/bin/Utils/PerformanceMonitor.js.map +0 -1
- package/bin/Utils/Pool/IPoolable.d.ts +0 -29
- package/bin/Utils/Pool/IPoolable.d.ts.map +0 -1
- package/bin/Utils/Pool/IPoolable.js +0 -2
- package/bin/Utils/Pool/IPoolable.js.map +0 -1
- package/bin/Utils/Pool/Pool.d.ts +0 -109
- package/bin/Utils/Pool/Pool.d.ts.map +0 -1
- package/bin/Utils/Pool/Pool.js +0 -238
- package/bin/Utils/Pool/Pool.js.map +0 -1
- package/bin/Utils/Pool/PoolManager.d.ts +0 -96
- package/bin/Utils/Pool/PoolManager.d.ts.map +0 -1
- package/bin/Utils/Pool/PoolManager.js +0 -199
- package/bin/Utils/Pool/PoolManager.js.map +0 -1
- package/bin/Utils/Pool/index.d.ts +0 -4
- package/bin/Utils/Pool/index.d.ts.map +0 -1
- package/bin/Utils/Pool/index.js +0 -4
- package/bin/Utils/Pool/index.js.map +0 -1
- package/bin/Utils/Profiler/AutoProfiler.d.ts +0 -160
- package/bin/Utils/Profiler/AutoProfiler.d.ts.map +0 -1
- package/bin/Utils/Profiler/AutoProfiler.js +0 -503
- package/bin/Utils/Profiler/AutoProfiler.js.map +0 -1
- package/bin/Utils/Profiler/ProfilerSDK.d.ts +0 -175
- package/bin/Utils/Profiler/ProfilerSDK.d.ts.map +0 -1
- package/bin/Utils/Profiler/ProfilerSDK.js +0 -727
- package/bin/Utils/Profiler/ProfilerSDK.js.map +0 -1
- package/bin/Utils/Profiler/ProfilerTypes.d.ts +0 -218
- package/bin/Utils/Profiler/ProfilerTypes.d.ts.map +0 -1
- package/bin/Utils/Profiler/ProfilerTypes.js +0 -47
- package/bin/Utils/Profiler/ProfilerTypes.js.map +0 -1
- package/bin/Utils/Profiler/index.d.ts +0 -8
- package/bin/Utils/Profiler/index.d.ts.map +0 -1
- package/bin/Utils/Profiler/index.js +0 -7
- package/bin/Utils/Profiler/index.js.map +0 -1
- package/bin/Utils/Time.d.ts +0 -47
- package/bin/Utils/Time.d.ts.map +0 -1
- package/bin/Utils/Time.js +0 -64
- package/bin/Utils/Time.js.map +0 -1
- package/bin/Utils/Timers/ITimer.d.ts +0 -16
- package/bin/Utils/Timers/ITimer.d.ts.map +0 -1
- package/bin/Utils/Timers/ITimer.js +0 -2
- package/bin/Utils/Timers/ITimer.js.map +0 -1
- package/bin/Utils/Timers/Timer.d.ts +0 -30
- package/bin/Utils/Timers/Timer.d.ts.map +0 -1
- package/bin/Utils/Timers/Timer.js +0 -58
- package/bin/Utils/Timers/Timer.js.map +0 -1
- package/bin/Utils/Timers/TimerManager.d.ts +0 -26
- package/bin/Utils/Timers/TimerManager.d.ts.map +0 -1
- package/bin/Utils/Timers/TimerManager.js +0 -48
- package/bin/Utils/Timers/TimerManager.js.map +0 -1
- package/bin/Utils/index.d.ts +0 -11
- package/bin/Utils/index.d.ts.map +0 -1
- package/bin/Utils/index.js +0 -11
- package/bin/Utils/index.js.map +0 -1
- package/bin/index.d.ts +0 -29
- package/bin/index.d.ts.map +0 -1
- package/bin/index.js +0 -36
- package/bin/index.js.map +0 -1
package/bin/Core.d.ts
DELETED
|
@@ -1,379 +0,0 @@
|
|
|
1
|
-
import { ITimer } from './Utils/Timers/ITimer';
|
|
2
|
-
import { Timer } from './Utils/Timers/Timer';
|
|
3
|
-
import { PerformanceMonitor } from './Utils/PerformanceMonitor';
|
|
4
|
-
import { ICoreConfig, IECSDebugConfig } from './Types';
|
|
5
|
-
import { IScene } from './ECS/IScene';
|
|
6
|
-
import { ServiceContainer } from './Core/ServiceContainer';
|
|
7
|
-
import { IPlugin } from './Core/Plugin';
|
|
8
|
-
import { WorldManager } from './ECS/WorldManager';
|
|
9
|
-
/**
|
|
10
|
-
* 游戏引擎核心类
|
|
11
|
-
*
|
|
12
|
-
* 职责:
|
|
13
|
-
* - 提供全局服务(Timer、Performance、Pool等)
|
|
14
|
-
* - 管理场景生命周期(内置SceneManager)
|
|
15
|
-
* - 管理全局管理器的生命周期
|
|
16
|
-
* - 提供统一的游戏循环更新入口
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```typescript
|
|
20
|
-
* // 初始化并设置场景
|
|
21
|
-
* Core.create({ debug: true });
|
|
22
|
-
* Core.setScene(new GameScene());
|
|
23
|
-
*
|
|
24
|
-
* // 游戏循环(自动更新全局服务和场景)
|
|
25
|
-
* function gameLoop(deltaTime: number) {
|
|
26
|
-
* Core.update(deltaTime);
|
|
27
|
-
* }
|
|
28
|
-
*
|
|
29
|
-
* // 使用定时器
|
|
30
|
-
* Core.schedule(1.0, false, null, (timer) => {
|
|
31
|
-
* console.log("1秒后执行");
|
|
32
|
-
* });
|
|
33
|
-
*
|
|
34
|
-
* // 切换场景
|
|
35
|
-
* Core.loadScene(new MenuScene()); // 延迟切换
|
|
36
|
-
* Core.setScene(new GameScene()); // 立即切换
|
|
37
|
-
*
|
|
38
|
-
* // 获取当前场景
|
|
39
|
-
* const currentScene = Core.scene;
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
export declare class Core {
|
|
43
|
-
/**
|
|
44
|
-
* 游戏暂停状态
|
|
45
|
-
*
|
|
46
|
-
* 当设置为true时,游戏循环将暂停执行。
|
|
47
|
-
*/
|
|
48
|
-
static paused: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* 全局核心实例
|
|
51
|
-
*
|
|
52
|
-
* 可能为null表示Core尚未初始化或已被销毁
|
|
53
|
-
*/
|
|
54
|
-
private static _instance;
|
|
55
|
-
/**
|
|
56
|
-
* Core专用日志器
|
|
57
|
-
*/
|
|
58
|
-
private static _logger;
|
|
59
|
-
/**
|
|
60
|
-
* 调试模式标志
|
|
61
|
-
*
|
|
62
|
-
* 在调试模式下会启用额外的性能监控和错误检查。
|
|
63
|
-
*/
|
|
64
|
-
readonly debug: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* 服务容器
|
|
67
|
-
*
|
|
68
|
-
* 管理所有服务的注册、解析和生命周期。
|
|
69
|
-
*/
|
|
70
|
-
private _serviceContainer;
|
|
71
|
-
private _timerManager;
|
|
72
|
-
private _performanceMonitor;
|
|
73
|
-
private _poolManager;
|
|
74
|
-
private _debugManager?;
|
|
75
|
-
/**
|
|
76
|
-
* 场景管理器
|
|
77
|
-
*
|
|
78
|
-
* 管理当前场景的生命周期。
|
|
79
|
-
*/
|
|
80
|
-
private _sceneManager;
|
|
81
|
-
/**
|
|
82
|
-
* World管理器
|
|
83
|
-
*
|
|
84
|
-
* 管理多个独立的World实例(可选)。
|
|
85
|
-
*/
|
|
86
|
-
private _worldManager;
|
|
87
|
-
/**
|
|
88
|
-
* 插件管理器
|
|
89
|
-
*
|
|
90
|
-
* 管理所有插件的生命周期。
|
|
91
|
-
*/
|
|
92
|
-
private _pluginManager;
|
|
93
|
-
/**
|
|
94
|
-
* Core配置
|
|
95
|
-
*/
|
|
96
|
-
private _config;
|
|
97
|
-
/**
|
|
98
|
-
* 创建核心实例
|
|
99
|
-
*
|
|
100
|
-
* @param config - Core配置对象
|
|
101
|
-
*/
|
|
102
|
-
private constructor();
|
|
103
|
-
/**
|
|
104
|
-
* 获取核心实例
|
|
105
|
-
*
|
|
106
|
-
* @returns 全局核心实例
|
|
107
|
-
*/
|
|
108
|
-
static get Instance(): Core | null;
|
|
109
|
-
/**
|
|
110
|
-
* 获取服务容器
|
|
111
|
-
*
|
|
112
|
-
* 用于注册和解析自定义服务。
|
|
113
|
-
*
|
|
114
|
-
* @returns 服务容器实例
|
|
115
|
-
* @throws 如果Core实例未创建
|
|
116
|
-
*
|
|
117
|
-
* @example
|
|
118
|
-
* ```typescript
|
|
119
|
-
* // 注册自定义服务
|
|
120
|
-
* Core.services.registerSingleton(MyService);
|
|
121
|
-
*
|
|
122
|
-
* // 解析服务
|
|
123
|
-
* const myService = Core.services.resolve(MyService);
|
|
124
|
-
* ```
|
|
125
|
-
*/
|
|
126
|
-
static get services(): ServiceContainer;
|
|
127
|
-
/**
|
|
128
|
-
* 获取World管理器
|
|
129
|
-
*
|
|
130
|
-
* 用于管理多个独立的World实例(高级用户)。
|
|
131
|
-
*
|
|
132
|
-
* @returns WorldManager实例
|
|
133
|
-
* @throws 如果Core实例未创建
|
|
134
|
-
*
|
|
135
|
-
* @example
|
|
136
|
-
* ```typescript
|
|
137
|
-
* // 创建多个游戏房间
|
|
138
|
-
* const wm = Core.worldManager;
|
|
139
|
-
* const room1 = wm.createWorld('room_001');
|
|
140
|
-
* room1.createScene('game', new GameScene());
|
|
141
|
-
* room1.start();
|
|
142
|
-
* ```
|
|
143
|
-
*/
|
|
144
|
-
static get worldManager(): WorldManager;
|
|
145
|
-
/**
|
|
146
|
-
* 创建Core实例
|
|
147
|
-
*
|
|
148
|
-
* 如果实例已存在,则返回现有实例。
|
|
149
|
-
*
|
|
150
|
-
* @param config - Core配置,也可以直接传入boolean表示debug模式(向后兼容)
|
|
151
|
-
* @returns Core实例
|
|
152
|
-
*
|
|
153
|
-
* @example
|
|
154
|
-
* ```typescript
|
|
155
|
-
* // 方式1:使用配置对象
|
|
156
|
-
* Core.create({
|
|
157
|
-
* debug: true,
|
|
158
|
-
* debugConfig: {
|
|
159
|
-
* enabled: true,
|
|
160
|
-
* websocketUrl: 'ws://localhost:9229'
|
|
161
|
-
* }
|
|
162
|
-
* });
|
|
163
|
-
*
|
|
164
|
-
* // 方式2:简单模式(向后兼容)
|
|
165
|
-
* Core.create(true); // debug = true
|
|
166
|
-
* ```
|
|
167
|
-
*/
|
|
168
|
-
static create(config?: ICoreConfig | boolean): Core;
|
|
169
|
-
/**
|
|
170
|
-
* 设置当前场景
|
|
171
|
-
*
|
|
172
|
-
* @param scene - 要设置的场景
|
|
173
|
-
* @returns 设置的场景实例
|
|
174
|
-
*
|
|
175
|
-
* @example
|
|
176
|
-
* ```typescript
|
|
177
|
-
* Core.create({ debug: true });
|
|
178
|
-
*
|
|
179
|
-
* // 创建并设置场景
|
|
180
|
-
* const gameScene = new GameScene();
|
|
181
|
-
* Core.setScene(gameScene);
|
|
182
|
-
* ```
|
|
183
|
-
*/
|
|
184
|
-
static setScene<T extends IScene>(scene: T): T;
|
|
185
|
-
/**
|
|
186
|
-
* 获取当前场景
|
|
187
|
-
*
|
|
188
|
-
* @returns 当前场景,如果没有场景则返回null
|
|
189
|
-
*/
|
|
190
|
-
static get scene(): IScene | null;
|
|
191
|
-
/**
|
|
192
|
-
* 获取ECS流式API
|
|
193
|
-
*
|
|
194
|
-
* @returns ECS API实例,如果当前没有场景则返回null
|
|
195
|
-
*
|
|
196
|
-
* @example
|
|
197
|
-
* ```typescript
|
|
198
|
-
* // 使用流式API创建实体
|
|
199
|
-
* const player = Core.ecsAPI?.createEntity('Player')
|
|
200
|
-
* .addComponent(Position, 100, 100)
|
|
201
|
-
* .addComponent(Velocity, 50, 0);
|
|
202
|
-
*
|
|
203
|
-
* // 查询实体
|
|
204
|
-
* const enemies = Core.ecsAPI?.query(Enemy, Transform);
|
|
205
|
-
*
|
|
206
|
-
* // 发射事件
|
|
207
|
-
* Core.ecsAPI?.emit('game:start', { level: 1 });
|
|
208
|
-
* ```
|
|
209
|
-
*/
|
|
210
|
-
static get ecsAPI(): import("./ECS").ECSFluentAPI | null;
|
|
211
|
-
/**
|
|
212
|
-
* 延迟加载场景(下一帧切换)
|
|
213
|
-
*
|
|
214
|
-
* @param scene - 要加载的场景
|
|
215
|
-
*
|
|
216
|
-
* @example
|
|
217
|
-
* ```typescript
|
|
218
|
-
* // 延迟切换场景(在下一帧生效)
|
|
219
|
-
* Core.loadScene(new MenuScene());
|
|
220
|
-
* ```
|
|
221
|
-
*/
|
|
222
|
-
static loadScene<T extends IScene>(scene: T): void;
|
|
223
|
-
/**
|
|
224
|
-
* 更新游戏逻辑
|
|
225
|
-
*
|
|
226
|
-
* 此方法应该在游戏引擎的更新循环中调用。
|
|
227
|
-
* 会自动更新全局服务和当前场景。
|
|
228
|
-
*
|
|
229
|
-
* @param deltaTime - 外部引擎提供的帧时间间隔(秒)
|
|
230
|
-
*
|
|
231
|
-
* @example
|
|
232
|
-
* ```typescript
|
|
233
|
-
* // 初始化
|
|
234
|
-
* Core.create({ debug: true });
|
|
235
|
-
* Core.setScene(new GameScene());
|
|
236
|
-
*
|
|
237
|
-
* // Laya引擎集成
|
|
238
|
-
* Laya.timer.frameLoop(1, this, () => {
|
|
239
|
-
* const deltaTime = Laya.timer.delta / 1000;
|
|
240
|
-
* Core.update(deltaTime); // 自动更新全局服务和场景
|
|
241
|
-
* });
|
|
242
|
-
*
|
|
243
|
-
* // Cocos Creator集成
|
|
244
|
-
* update(deltaTime: number) {
|
|
245
|
-
* Core.update(deltaTime); // 自动更新全局服务和场景
|
|
246
|
-
* }
|
|
247
|
-
* ```
|
|
248
|
-
*/
|
|
249
|
-
static update(deltaTime: number): void;
|
|
250
|
-
/**
|
|
251
|
-
* 调度定时器
|
|
252
|
-
*
|
|
253
|
-
* 创建一个定时器,在指定时间后执行回调函数。
|
|
254
|
-
*
|
|
255
|
-
* @param timeInSeconds - 延迟时间(秒)
|
|
256
|
-
* @param repeats - 是否重复执行,默认为false
|
|
257
|
-
* @param context - 回调函数的上下文,默认为null
|
|
258
|
-
* @param onTime - 定时器触发时的回调函数
|
|
259
|
-
* @returns 创建的定时器实例
|
|
260
|
-
* @throws 如果Core实例未创建或onTime回调未提供
|
|
261
|
-
*
|
|
262
|
-
* @example
|
|
263
|
-
* ```typescript
|
|
264
|
-
* // 一次性定时器
|
|
265
|
-
* Core.schedule(1.0, false, null, (timer) => {
|
|
266
|
-
* console.log("1秒后执行一次");
|
|
267
|
-
* });
|
|
268
|
-
*
|
|
269
|
-
* // 重复定时器
|
|
270
|
-
* Core.schedule(0.5, true, null, (timer) => {
|
|
271
|
-
* console.log("每0.5秒执行一次");
|
|
272
|
-
* });
|
|
273
|
-
* ```
|
|
274
|
-
*/
|
|
275
|
-
static schedule<TContext = unknown>(timeInSeconds: number, repeats?: boolean, context?: TContext, onTime?: (timer: ITimer<TContext>) => void): Timer<TContext>;
|
|
276
|
-
/**
|
|
277
|
-
* 启用调试功能
|
|
278
|
-
*
|
|
279
|
-
* @param config 调试配置
|
|
280
|
-
*/
|
|
281
|
-
static enableDebug(config: IECSDebugConfig): void;
|
|
282
|
-
/**
|
|
283
|
-
* 禁用调试功能
|
|
284
|
-
*/
|
|
285
|
-
static disableDebug(): void;
|
|
286
|
-
/**
|
|
287
|
-
* 获取调试数据
|
|
288
|
-
*
|
|
289
|
-
* @returns 当前调试数据,如果调试未启用则返回null
|
|
290
|
-
*/
|
|
291
|
-
static getDebugData(): unknown;
|
|
292
|
-
/**
|
|
293
|
-
* 检查调试是否启用
|
|
294
|
-
*
|
|
295
|
-
* @returns 调试状态
|
|
296
|
-
*/
|
|
297
|
-
static get isDebugEnabled(): boolean;
|
|
298
|
-
/**
|
|
299
|
-
* 获取性能监视器实例
|
|
300
|
-
*
|
|
301
|
-
* @returns 性能监视器,如果Core未初始化则返回null
|
|
302
|
-
*/
|
|
303
|
-
static get performanceMonitor(): PerformanceMonitor | null;
|
|
304
|
-
/**
|
|
305
|
-
* 安装插件
|
|
306
|
-
*
|
|
307
|
-
* @param plugin - 插件实例
|
|
308
|
-
* @throws 如果Core实例未创建或插件安装失败
|
|
309
|
-
*
|
|
310
|
-
* @example
|
|
311
|
-
* ```typescript
|
|
312
|
-
* Core.create({ debug: true });
|
|
313
|
-
*
|
|
314
|
-
* // 安装插件
|
|
315
|
-
* await Core.installPlugin(new MyPlugin());
|
|
316
|
-
* ```
|
|
317
|
-
*/
|
|
318
|
-
static installPlugin(plugin: IPlugin): Promise<void>;
|
|
319
|
-
/**
|
|
320
|
-
* 卸载插件
|
|
321
|
-
*
|
|
322
|
-
* @param name - 插件名称
|
|
323
|
-
* @throws 如果Core实例未创建或插件卸载失败
|
|
324
|
-
*
|
|
325
|
-
* @example
|
|
326
|
-
* ```typescript
|
|
327
|
-
* await Core.uninstallPlugin('my-plugin');
|
|
328
|
-
* ```
|
|
329
|
-
*/
|
|
330
|
-
static uninstallPlugin(name: string): Promise<void>;
|
|
331
|
-
/**
|
|
332
|
-
* 获取插件实例
|
|
333
|
-
*
|
|
334
|
-
* @param name - 插件名称
|
|
335
|
-
* @returns 插件实例,如果未安装则返回undefined
|
|
336
|
-
*
|
|
337
|
-
* @example
|
|
338
|
-
* ```typescript
|
|
339
|
-
* const myPlugin = Core.getPlugin('my-plugin');
|
|
340
|
-
* if (myPlugin) {
|
|
341
|
-
* console.log(myPlugin.version);
|
|
342
|
-
* }
|
|
343
|
-
* ```
|
|
344
|
-
*/
|
|
345
|
-
static getPlugin(name: string): IPlugin | undefined;
|
|
346
|
-
/**
|
|
347
|
-
* 检查插件是否已安装
|
|
348
|
-
*
|
|
349
|
-
* @param name - 插件名称
|
|
350
|
-
* @returns 是否已安装
|
|
351
|
-
*
|
|
352
|
-
* @example
|
|
353
|
-
* ```typescript
|
|
354
|
-
* if (Core.isPluginInstalled('my-plugin')) {
|
|
355
|
-
* console.log('Plugin is installed');
|
|
356
|
-
* }
|
|
357
|
-
* ```
|
|
358
|
-
*/
|
|
359
|
-
static isPluginInstalled(name: string): boolean;
|
|
360
|
-
/**
|
|
361
|
-
* 初始化核心系统
|
|
362
|
-
*
|
|
363
|
-
* 执行核心系统的初始化逻辑。
|
|
364
|
-
*/
|
|
365
|
-
protected initialize(): void;
|
|
366
|
-
/**
|
|
367
|
-
* 内部更新方法
|
|
368
|
-
*
|
|
369
|
-
* @param deltaTime - 帧时间间隔(秒)
|
|
370
|
-
*/
|
|
371
|
-
private updateInternal;
|
|
372
|
-
/**
|
|
373
|
-
* 销毁Core实例
|
|
374
|
-
*
|
|
375
|
-
* 清理所有资源,通常在应用程序关闭时调用。
|
|
376
|
-
*/
|
|
377
|
-
static destroy(): void;
|
|
378
|
-
}
|
|
379
|
-
//# sourceMappingURL=Core.d.ts.map
|
package/bin/Core.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Core.d.ts","sourceRoot":"","sources":["../src/Core.ts"],"names":[],"mappings":"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"}
|