瀏覽代碼

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

master
Fen Dweller 5 年之前
父節點
當前提交
b7d1867dcb
共有 1 個檔案被更改,包括 13 行新增0 行删除
  1. +13
    -0
      presets/scenes.js

+ 13
- 0
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 => {


Loading…
取消
儲存