mapcomplete/Customizations/AllKnownLayouts.ts

33 lines
936 B
TypeScript
Raw Normal View History

2020-07-05 16:59:47 +00: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-08 15:12:23 +00:00
import Cyclofix from "./Layouts/Cyclofix";
2020-07-12 21:19:05 +00:00
import {All} from "./Layouts/All";
import {Layout} from "./Layout";
2020-07-05 16:59:47 +00:00
export class AllKnownLayouts {
public static allSets: any = AllKnownLayouts.AllLayouts();
private static AllLayouts() : any{
2020-07-12 21:19:05 +00:00
const all = new All();
const layouts : Layout[] = [
2020-07-05 16:59:47 +00:00
new Groen(),
new GRB(),
2020-07-08 15:12:23 +00:00
new Cyclofix(),
2020-07-12 21:19:05 +00:00
new Bookcases(),
all
2020-07-05 16:59:47 +00:00
/*new Toilets(),
new Statues(),
2020-07-08 14:07:16 +00:00
*/
2020-07-05 16:59:47 +00:00
];
const allSets = {};
for (const layout of layouts) {
allSets[layout.name] = layout;
2020-07-12 21:19:05 +00:00
all.layers = all.layers.concat(layout.layers);
2020-07-05 16:59:47 +00:00
}
return allSets;
}
}