From b7d1867dcbebfc415ae97d2e206344bcbfa84434 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 2 Oct 2020 18:15:39 -0400 Subject: [PATCH] Add a function to load every building from a city (not in the UI yet) --- presets/scenes.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/presets/scenes.js b/presets/scenes.js index a5ee5977..052e6d1e 100644 --- a/presets/scenes.js +++ b/presets/scenes.js @@ -95,6 +95,19 @@ scenes["EVERY VIEW AAAAA"] = () => { } +function makeViewsScene(constructor) { + return () => { + Object.keys(constructor.constructor().views).forEach(view => { + if (view.indexOf("Northwest") >= 0) { + const entity = constructor.constructor() + displayEntity(entity, view, 0, 1) + } + + }) + arrangeEntities(getSortedEntities()); + } +} + function makeOwnerScene(owners) { return () => { owners.flatMap(owner => {