initial commit

This commit is contained in:
azykov@mail.ru
2026-08-31 20:54:53 +03:00
commit f76370151e
27 changed files with 3473 additions and 0 deletions
+71
View File
@@ -0,0 +1,71 @@
import { SerializedGame } from "../types";
export const defaultGame: () => SerializedGame = () => ({
time: 0,
nodes: [
{
id: 'forest',
name: 'Forest',
behaviour: {
id: 'forest.1',
kind: 'converter',
inputs: {
pins: [],
},
outputs: {
pins: [
{
resource: 'wood',
rate: 1,
},
],
},
},
},
{
id: 'sawmill',
name: 'Sawmill',
behaviour: {
id: 'sawmill.1',
kind: 'converter',
inputs: {
pins: [
{
resource: 'wood',
rate: 0.5,
link: { target: 'forest.1', resource: 'wood' },
},
]
},
outputs: {
pins: [
{
resource: 'plank',
rate: 1,
},
],
},
},
},
{
id: 'burner',
name: 'Burner',
behaviour: {
id: 'burner.1',
kind: 'converter',
inputs: {
pins: [
{
resource: 'plank',
rate: 1,
link: { target: 'sawmill.1', resource: 'plank' },
},
],
},
outputs: {
pins: [],
},
},
},
],
});