中化加油站项目
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);
// }
}