跳到主要内容

createReverseMap 创建键值相反的图块组映射表

createReverseMap

类型: MethodDeclaration

所属类: SceneTilemap

定义位置: scene.ts

描述

创建键值相反的图块组映射表

参数 tilesetMap: {ID:图块组}映射表

参数

参数名类型描述默认值
tilesetMapHashMap<string>--

返回值

类型: void

源代码

位置: 第 2801 行

private createReverseMap(tilesetMap: HashMap<string>): void {
for (const [index, guid] of Object.entries(tilesetMap)) {
this.reverseMap[guid!] = parseInt(index)
}
}

文档生成时间:2025/7/7 12:07:06