createReverseMap 创建键值相反的图块组映射表
createReverseMap
类型: MethodDeclaration
所属类: SceneTilemap
定义位置: scene.ts
描述
创建键值相反的图块组映射表
参数 tilesetMap: {ID:图块组}映射表
参数
| 参数名 | 类型 | 描述 | 默认值 | 
|---|---|---|---|
| tilesetMap | HashMap<string> | - | - | 
返回值
类型: void
源代码
位置: 第 2801 行
private createReverseMap(tilesetMap: HashMap<string>): void {
    for (const [index, guid] of Object.entries(tilesetMap)) {
      this.reverseMap[guid!] = parseInt(index)
    }
  }
文档生成时间:2025/7/21 20:53:39