中化加油站项目
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.

382 lines
5.2 KiB

import { Type } from "class-transformer";
3 years ago
import { ConfigManager } from "src/app/babylon/controller/config-manager";
import { ModelData } from "../model-data/model-data";
import { TransformData } from "../transform-data";
import { MarkProperty } from "./mark-property";
/**
*
*/
export class MarkData extends ModelData {
/**
*
*/
type: MarkType = MarkType.SY;
/**
* tag
*/
tagPos: MarkTagPos = MarkTagPos.Disaster;
/**
*
*
*/
markKindType: MarkKindType = MarkKindType.Persion;
/**
*
*/
iconURL: string;
/**
*
*/
belongtoBuildingId: string;
/**
*
*/
@Type(() => MarkProperty)
property: MarkProperty;
/**
* ()
*/
@Type(() => ChildNodeData)
childrenNodeData: ChildNodeData[] = [];
/**
*
*/
waterPower: number = 20;
constructor(id: string, type: MarkType, tagPos: MarkTagPos, markKindType: MarkKindType, iconURL: string, resPath: string, resName: string, taskType: MarkTask, isModel: boolean) {
super(id, ConfigManager.getMarkName(type), resPath, resName, undefined, isModel)
this.name = ConfigManager.getMarkName(type);
this.type = type;
this.tagPos = tagPos;
this.markKindType = markKindType;
this.iconURL = iconURL;
let defaultTask: string = undefined;
if (type == MarkType.WZ) {
defaultTask = "文字信息";
}
this.property = new MarkProperty(taskType, this.name, undefined, defaultTask);
}
}
/**
*
*/
export class ChildNodeData {
/**
*
*/
name: string;
/**
*
*/
@Type(() => TransformData)
transformData: TransformData = new TransformData();
}
/**
* tag
*/
export enum MarkTagPos {
/**
*
*/
Disaster = "Disaster",
/**
*
*/
Inside = "Inside",
/**
*
*/
Outside = "Outside",
/**
*
*/
Other = "Other",
}
/**
*
*/
export enum MarkKindType {
/**
*
*/
Persion = "Persion",
/**
*
*/
Car = "Car",
/**
*
*/
Goods = "Goods",
/**
*
*/
Virtual = "Virtual",
/**
*
*/
Effect = "Effect",
}
/**
*
* id
*/
export enum MarkType {
//============灾情设定===============
/**
* D
*/
SY = "SY",
/**
*
*/
DT = "DT",
/**
*
*/
LYD = "LYD",
/**
*
*/
LYX = "LYX",
/**
*
*/
H = "H",
/**
*
*/
SNH = "SNH",
/**
* A
*/
YWA = "YWA",
/**
*
*/
YWB = "YWB",
//==================外部力量================
/**
3 years ago
*
*/
3 years ago
XFY = "XFY",
/**
3 years ago
*
*/
3 years ago
XFC = "XFC",
/**
*
*/
JC = "JC",
/**
*
*/
JJ = "JJ",
/**
*
*/
GA = "GA",
/**
*
*/
JHC = "JHC",
/**
*
*/
YS = "YS",
//===============内部力量=================
/**
*
*/
JL = "JL",
/**
*
*/
YZZG = "YZZG",
/**
*
*/
SYY = "SYY",
/**
*
*/
JYY = "JYY",
/**
*
*/
XYY = "XYY",
/**
*
*/
YGC = "YGC",
/**
*
*/
SYG = "SYG",
/**
*
*/
YGCSJ = "YGCSJ",
/**
*
*/
XFSD = "XFSD",
/**
*
*/
XFSQ = "XFSQ",
/**
*
*/
ZYMBRQ = "ZYMBRQ",
/**
*
*/
PTMHQ = "PTMHQ",
/**
*
*/
GFMHQ = "GFMHQ",
/**
*
*/
TCMHQ = "TCMHQ",
/**
*
*/
MHTK = "MHTK",
//===================其他===================
/**
*
*/
GK = "GK",
/**
* 轿
*/
JCA = "JCA",
/**
* 线
*/
JJX = "JJX",
/**
* 线
*/
JGLX = "JGLX",
/**
* 退
*/
CT = "CT",
/**
*
*/
WZ = "WZ",
/**
*
*/
QYSDA = "QYSDA",
/**
*
*/
QYSDB = "QYSDB",
}
/**
*
*/
export enum MarkTask {
/**
*
*/
None,
/**
*
*/
Unknown,
/**
*
*/
Person,
/**
*
*/
Car,
}