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:
30
packages/tilemap-editor/src/index.ts
Normal file
30
packages/tilemap-editor/src/index.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* Tilemap Editor Package
|
||||
*/
|
||||
|
||||
// Plugin
|
||||
export { TilemapEditorPlugin, tilemapEditorPlugin } from './TilemapEditorPlugin';
|
||||
export { tilemapEditorPluginDefinition } from './TilemapEditorPluginDefinition';
|
||||
|
||||
// Components
|
||||
export { TilemapEditorPanel } from './components/panels/TilemapEditorPanel';
|
||||
export { TilesetPanel } from './components/panels/TilesetPanel';
|
||||
export { TilemapCanvas } from './components/TilemapCanvas';
|
||||
export { TilesetPreview } from './components/TilesetPreview';
|
||||
|
||||
// Store
|
||||
export { useTilemapEditorStore } from './stores/TilemapEditorStore';
|
||||
export type { TilemapEditorState, TilemapToolType, TileSelection } from './stores/TilemapEditorStore';
|
||||
|
||||
// Tools
|
||||
export type { ITilemapTool, ToolContext } from './tools/ITilemapTool';
|
||||
export { BrushTool } from './tools/BrushTool';
|
||||
export { EraserTool } from './tools/EraserTool';
|
||||
export { FillTool } from './tools/FillTool';
|
||||
|
||||
// Providers
|
||||
export { TilemapInspectorProvider } from './providers/TilemapInspectorProvider';
|
||||
|
||||
// Default export
|
||||
import { tilemapEditorPlugin as _plugin } from './TilemapEditorPlugin';
|
||||
export default _plugin;
|
||||
Reference in New Issue
Block a user