Feature/tilemap editor (#237)

* feat: 添加 Tilemap 编辑器插件和组件生命周期支持

* feat(editor-core): 添加声明式插件注册 API

* feat(editor-core): 改进tiledmap结构合并tileset进tiledmapeditor

* feat: 添加 editor-runtime SDK 和插件系统改进

* fix(ci): 修复SceneResourceManager里变量未使用问题
This commit is contained in:
YHH
2025-11-25 22:23:19 +08:00
committed by GitHub
parent 551ca7805d
commit 3fb6f919f8
166 changed files with 54691 additions and 8674 deletions

View File

@@ -0,0 +1,40 @@
/**
* Gizmo Plugin
* Gizmo 插件
*
* Registers gizmo support for built-in components
* 为内置组件注册 gizmo 支持
*/
import type { Core, ServiceContainer } from '@esengine/ecs-framework';
import type { IEditorPlugin } from '@esengine/editor-core';
import { EditorPluginCategory } from '@esengine/editor-core';
import { registerSpriteGizmo } from '../gizmos';
export class GizmoPlugin implements IEditorPlugin {
readonly name = '@esengine/gizmo-plugin';
readonly version = '1.0.0';
readonly category = EditorPluginCategory.Tool;
get displayName(): string {
return 'Gizmo System';
}
get description(): string {
return 'Provides gizmo support for editor components';
}
async install(_core: Core, _services: ServiceContainer): Promise<void> {
// Register gizmo support for SpriteComponent
// 为 SpriteComponent 注册 gizmo 支持
registerSpriteGizmo();
console.log('[GizmoPlugin] Installed - registered gizmo support for built-in components');
}
async uninstall(): Promise<void> {
console.log('[GizmoPlugin] Uninstalled');
}
}
export const gizmoPlugin = new GizmoPlugin();