MapComplete/State.ts
2022-01-31 14:34:06 +01:00

19 lines
481 B
TypeScript

import LayoutConfig from "./Models/ThemeConfig/LayoutConfig";
import FeaturePipelineState from "./Logic/State/FeaturePipelineState";
/**
* Contains the global state: a bunch of UI-event sources
*/
export default class State extends FeaturePipelineState {
/* The singleton of the global state
*/
public static state: FeaturePipelineState;
constructor(layoutToUse: LayoutConfig) {
super(layoutToUse)
window["mapcomplete_state"]= this;
}
}