fix: 恢复 @esengine/ecs-framework 包名

上一个提交错误地将 npm 包名也改了,这里恢复正确的包名。
只更新 GitHub 仓库 URL,不改变 npm 包名。
This commit is contained in:
yhh
2025-12-08 21:26:35 +08:00
parent 240b165970
commit ad96edfad0
334 changed files with 558 additions and 558 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
"author": "yhh",
"license": "MIT",
"devDependencies": {
"@esengine/esengine": "workspace:*",
"@esengine/ecs-framework": "workspace:*",
"@esengine/engine-core": "workspace:*",
"@esengine/build-config": "workspace:*",
"rimraf": "^5.0.0",
@@ -6,7 +6,7 @@
* Scans all components in a scene, collects resource references, batch-loads them, and assigns runtime IDs back to components
*/
import type { Scene } from '@esengine/esengine';
import type { Scene } from '@esengine/ecs-framework';
import { isResourceComponent, type ResourceReference } from '../interfaces/IResourceComponent';
/**
+1 -1
View File
@@ -28,7 +28,7 @@
"clean": "rimraf dist"
},
"devDependencies": {
"@esengine/esengine": "workspace:*",
"@esengine/ecs-framework": "workspace:*",
"@esengine/engine-core": "workspace:*",
"@esengine/build-config": "workspace:*",
"rimraf": "^5.0.5",
+1 -1
View File
@@ -1,4 +1,4 @@
import type { ComponentRegistry as ComponentRegistryType } from '@esengine/esengine';
import type { ComponentRegistry as ComponentRegistryType } from '@esengine/ecs-framework';
import type { IRuntimeModule, IPlugin, ModuleManifest } from '@esengine/engine-core';
import { AudioSourceComponent } from './AudioSourceComponent';
+1 -1
View File
@@ -1,4 +1,4 @@
import { Component, ECSComponent, Serializable, Serialize, Property } from '@esengine/esengine';
import { Component, ECSComponent, Serializable, Serialize, Property } from '@esengine/ecs-framework';
@ECSComponent('AudioSource')
@Serializable({ version: 2, typeId: 'AudioSource' })
+1 -1
View File
@@ -25,7 +25,7 @@
"@esengine/behavior-tree": "workspace:*"
},
"devDependencies": {
"@esengine/esengine": "workspace:*",
"@esengine/ecs-framework": "workspace:*",
"@esengine/engine-core": "workspace:*",
"@esengine/editor-core": "workspace:*",
"@esengine/editor-runtime": "workspace:*",
@@ -2,7 +2,7 @@ import { Node as BehaviorTreeNode } from '../../domain/models/Node';
import { Connection } from '../../domain/models/Connection';
import { ExecutionLog } from '../../utils/BehaviorTreeExecutor';
import { BlackboardValue } from '../../domain/models/Blackboard';
import { createLogger } from '@esengine/esengine';
import { createLogger } from '@esengine/ecs-framework';
const logger = createLogger('ExecutionHooks');
@@ -6,7 +6,7 @@ import { DOMCache } from '../../utils/DOMCache';
import { EditorEventBus, EditorEvent } from '../../infrastructure/events/EditorEventBus';
import { ExecutionHooksManager } from '../interfaces/IExecutionHooks';
import type { Breakpoint } from '../../types/Breakpoint';
import { createLogger } from '@esengine/esengine';
import { createLogger } from '@esengine/ecs-framework';
const logger = createLogger('ExecutionController');
@@ -1,5 +1,5 @@
import { type GlobalBlackboardConfig, BlackboardValueType, type BlackboardVariable } from '@esengine/behavior-tree';
import { createLogger } from '@esengine/esengine';
import { createLogger } from '@esengine/ecs-framework';
const logger = createLogger('GlobalBlackboardService');
+1 -1
View File
@@ -3,7 +3,7 @@
* 行为树编辑器模块
*/
import type { ServiceContainer } from '@esengine/esengine';
import type { ServiceContainer } from '@esengine/ecs-framework';
import { TransformComponent } from '@esengine/engine-core';
import {
type IEditorModuleLoader,
@@ -1,4 +1,4 @@
import { createLogger } from '@esengine/esengine';
import { createLogger } from '@esengine/ecs-framework';
const logger = createLogger('EditorEventBus');
@@ -1,4 +1,4 @@
import { World, Entity, Scene, createLogger, Time, Core } from '@esengine/esengine';
import { World, Entity, Scene, createLogger, Time, Core } from '@esengine/ecs-framework';
import {
BehaviorTreeRuntimeComponent,
BehaviorTreeAssetManager,
+1 -1
View File
@@ -36,7 +36,7 @@
"author": "yhh",
"license": "MIT",
"devDependencies": {
"@esengine/esengine": "workspace:*",
"@esengine/ecs-framework": "workspace:*",
"@esengine/engine-core": "workspace:*",
"@esengine/asset-system": "workspace:*",
"@esengine/build-config": "workspace:*",
+3 -3
View File
@@ -8,7 +8,7 @@ importers:
.:
dependencies:
'@esengine/esengine':
'@esengine/ecs-framework':
specifier: ^2.2.8
version: 2.2.13
tslib:
@@ -645,7 +645,7 @@ packages:
'@bcoe/v8-coverage@0.2.3':
resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==}
'@esengine/esengine@2.2.13':
'@esengine/ecs-framework@2.2.13':
resolution: {integrity: sha512-RMRUCWMoVxEvWOeEI/r1snGLHPSdcNAzIO0qlMOfJEYoXRrl5CIhddZvhdE97rufynETUvOFaLq3DDZCeVV2kg==}
engines: {node: '>=16.0.0'}
@@ -2739,7 +2739,7 @@ snapshots:
'@bcoe/v8-coverage@0.2.3': {}
'@esengine/esengine@2.2.13': {}
'@esengine/ecs-framework@2.2.13': {}
'@isaacs/cliui@8.0.2':
dependencies:
+3 -3
View File
@@ -15,7 +15,7 @@ const banner = `/**
* @license ${pkg.license}
*/`;
const external = ['@esengine/esengine'];
const external = ['@esengine/ecs-framework'];
const commonPlugins = [
resolve({
@@ -94,7 +94,7 @@ module.exports = [
sourcemap: true,
exports: 'named',
globals: {
'@esengine/esengine': 'ECS'
'@esengine/ecs-framework': 'ECS'
}
},
plugins: [
@@ -181,6 +181,6 @@ module.exports = [
respectExternal: true
})
],
external: ['@esengine/esengine']
external: ['@esengine/ecs-framework']
}
];
@@ -1,5 +1,5 @@
import type { IScene, ServiceContainer } from '@esengine/esengine';
import { ComponentRegistry } from '@esengine/esengine';
import type { IScene, ServiceContainer } from '@esengine/ecs-framework';
import { ComponentRegistry } from '@esengine/ecs-framework';
import type { IRuntimeModule, IPlugin, ModuleManifest, SystemContext } from '@esengine/engine-core';
import { AssetManagerToken } from '@esengine/asset-system';
@@ -1,4 +1,4 @@
import { Entity, Core } from '@esengine/esengine';
import { Entity, Core } from '@esengine/ecs-framework';
import { BehaviorTreeData } from './execution/BehaviorTreeData';
import { BehaviorTreeRuntimeComponent } from './execution/BehaviorTreeRuntimeComponent';
import { BehaviorTreeAssetManager } from './execution/BehaviorTreeAssetManager';
@@ -1,4 +1,4 @@
import { createLogger, BinarySerializer } from '@esengine/esengine';
import { createLogger, BinarySerializer } from '@esengine/ecs-framework';
import type { BehaviorTreeAsset } from './BehaviorTreeAsset';
import { BehaviorTreeAssetValidator } from './BehaviorTreeAsset';
import { EditorFormatConverter, type EditorFormat } from './EditorFormatConverter';
@@ -1,4 +1,4 @@
import { createLogger } from '@esengine/esengine';
import { createLogger } from '@esengine/ecs-framework';
import type { BehaviorTreeAsset, AssetMetadata, BehaviorTreeNodeData, BlackboardVariableDefinition, PropertyBinding } from './BehaviorTreeAsset';
import { NodeType, BlackboardValueType } from '../Types/TaskStatus';
@@ -1,4 +1,4 @@
import { IService } from '@esengine/esengine';
import { IService } from '@esengine/ecs-framework';
import { BlackboardValueType, BlackboardVariable } from '../Types/TaskStatus';
/**
@@ -1,5 +1,5 @@
import { BehaviorTreeData } from './BehaviorTreeData';
import { createLogger, IService } from '@esengine/esengine';
import { createLogger, IService } from '@esengine/ecs-framework';
import { EditorToBehaviorTreeDataConverter } from '../Serialization/EditorToBehaviorTreeDataConverter';
const logger = createLogger('BehaviorTreeAssetManager');
@@ -1,4 +1,4 @@
import { EntitySystem, Matcher, Entity, Time, Core, ECSSystem, ServiceContainer } from '@esengine/esengine';
import { EntitySystem, Matcher, Entity, Time, Core, ECSSystem, ServiceContainer } from '@esengine/ecs-framework';
import type { IAssetManager } from '@esengine/asset-system';
import { BehaviorTreeRuntimeComponent } from './BehaviorTreeRuntimeComponent';
import { BehaviorTreeAssetManager } from './BehaviorTreeAssetManager';
@@ -1,5 +1,5 @@
import { Component, ECSComponent, Property } from '@esengine/esengine';
import { Serializable, Serialize, IgnoreSerialization } from '@esengine/esengine';
import { Component, ECSComponent, Property } from '@esengine/ecs-framework';
import { Serializable, Serialize, IgnoreSerialization } from '@esengine/ecs-framework';
import { NodeRuntimeState, createDefaultRuntimeState } from './BehaviorTreeData';
import { TaskStatus } from '../Types/TaskStatus';
@@ -2,7 +2,7 @@ import { TaskStatus, NodeType } from '../../Types/TaskStatus';
import { INodeExecutor, NodeExecutionContext, BindingHelper } from '../NodeExecutor';
import { NodeExecutorMetadata } from '../NodeMetadata';
import { BehaviorTreeAssetManager } from '../BehaviorTreeAssetManager';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
/**
* SubTree执行器
@@ -1,4 +1,4 @@
import { Entity } from '@esengine/esengine';
import { Entity } from '@esengine/ecs-framework';
import { TaskStatus } from '../Types/TaskStatus';
import { BehaviorNodeData, BehaviorTreeData, NodeRuntimeState } from './BehaviorTreeData';
import { BehaviorTreeRuntimeComponent } from './BehaviorTreeRuntimeComponent';
@@ -11,7 +11,7 @@ import type {
IAssetContent,
AssetContentType
} from '@esengine/asset-system';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { BehaviorTreeData } from '../execution/BehaviorTreeData';
import { BehaviorTreeAssetManager } from '../execution/BehaviorTreeAssetManager';
import { EditorToBehaviorTreeDataConverter } from '../Serialization/EditorToBehaviorTreeDataConverter';
+1 -1
View File
@@ -25,7 +25,7 @@
"@esengine/blueprint": "workspace:*"
},
"devDependencies": {
"@esengine/esengine": "workspace:*",
"@esengine/ecs-framework": "workspace:*",
"@esengine/engine-core": "workspace:*",
"@esengine/editor-core": "workspace:*",
"@esengine/node-editor": "workspace:*",
@@ -3,7 +3,7 @@
*
*/
import { Core, type ServiceContainer } from '@esengine/esengine';
import { Core, type ServiceContainer } from '@esengine/ecs-framework';
import type { ModuleManifest } from '@esengine/engine-core';
import type { IEditorPlugin, IEditorModuleLoader, PanelDescriptor, FileActionHandler, FileCreationTemplate } from '@esengine/editor-core';
import { MessageHub, PanelPosition } from '@esengine/editor-core';
@@ -4,7 +4,7 @@
*/
import React, { useEffect } from 'react';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { IFileSystemService, type IFileSystem } from '@esengine/editor-core';
import { BlueprintCanvas } from './BlueprintCanvas';
import { useBlueprintEditorStore } from '../stores/blueprintEditorStore';
+1 -1
View File
@@ -30,7 +30,7 @@
"author": "yhh",
"license": "MIT",
"devDependencies": {
"@esengine/esengine": "workspace:*",
"@esengine/ecs-framework": "workspace:*",
"@esengine/engine-core": "workspace:*",
"@esengine/build-config": "workspace:*",
"@types/node": "^20.19.17",
+2 -2
View File
@@ -127,7 +127,7 @@ export default defineConfig({
## Runtime vs Editor 分离规则
### ✅ runtime.ts 中可以:
- 导入 @esengine/esengine
- 导入 @esengine/ecs-framework
- 导入 @esengine/ecs-components
- 导入其他包的 `/runtime` 路径
@@ -141,7 +141,7 @@ export default defineConfig({
```typescript
// ✅ 正确
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { UIRuntimeModule } from '@esengine/ui/runtime';
// ❌ 错误 - 会把编辑器代码打包进来
+1 -1
View File
@@ -22,7 +22,7 @@
"clean": "rimraf dist"
},
"devDependencies": {
"@esengine/esengine": "workspace:*",
"@esengine/ecs-framework": "workspace:*",
"@esengine/engine-core": "workspace:*",
"@esengine/camera": "workspace:*",
"@esengine/editor-core": "workspace:*",
+2 -2
View File
@@ -5,8 +5,8 @@
*
*/
import type { Entity, ServiceContainer } from '@esengine/esengine';
import { Core } from '@esengine/esengine';
import type { Entity, ServiceContainer } from '@esengine/ecs-framework';
import { Core } from '@esengine/ecs-framework';
import { TransformComponent } from '@esengine/engine-core';
import type {
IEditorModuleLoader,
+1 -1
View File
@@ -28,7 +28,7 @@
"clean": "rimraf dist"
},
"devDependencies": {
"@esengine/esengine": "workspace:*",
"@esengine/ecs-framework": "workspace:*",
"@esengine/engine-core": "workspace:*",
"@esengine/build-config": "workspace:*",
"rimraf": "^5.0.5",
+1 -1
View File
@@ -1,4 +1,4 @@
import { Component, ECSComponent, Serializable, Serialize, Property } from '@esengine/esengine';
import { Component, ECSComponent, Serializable, Serialize, Property } from '@esengine/ecs-framework';
export enum ECameraProjection {
Perspective = 'perspective',
+1 -1
View File
@@ -1,4 +1,4 @@
import type { ComponentRegistry as ComponentRegistryType } from '@esengine/esengine';
import type { ComponentRegistry as ComponentRegistryType } from '@esengine/ecs-framework';
import type { IRuntimeModule, IPlugin, ModuleManifest } from '@esengine/engine-core';
import { CameraComponent } from './CameraComponent';
+1 -1
View File
@@ -1,6 +1,6 @@
{
"id": "core",
"name": "@esengine/esengine",
"name": "@esengine/ecs-framework",
"displayName": "Core ECS",
"outputPath": "dist/index.mjs",
"description": "Core Entity-Component-System framework | 核心 ECS 框架",
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "@esengine/esengine",
"name": "@esengine/ecs-framework",
"version": "2.3.2",
"description": "用于Laya、Cocos Creator等JavaScript游戏引擎的高性能ECS框架",
"main": "dist/index.cjs",
+2 -2
View File
@@ -8,7 +8,7 @@ const { readFileSync } = require('fs');
const pkg = JSON.parse(readFileSync('./package.json', 'utf8'));
const banner = `/**
* @esengine/esengine v${pkg.version}
* @esengine/ecs-framework v${pkg.version}
* 高性能ECS框架 - 适用于Cocos Creator和Laya等JavaScript游戏引擎
*
* @author ${pkg.author}
@@ -204,7 +204,7 @@ module.exports = [
file: 'dist/index.d.ts',
format: 'es',
banner: `/**
* @esengine/esengine v${pkg.version}
* @esengine/ecs-framework v${pkg.version}
* TypeScript definitions
*/`
},
+2 -2
View File
@@ -38,8 +38,8 @@
"es-engine": "file:../engine/pkg"
},
"devDependencies": {
"@esengine/esengine": "workspace:*",
"@esengine/esengine-math": "workspace:*",
"@esengine/ecs-framework": "workspace:*",
"@esengine/ecs-framework-math": "workspace:*",
"@esengine/engine-core": "workspace:*",
"@esengine/sprite": "workspace:*",
"@esengine/camera": "workspace:*",
+1 -1
View File
@@ -8,7 +8,7 @@ importers:
.:
dependencies:
'@esengine/esengine':
'@esengine/ecs-framework':
specifier: workspace:*
version: link:../core
es-engine:
@@ -3,7 +3,7 @@
*
*/
import { Entity, Component } from '@esengine/esengine';
import { Entity, Component } from '@esengine/ecs-framework';
import type { EngineBridge } from './EngineBridge';
import { RenderBatcher } from './RenderBatcher';
import { SpriteComponent } from '@esengine/sprite';
@@ -3,7 +3,7 @@
*
*/
import { EntitySystem, Matcher, Entity, ECSSystem } from '@esengine/esengine';
import { EntitySystem, Matcher, Entity, ECSSystem } from '@esengine/ecs-framework';
import { CameraComponent } from '@esengine/camera';
import type { EngineBridge } from '../core/EngineBridge';
@@ -3,9 +3,9 @@
* ECS的引擎渲染系统
*/
import { EntitySystem, Matcher, Entity, ComponentType, ECSSystem, Component, Core } from '@esengine/esengine';
import { EntitySystem, Matcher, Entity, ComponentType, ECSSystem, Component, Core } from '@esengine/ecs-framework';
import { TransformComponent } from '@esengine/engine-core';
import { Color } from '@esengine/esengine-math';
import { Color } from '@esengine/ecs-framework-math';
import { SpriteComponent } from '@esengine/sprite';
import { CameraComponent } from '@esengine/camera';
import { getMaterialManager } from '@esengine/material-system';
+1 -1
View File
@@ -25,7 +25,7 @@
"@esengine/blueprint-editor": "workspace:*",
"@esengine/camera": "workspace:*",
"@esengine/ecs-engine-bindgen": "workspace:*",
"@esengine/esengine": "workspace:*",
"@esengine/ecs-framework": "workspace:*",
"@esengine/editor-core": "workspace:*",
"@esengine/editor-runtime": "workspace:*",
"@esengine/engine": "workspace:*",
+12 -12
View File
@@ -10,16 +10,16 @@ importers:
dependencies:
'@esengine/behavior-tree':
specifier: file:../behavior-tree
version: file:../behavior-tree(@esengine/esengine@file:../core)
version: file:../behavior-tree(@esengine/ecs-framework@file:../core)
'@esengine/ecs-engine-bindgen':
specifier: file:../ecs-engine-bindgen
version: file:../ecs-engine-bindgen(es-engine@file:../engine/pkg)
'@esengine/esengine':
'@esengine/ecs-framework':
specifier: file:../core
version: file:../core
'@esengine/editor-core':
specifier: file:../editor-core
version: file:../editor-core(@esengine/esengine@file:../core)
version: file:../editor-core(@esengine/ecs-framework@file:../core)
'@tauri-apps/api':
specifier: ^2.2.0
version: 2.9.0
@@ -375,20 +375,20 @@ packages:
'@esengine/behavior-tree@file:../behavior-tree':
resolution: {directory: ../behavior-tree, type: directory}
peerDependencies:
'@esengine/esengine': ^2.2.8
'@esengine/ecs-framework': ^2.2.8
'@esengine/ecs-engine-bindgen@file:../ecs-engine-bindgen':
resolution: {directory: ../ecs-engine-bindgen, type: directory}
peerDependencies:
es-engine: file:../engine/pkg
'@esengine/esengine@file:../core':
'@esengine/ecs-framework@file:../core':
resolution: {directory: ../core, type: directory}
'@esengine/editor-core@file:../editor-core':
resolution: {directory: ../editor-core, type: directory}
peerDependencies:
'@esengine/esengine': ^2.2.8
'@esengine/ecs-framework': ^2.2.8
'@img/colour@1.0.0':
resolution: {integrity: sha512-A5P/LfWGFSl6nsckYtjw9da+19jB8hkJ6ACTGcDfEJ0aE+l2n2El7dsVM7UVHZQ9s2lmYMWlrS21YLy2IR1LUw==}
@@ -1760,23 +1760,23 @@ snapshots:
'@esbuild/win32-x64@0.25.12':
optional: true
'@esengine/behavior-tree@file:../behavior-tree(@esengine/esengine@file:../core)':
'@esengine/behavior-tree@file:../behavior-tree(@esengine/ecs-framework@file:../core)':
dependencies:
'@esengine/esengine': file:../core
'@esengine/ecs-framework': file:../core
tslib: 2.8.1
'@esengine/ecs-engine-bindgen@file:../ecs-engine-bindgen(es-engine@file:../engine/pkg)':
dependencies:
'@esengine/esengine': file:../core
'@esengine/ecs-framework': file:../core
es-engine: file:../engine/pkg
'@esengine/esengine@file:../core':
'@esengine/ecs-framework@file:../core':
dependencies:
tslib: 2.8.1
'@esengine/editor-core@file:../editor-core(@esengine/esengine@file:../core)':
'@esengine/editor-core@file:../editor-core(@esengine/ecs-framework@file:../core)':
dependencies:
'@esengine/esengine': file:../core
'@esengine/ecs-framework': file:../core
tslib: 2.8.1
'@img/colour@1.0.0': {}
@@ -32,7 +32,7 @@ pub struct CompileOptions {
pub minify: bool,
/// External dependencies | 外部依赖
pub external: Vec<String>,
/// Module aliases (e.g., "@esengine/esengine" -> "/path/to/shim.js")
/// Module aliases (e.g., "@esengine/ecs-framework" -> "/path/to/shim.js")
/// 模块别名
pub alias: Option<std::collections::HashMap<String, String>>,
/// Project root for resolving imports | 项目根目录用于解析导入
+2 -2
View File
@@ -1,8 +1,8 @@
import React, { useState, useEffect, useRef, useCallback } from 'react';
import * as ReactDOM from 'react-dom';
import * as ReactJSXRuntime from 'react/jsx-runtime';
import { Core, createLogger, Scene } from '@esengine/esengine';
import * as ECSFramework from '@esengine/esengine';
import { Core, createLogger, Scene } from '@esengine/ecs-framework';
import * as ECSFramework from '@esengine/ecs-framework';
// 将 React 暴露到全局,供动态加载的插件使用
// editor-runtime.js 将 React 设为 external,需要从全局获取
@@ -1,4 +1,4 @@
import { Core, ComponentRegistry as CoreComponentRegistry } from '@esengine/esengine';
import { Core, ComponentRegistry as CoreComponentRegistry } from '@esengine/ecs-framework';
import { invoke } from '@tauri-apps/api/core';
import {
UIRegistry,
@@ -1,4 +1,4 @@
import { Entity, Component } from '@esengine/esengine';
import { Entity, Component } from '@esengine/ecs-framework';
import { MessageHub } from '@esengine/editor-core';
import { BaseCommand } from '../BaseCommand';
@@ -1,4 +1,4 @@
import { Entity, Component } from '@esengine/esengine';
import { Entity, Component } from '@esengine/ecs-framework';
import { MessageHub } from '@esengine/editor-core';
import { BaseCommand } from '../BaseCommand';
@@ -1,4 +1,4 @@
import { Entity, Component } from '@esengine/esengine';
import { Entity, Component } from '@esengine/ecs-framework';
import { MessageHub } from '@esengine/editor-core';
import { BaseCommand } from '../BaseCommand';
import { ICommand } from '../ICommand';
@@ -1,4 +1,4 @@
import { Core, Entity, HierarchySystem, HierarchyComponent } from '@esengine/esengine';
import { Core, Entity, HierarchySystem, HierarchyComponent } from '@esengine/ecs-framework';
import { EntityStoreService, MessageHub } from '@esengine/editor-core';
import { TransformComponent } from '@esengine/engine-core';
import { SpriteComponent, SpriteAnimatorComponent } from '@esengine/sprite';
@@ -1,4 +1,4 @@
import { Core, Entity, HierarchySystem, HierarchyComponent } from '@esengine/esengine';
import { Core, Entity, HierarchySystem, HierarchyComponent } from '@esengine/ecs-framework';
import { EntityStoreService, MessageHub } from '@esengine/editor-core';
import { TransformComponent } from '@esengine/engine-core';
import { CameraComponent } from '@esengine/camera';
@@ -1,4 +1,4 @@
import { Core, Entity, HierarchySystem, HierarchyComponent } from '@esengine/esengine';
import { Core, Entity, HierarchySystem, HierarchyComponent } from '@esengine/ecs-framework';
import { EntityStoreService, MessageHub } from '@esengine/editor-core';
import { TransformComponent } from '@esengine/engine-core';
import { BaseCommand } from '../BaseCommand';
@@ -1,4 +1,4 @@
import { Core, Entity, HierarchySystem, HierarchyComponent } from '@esengine/esengine';
import { Core, Entity, HierarchySystem, HierarchyComponent } from '@esengine/ecs-framework';
import { EntityStoreService, MessageHub } from '@esengine/editor-core';
import { TransformComponent } from '@esengine/engine-core';
import { SpriteComponent } from '@esengine/sprite';
@@ -1,4 +1,4 @@
import { Core, Entity, HierarchySystem, HierarchyComponent } from '@esengine/esengine';
import { Core, Entity, HierarchySystem, HierarchyComponent } from '@esengine/ecs-framework';
import { EntityStoreService, MessageHub } from '@esengine/editor-core';
import { TransformComponent } from '@esengine/engine-core';
import { TilemapComponent } from '@esengine/tilemap';
@@ -1,4 +1,4 @@
import { Core, Entity, Component, HierarchySystem, HierarchyComponent } from '@esengine/esengine';
import { Core, Entity, Component, HierarchySystem, HierarchyComponent } from '@esengine/ecs-framework';
import { EntityStoreService, MessageHub } from '@esengine/editor-core';
import { BaseCommand } from '../BaseCommand';
@@ -1,4 +1,4 @@
import { Core, Entity, HierarchySystem, HierarchyComponent } from '@esengine/esengine';
import { Core, Entity, HierarchySystem, HierarchyComponent } from '@esengine/ecs-framework';
import { EntityStoreService, MessageHub } from '@esengine/editor-core';
import { BaseCommand } from '../BaseCommand';
@@ -1,5 +1,5 @@
import { useState, useEffect, useRef, useCallback } from 'react';
import { Core, IService, ServiceType } from '@esengine/esengine';
import { Core, IService, ServiceType } from '@esengine/ecs-framework';
import { CompilerRegistry, ICompiler, CompilerContext, CompileResult, IFileSystem, IDialog, FileEntry } from '@esengine/editor-core';
import { X, Play, Loader2 } from 'lucide-react';
import { open as tauriOpen, save as tauriSave, message as tauriMessage, confirm as tauriConfirm } from '@tauri-apps/plugin-dialog';
@@ -39,7 +39,7 @@ import {
Database,
AlertTriangle
} from 'lucide-react';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { MessageHub, FileActionRegistry, AssetRegistryService, type FileCreationTemplate } from '@esengine/editor-core';
import { TauriAPI, DirectoryEntry } from '../api/tauri';
import { SettingsService } from '../services/SettingsService';
@@ -351,7 +351,7 @@ export function ContentBrowser({
category: 'Script',
getContent: (fileName: string) => {
const className = fileName.replace(/\.ts$/, '');
return `import { Component, ECSComponent, Property, Serialize, Serializable } from '@esengine/esengine';
return `import { Component, ECSComponent, Property, Serialize, Serializable } from '@esengine/ecs-framework';
/**
* ${className}
@@ -393,7 +393,7 @@ export class ${className} extends Component {
category: 'Script',
getContent: (fileName: string) => {
const className = fileName.replace(/\.ts$/, '');
return `import { EntitySystem, Matcher, ECSSystem, type Entity } from '@esengine/esengine';
return `import { EntitySystem, Matcher, ECSSystem, type Entity } from '@esengine/ecs-framework';
/**
* ${className}
@@ -441,7 +441,7 @@ export function ${name.charAt(0).toLowerCase() + name.slice(1)}(): void {
getContent: (fileName: string) => {
const className = fileName.replace(/\.ts$/, '');
return `import React from 'react';
import type { Component } from '@esengine/esengine';
import type { Component } from '@esengine/ecs-framework';
import type { IComponentInspector, ComponentInspectorContext } from '@esengine/editor-core';
/**
@@ -481,7 +481,7 @@ export class ${className} implements IComponentInspector {
category: 'Editor',
getContent: (fileName: string) => {
const className = fileName.replace(/\.ts$/, '');
return `import type { Component, Entity } from '@esengine/esengine';
return `import type { Component, Entity } from '@esengine/ecs-framework';
import type { IGizmoRenderData } from '@esengine/editor-core';
/**
@@ -1,5 +1,5 @@
import { useState, useEffect } from 'react';
import { Entity } from '@esengine/esengine';
import { Entity } from '@esengine/ecs-framework';
import { EntityStoreService, MessageHub } from '@esengine/editor-core';
import { PropertyInspector } from './PropertyInspector';
import { FileSearch, ChevronDown, ChevronRight, X, Settings } from 'lucide-react';
@@ -7,7 +7,7 @@ import {
import { TauriAPI, DirectoryEntry } from '../api/tauri';
import { MessageHub, FileActionRegistry, AssetRegistryService } from '@esengine/editor-core';
import { SettingsService } from '../services/SettingsService';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { ContextMenu, ContextMenuItem } from './ContextMenu';
import { ConfirmDialog } from './ConfirmDialog';
import { PromptDialog } from './PromptDialog';
@@ -1,6 +1,6 @@
import { useState, useEffect, useRef, useMemo, useCallback, memo } from 'react';
import { LogService, LogEntry } from '@esengine/editor-core';
import { LogLevel } from '@esengine/esengine';
import { LogLevel } from '@esengine/ecs-framework';
import {
Search, Filter, Settings, X, Trash2, ChevronDown,
Bug, Info, AlertTriangle, XCircle, AlertCircle, Wifi, Pause, Play, Copy
@@ -10,7 +10,7 @@
*/
import { useState, useEffect } from 'react';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { PluginManager, type RegisteredPlugin, type ModuleCategory, ProjectService } from '@esengine/editor-core';
import { Check, Lock, Package } from 'lucide-react';
import { NotificationService } from '../services/NotificationService';
@@ -2,7 +2,7 @@ import { useState, useEffect } from 'react';
import { Activity, Cpu, Layers, Package, Wifi, WifiOff, Maximize2, Pause, Play, BarChart3 } from 'lucide-react';
import { ProfilerService, ProfilerData } from '../services/ProfilerService';
import { SettingsService } from '../services/SettingsService';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { MessageHub } from '@esengine/editor-core';
import '../styles/ProfilerDockPanel.css';
@@ -1,5 +1,5 @@
import { useState, useEffect, useRef } from 'react';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { Activity, BarChart3, Clock, Cpu, RefreshCw, Pause, Play } from 'lucide-react';
import '../styles/ProfilerPanel.css';
@@ -1,5 +1,5 @@
import { useState, useEffect, useRef } from 'react';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { Activity, BarChart3, Clock, Cpu, RefreshCw, Pause, Play, X, Wifi, WifiOff, Server, Search, Table2, TreePine } from 'lucide-react';
import { ProfilerService } from '../services/ProfilerService';
import { SettingsService } from '../services/SettingsService';
@@ -1,5 +1,5 @@
import { useState, useEffect, useRef } from 'react';
import { Component, Core, getComponentInstanceTypeName } from '@esengine/esengine';
import { Component, Core, getComponentInstanceTypeName } from '@esengine/ecs-framework';
import { PropertyMetadataService, PropertyMetadata, PropertyAction, MessageHub, FileActionRegistry } from '@esengine/editor-core';
import { ChevronRight, ChevronDown, Lock } from 'lucide-react';
import * as LucideIcons from 'lucide-react';
@@ -1,5 +1,5 @@
import { useState, useEffect, useRef, useCallback, useMemo } from 'react';
import { Entity, Core, HierarchySystem, HierarchyComponent, EntityTags, isFolder } from '@esengine/esengine';
import { Entity, Core, HierarchySystem, HierarchyComponent, EntityTags, isFolder } from '@esengine/ecs-framework';
import { EntityStoreService, MessageHub, SceneManagerService, CommandManager, EntityCreationRegistry, EntityCreationTemplate } from '@esengine/editor-core';
import { useLocale } from '../hooks/useLocale';
import * as LucideIcons from 'lucide-react';
@@ -11,7 +11,7 @@ import {
ChevronDown,
ChevronRight
} from 'lucide-react';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { SettingsService } from '../services/SettingsService';
import { SettingsRegistry, SettingCategory, SettingDescriptor, ProjectService, PluginManager, IPluginManager, ModuleManifest } from '@esengine/editor-core';
import { PluginListSetting } from './PluginListSetting';
@@ -7,7 +7,7 @@ import {
import '../styles/Viewport.css';
import { useEngine } from '../hooks/useEngine';
import { EngineService } from '../services/EngineService';
import { Core, Entity, SceneSerializer } from '@esengine/esengine';
import { Core, Entity, SceneSerializer } from '@esengine/ecs-framework';
import { MessageHub, ProjectService, AssetRegistryService } from '@esengine/editor-core';
import { TransformComponent } from '@esengine/engine-core';
import { CameraComponent } from '@esengine/camera';
@@ -56,7 +56,7 @@ function generateRuntimeHtml(importMap: Record<string, string>, modules: ModuleM
try {
// Import ECS framework and set up global for user-runtime.js shim
// 导入 ECS 框架并为 user-runtime.js 设置全局变量
const ecsFramework = await import('@esengine/esengine');
const ecsFramework = await import('@esengine/ecs-framework');
window.__ESENGINE__ = window.__ESENGINE__ || {};
window.__ESENGINE__.ecsFramework = ecsFramework;
@@ -1,6 +1,6 @@
import React, { useState, useEffect, useMemo, useCallback } from 'react';
import { X, Search, Folder, FolderOpen, File, Image, FileText, Music, Video, Database, AlertTriangle } from 'lucide-react';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { ProjectService, AssetRegistryService } from '@esengine/editor-core';
import { TauriFileSystemService } from '../../services/TauriFileSystemService';
import './AssetPickerDialog.css';
@@ -1,6 +1,6 @@
import React, { useState, useEffect, useMemo, useCallback } from 'react';
import { X, Search, Folder, FolderOpen, FolderPlus } from 'lucide-react';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { ProjectService, IFileSystemService } from '@esengine/editor-core';
import type { IFileSystem } from '@esengine/editor-core';
import './AssetPickerDialog.css';
@@ -1,5 +1,5 @@
import { useState, useEffect, useRef } from 'react';
import { Entity } from '@esengine/esengine';
import { Entity } from '@esengine/ecs-framework';
import { TauriAPI } from '../../api/tauri';
import { SettingsService } from '../../services/SettingsService';
import { InspectorProps, InspectorTarget, AssetFileInfo, RemoteEntity } from './types';
@@ -1,7 +1,7 @@
import { useState } from 'react';
import { ChevronDown, ChevronRight, Settings } from 'lucide-react';
import { PropertyContext, PropertyRendererRegistry } from '@esengine/editor-core';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
interface ComponentData {
typeName: string;
@@ -1,6 +1,6 @@
import React from 'react';
import { PropertyContext, PropertyRendererRegistry } from '@esengine/editor-core';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
interface PropertyFieldProps {
name: string;
@@ -1,5 +1,5 @@
import React, { useState, useEffect, useRef } from 'react';
import { Component } from '@esengine/esengine';
import { Component } from '@esengine/ecs-framework';
import { IComponentInspector, ComponentInspectorContext } from '@esengine/editor-core';
import { TransformComponent } from '@esengine/engine-core';
import { ChevronDown, Lock, Unlock } from 'lucide-react';
@@ -1,7 +1,7 @@
import React, { useState, useRef, useCallback, useEffect, useMemo } from 'react';
import { Image, X, Navigation, ChevronDown, Copy } from 'lucide-react';
import { convertFileSrc } from '@tauri-apps/api/core';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { ProjectService, AssetRegistryService } from '@esengine/editor-core';
import { AssetPickerDialog } from '../../../components/dialogs/AssetPickerDialog';
import './AssetField.css';
@@ -1,4 +1,4 @@
import { Entity } from '@esengine/esengine';
import { Entity } from '@esengine/ecs-framework';
import { EntityStoreService, MessageHub, InspectorRegistry, CommandManager } from '@esengine/editor-core';
export interface InspectorProps {
@@ -1,7 +1,7 @@
import { useState, useEffect, useCallback } from 'react';
import { Folder, File as FileIcon, Image as ImageIcon, Clock, HardDrive, Settings2 } from 'lucide-react';
import { convertFileSrc } from '@tauri-apps/api/core';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { AssetRegistryService } from '@esengine/editor-core';
import { assetManager as globalAssetManager } from '@esengine/asset-system';
import { AssetFileInfo } from '../types';
@@ -1,6 +1,6 @@
import { useState, useRef, useEffect, useMemo, useCallback } from 'react';
import { Settings, ChevronDown, ChevronRight, X, Plus, Box, Search, Lock, Unlock } from 'lucide-react';
import { Entity, Component, Core, getComponentDependencies, getComponentTypeName, getComponentInstanceTypeName } from '@esengine/esengine';
import { Entity, Component, Core, getComponentDependencies, getComponentTypeName, getComponentInstanceTypeName } from '@esengine/ecs-framework';
import { MessageHub, CommandManager, ComponentRegistry, ComponentActionRegistry, ComponentInspectorRegistry } from '@esengine/editor-core';
import { PropertyInspector } from '../../PropertyInspector';
import { NotificationService } from '../../../services/NotificationService';
@@ -10,7 +10,7 @@ import {
import { RemoteEntity, EntityDetails } from '../types';
import { getProfilerService } from '../utils';
import { PropertyRendererRegistry, PropertyContext } from '@esengine/editor-core';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import '../../../styles/EntityInspector.css';
interface RemoteEntityInspectorProps {
@@ -1,5 +1,5 @@
import 'reflect-metadata';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { singleton } from 'tsyringe';
import { DIContainer, globalContainer } from '../di/DIContainer';
import { EditorEventBus } from '../events/EditorEventBus';
@@ -1,4 +1,4 @@
import type { Entity, Component } from '@esengine/esengine';
import type { Entity, Component } from '@esengine/ecs-framework';
export interface PluginEvent {
name: string;
@@ -8,7 +8,7 @@
* Rust WebGL
*/
import type { Entity } from '@esengine/esengine';
import type { Entity } from '@esengine/ecs-framework';
import type { IGizmoRenderData, IRectGizmoData, GizmoColor } from '@esengine/editor-core';
import { GizmoColors, GizmoRegistry } from '@esengine/editor-core';
import { TransformComponent } from '@esengine/engine-core';
+1 -1
View File
@@ -4,7 +4,7 @@
*/
import { useRef, useState, useCallback, useEffect } from 'react';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { MessageHub, EntityStoreService } from '@esengine/editor-core';
import { EngineService } from '../services/EngineService';
import { EditorEngineSync } from '../services/EditorEngineSync';
+1 -1
View File
@@ -1,5 +1,5 @@
import { useState, useEffect, useCallback, useMemo } from 'react';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { LocaleService, type Locale } from '@esengine/editor-core';
export function useLocale() {
@@ -1,6 +1,6 @@
import React, { useState, useCallback, useEffect } from 'react';
import { IFieldEditor, FieldEditorProps, MessageHub } from '@esengine/editor-core';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { Plus, Trash2, ChevronDown, ChevronRight, Film, Upload, Star, Play, Square } from 'lucide-react';
import type { AnimationClip, AnimationFrame, SpriteAnimatorComponent } from '@esengine/sprite';
import { AssetField } from '../../components/inspectors/fields/AssetField';
@@ -1,6 +1,6 @@
import React from 'react';
import { IFieldEditor, FieldEditorProps, MessageHub, FileActionRegistry } from '@esengine/editor-core';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
import { AssetField } from '../../components/inspectors/fields/AssetField';
export class AssetFieldEditor implements IFieldEditor<string | null> {
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import { ChevronDown, ChevronRight, Settings } from 'lucide-react';
import { IPropertyRenderer, PropertyContext, PropertyRendererRegistry } from '@esengine/editor-core';
import { Core } from '@esengine/esengine';
import { Core } from '@esengine/ecs-framework';
interface ComponentData {
typeName: string;
+1 -1
View File
@@ -1,7 +1,7 @@
import 'reflect-metadata';
import React from 'react';
import ReactDOM from 'react-dom/client';
import { setGlobalLogLevel, LogLevel } from '@esengine/esengine';
import { setGlobalLogLevel, LogLevel } from '@esengine/ecs-framework';
import App from './App';
import './styles/global.css';
import './styles/index.css';
@@ -6,8 +6,8 @@
* .meta
*/
import type { ServiceContainer } from '@esengine/esengine';
import { createLogger } from '@esengine/esengine';
import type { ServiceContainer } from '@esengine/ecs-framework';
import { createLogger } from '@esengine/ecs-framework';
import type { IPlugin, IEditorModuleLoader, ModuleManifest } from '@esengine/editor-core';
import { AssetRegistryService } from '@esengine/editor-core';
@@ -3,8 +3,8 @@
*
*/
import type { ServiceContainer } from '@esengine/esengine';
import { createLogger } from '@esengine/esengine';
import type { ServiceContainer } from '@esengine/ecs-framework';
import { createLogger } from '@esengine/ecs-framework';
import type { IPlugin, IEditorModuleLoader, ModuleManifest } from '@esengine/editor-core';
import { SettingsRegistry } from '@esengine/editor-core';
import { SettingsService } from '../../services/SettingsService';
@@ -3,7 +3,7 @@
* Gizmo
*/
import type { ServiceContainer } from '@esengine/esengine';
import type { ServiceContainer } from '@esengine/ecs-framework';
import type { IPlugin, IEditorModuleLoader, ModuleManifest, GizmoProviderRegistration } from '@esengine/editor-core';
import { registerSpriteGizmo } from '../../gizmos';
@@ -3,8 +3,8 @@
*
*/
import type { ServiceContainer } from '@esengine/esengine';
import { createLogger } from '@esengine/esengine';
import type { ServiceContainer } from '@esengine/ecs-framework';
import { createLogger } from '@esengine/ecs-framework';
import type { IPlugin, IEditorModuleLoader, ModuleManifest } from '@esengine/editor-core';
import { SettingsRegistry } from '@esengine/editor-core';
@@ -3,7 +3,7 @@
*
*/
import type { ServiceContainer } from '@esengine/esengine';
import type { ServiceContainer } from '@esengine/ecs-framework';
import type {
IPlugin,
IEditorModuleLoader,
@@ -6,8 +6,8 @@
* UI
*/
import type { ServiceContainer } from '@esengine/esengine';
import { createLogger, Core } from '@esengine/esengine';
import type { ServiceContainer } from '@esengine/ecs-framework';
import { createLogger, Core } from '@esengine/ecs-framework';
import type { IPlugin, IEditorModuleLoader, ModuleManifest } from '@esengine/editor-core';
import { SettingsRegistry, ProjectService, moduleRegistry } from '@esengine/editor-core';
import EngineService from '../../services/EngineService';
@@ -3,8 +3,8 @@
*
*/
import { Core, Entity } from '@esengine/esengine';
import type { ServiceContainer } from '@esengine/esengine';
import { Core, Entity } from '@esengine/ecs-framework';
import type { ServiceContainer } from '@esengine/ecs-framework';
import type {
IPlugin,
IEditorModuleLoader,
@@ -6,7 +6,7 @@
* Rust引擎进行渲染
*/
import { Entity, Component } from '@esengine/esengine';
import { Entity, Component } from '@esengine/ecs-framework';
import { MessageHub, EntityStoreService } from '@esengine/editor-core';
import { TransformComponent } from '@esengine/engine-core';
import { SpriteComponent, SpriteAnimatorComponent } from '@esengine/sprite';

Some files were not shown because too many files have changed in this diff Show More