multirepo
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
import { SerializedGame } from "@incgame/engine";
|
||||
|
||||
export const defaultGame: () => SerializedGame = () => ({
|
||||
time: 0,
|
||||
nodes: [
|
||||
{
|
||||
id: 'forest',
|
||||
name: 'Лес',
|
||||
behaviour: {
|
||||
id: 'forest.1',
|
||||
kind: 'converter',
|
||||
inputLinks: { pins: [] },
|
||||
rules: {
|
||||
cycleLength: 1,
|
||||
outputRates: { tree: 1, stone: 0.1 },
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'sawmill',
|
||||
name: 'Лесопилка',
|
||||
behaviour: {
|
||||
id: 'sawmill.1',
|
||||
kind: 'converter',
|
||||
inputLinks: {
|
||||
pins: [
|
||||
{
|
||||
resource: 'tree',
|
||||
target: 'forest.1',
|
||||
},
|
||||
]
|
||||
},
|
||||
rules: {
|
||||
cycleLength: 1.8,
|
||||
inputRates: { tree: 1 },
|
||||
outputRates: { wood: 2 },
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'shop',
|
||||
name: 'Магазин',
|
||||
behaviour: {
|
||||
id: 'shop.1',
|
||||
kind: 'storage',
|
||||
inputLinks: {
|
||||
pins: [
|
||||
{
|
||||
resource: 'wood',
|
||||
target: 'sawmill.1',
|
||||
},
|
||||
{
|
||||
resource: 'stone',
|
||||
target: 'forest.1',
|
||||
}
|
||||
]
|
||||
},
|
||||
acceptsResources: ['wood', 'stone'],
|
||||
items: {},
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'shop2',
|
||||
name: 'Магазин 2',
|
||||
behaviour: {
|
||||
id: 'shop.2',
|
||||
kind: 'storage',
|
||||
inputLinks: {
|
||||
pins: [
|
||||
{
|
||||
resource: 'stone',
|
||||
target: 'forest.1',
|
||||
}
|
||||
]
|
||||
},
|
||||
acceptsResources: ['stone'],
|
||||
items: {},
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user