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.
28 lines
629 B
28 lines
629 B
|
|
import { DataManager } from "../data-manager"; |
|
import { BuildingStatus } from "./building-status"; |
|
import { StatusBase, StatusManager } from "./status-manager"; |
|
|
|
//主状态 |
|
export class MainStatus extends StatusBase { |
|
//初始化 |
|
onCreate() { |
|
super.onCreate(); |
|
} |
|
//进入状态 |
|
onEnter() { |
|
super.onEnter(); |
|
|
|
|
|
if (DataManager.institutionData == null) { |
|
//新建单位信息、开启上传建筑模型的界面 |
|
} else { |
|
//已有信息,进入建筑物模式 |
|
StatusManager.enterStatus<BuildingStatus>(BuildingStatus); |
|
} |
|
} |
|
//退出状态 |
|
onExit() { |
|
super.onExit(); |
|
} |
|
}
|
|
|