Pārlūkot izejas kodu

Add a function to load every building from a city (not in the UI yet)

master
Fen Dweller pirms 5 gadiem
vecāks
revīzija
b7d1867dcb
1 mainītis faili ar 13 papildinājumiem un 0 dzēšanām
  1. +13
    -0
      presets/scenes.js

+ 13
- 0
presets/scenes.js Parādīt failu

@@ -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 => {


Notiek ielāde…
Atcelt
Saglabāt