Files
esengine/packages/tilemap/src/editor/TilemapPlugin.ts
YHH 359886c72f Feature/physics and tilemap enhancement (#247)
* feat(behavior-tree,tilemap): 修复编辑器连线缩放问题并增强插件系统

* feat(node-editor,blueprint): 新增通用节点编辑器和蓝图可视化脚本系统

* feat(editor,tilemap): 优化编辑器UI样式和Tilemap编辑器功能

* fix: 修复CodeQL安全警告和CI类型检查错误

* fix: 修复CodeQL安全警告和CI类型检查错误

* fix: 修复CodeQL安全警告和CI类型检查错误
2025-11-29 23:00:48 +08:00

61 lines
1.5 KiB
TypeScript

/**
* Tilemap 统一插件
* Tilemap Unified Plugin
*
* 整合运行时模块和编辑器模块
* Integrates runtime and editor modules
*/
import type { IPluginLoader, PluginDescriptor } from '@esengine/editor-core';
// Runtime module
import { TilemapRuntimeModule } from '../TilemapRuntimeModule';
// Editor imports
import { TilemapEditorModule } from './index';
/**
* 插件描述符
*/
const descriptor: PluginDescriptor = {
id: '@esengine/tilemap',
name: 'Tilemap System',
version: '1.0.0',
description: '瓦片地图系统,支持 Tiled 格式导入和高效渲染',
category: 'rendering',
enabledByDefault: true,
canContainContent: true,
isEnginePlugin: true,
modules: [
{
name: 'TilemapRuntime',
type: 'runtime',
loadingPhase: 'default',
entry: './src/index.ts'
},
{
name: 'TilemapEditor',
type: 'editor',
loadingPhase: 'default',
entry: './src/editor/index.ts'
}
],
dependencies: [
{ id: '@esengine/core', version: '^1.0.0' },
{ id: '@esengine/physics-rapier2d', version: '^1.0.0', optional: true }
],
icon: 'Grid3X3'
};
/**
* Tilemap 插件加载器
* Tilemap plugin loader
*/
export const TilemapPlugin: IPluginLoader = {
descriptor,
runtimeModule: new TilemapRuntimeModule(),
editorModule: new TilemapEditorModule(),
};
export default TilemapPlugin;