engine moved to a separate node.js module

This commit is contained in:
azykov@mail.ru
2026-09-04 13:10:47 +03:00
parent f4c1eedf62
commit f56e79ee94
27 changed files with 331 additions and 786 deletions
+19 -1
View File
@@ -1,4 +1,4 @@
import { SerializedGame } from "../types";
import { SerializedGame } from "@incgame/engine";
export const defaultGame: () => SerializedGame = () => ({
time: 0,
@@ -59,5 +59,23 @@ export const defaultGame: () => SerializedGame = () => ({
items: {},
},
},
{
id: 'shop2',
name: 'Магазин 2',
behaviour: {
id: 'shop.2',
kind: 'storage',
inputLinks: {
pins: [
{
resource: 'stone',
target: 'forest.1',
}
]
},
acceptsResources: ['stone'],
items: {},
},
},
],
});