中化加油站项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

73 lines
1.7 KiB

import { MarkType } from "../../data/mark/mark-data";
import { ModelInfo_mark } from "./model-info-mark";
/**
* 所有标记素材的预制体信息
*/
export class AllMarkInfo {
/**
* 灾情
*/
marks_Disaster: Map<MarkType, ModelInfo_mark> = new Map();
/**
* 消防力量
*/
marks_FireFighting: Map<MarkType, ModelInfo_mark> = new Map();
/**
* 联动力量
*/
marks_Linkage: Map<MarkType, ModelInfo_mark> = new Map();
/**
* 内部力量
*/
marks_Inside: Map<MarkType, ModelInfo_mark> = new Map();
/**
* 标绘工具
*/
marks_Tool: Map<MarkType, ModelInfo_mark> = new Map();
// /**
// * 根据类型,找到预制体info
// * @param data
// */
// getMarkPrefab(data: MarkData): ModelInfo_mark {
// let map: Map<MarkType, ModelInfo_mark>;
// switch (data.tagPos) {
// case MarkTagPos.Disaster:
// map = this.marks_Disaster;
// break;
// case MarkTagPos.FireFighting:
// map = this.marks_FireFighting;
// break;
// case MarkTagPos.Inside:
// map = this.marks_Inside;
// break;
// case MarkTagPos.Linkage:
// map = this.marks_Linkage;
// break;
// case MarkTagPos.Tool:
// map = this.marks_Tool;
// break;
// }
// if (!map.has(data.type)) {
// let markInfoPrefab = new ModelInfo_mark(data, true);
// map.set(data.type, markInfoPrefab);
// }
// return map.get(data.type);
// }
}