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

@@ -1,4 +1,5 @@
export interface IFileSystem {
dispose(): void;
readFile(path: string): Promise<string>;
writeFile(path: string, content: string): Promise<void>;
writeBinary(path: string, data: Uint8Array): Promise<void>;
@@ -8,6 +9,12 @@ export interface IFileSystem {
deleteFile(path: string): Promise<void>;
deleteDirectory(path: string): Promise<void>;
scanFiles(basePath: string, pattern: string): Promise<string[]>;
/**
* Convert a local file path to an asset URL that can be used in browser contexts (img src, audio src, etc.)
* @param filePath The local file path
* @returns The converted asset URL
*/
convertToAssetUrl(filePath: string): string;
}
export interface FileEntry {
@@ -17,3 +24,7 @@ export interface FileEntry {
size?: number;
modified?: Date;
}
// Service identifier for DI registration
// 使用 Symbol.for 确保跨包共享同一个 Symbol
export const IFileSystemService = Symbol.for('IFileSystemService');