mapcomplete/Customizations/AllKnownLayouts.ts

29 lines
812 B
TypeScript
Raw Normal View History

2020-07-05 18:59:47 +02:00
import {Groen} from "./Layouts/Groen";
import {Toilets} from "./Layouts/Toilets";
import {GRB} from "./Layouts/GRB";
import {Statues} from "./Layouts/Statues";
import {Bookcases} from "./Layouts/Bookcases";
2020-07-07 16:00:27 +02:00
import { BikePumps } from "./Layers/BikePumps";
2020-07-07 16:39:11 +02:00
import { BikePumpsLayout } from "./Layouts/BikePumps";
2020-07-05 18:59:47 +02:00
export class AllKnownLayouts {
public static allSets: any = AllKnownLayouts.AllLayouts();
private static AllLayouts() {
const layouts = [
new Groen(),
new GRB(),
2020-07-07 16:39:11 +02:00
new BikePumpsLayout(),
2020-07-08 16:07:16 +02:00
new Bookcases()
2020-07-05 18:59:47 +02:00
/*new Toilets(),
new Statues(),
2020-07-08 16:07:16 +02:00
*/
2020-07-05 18:59:47 +02:00
];
const allSets = {};
for (const layout of layouts) {
allSets[layout.name] = layout;
}
return allSets;
}
}