initial commit
This commit is contained in:
@@ -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: [],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user