diff --git a/src/data/layers/factory.tsx b/src/data/layers/factory.tsx new file mode 100644 index 0000000..1115514 --- /dev/null +++ b/src/data/layers/factory.tsx @@ -0,0 +1,18 @@ +import { jsx } from "features/feature"; +import { createLayer } from "game/layers"; + +const id = "elves"; + +// what is the actual day? +const day = 20; +const factory = createLayer(id, () => { + const name = "The Factory"; + const color = "grey"; + return { + name, + day, + color, + display: jsx(() => <>testing testing 1 2 3) + }; +}) +export default factory; diff --git a/src/data/projEntry.tsx b/src/data/projEntry.tsx index 2cf2ed4..7a4c53b 100644 --- a/src/data/projEntry.tsx +++ b/src/data/projEntry.tsx @@ -30,6 +30,7 @@ import paper from "./layers/paper"; import plastic from "./layers/plastic"; import trees from "./layers/trees"; import workshop from "./layers/workshop"; +import factory from "./layers/factory" import wrappingPaper from "./layers/wrapping-paper"; import boxesSymbol from "./symbols/cardboardBox.png"; import clothSymbol from "./symbols/cloth.png"; @@ -331,7 +332,7 @@ export const main = createLayer("main", function (this: BaseLayer) { createDay(() => ({ day: 20, shouldNotify: false, - layer: null, // "presents" + layer: "factory", // "presents" symbol: "", story: "", completedStory: "" @@ -441,7 +442,8 @@ export const getInitialLayers = ( plastic, dyes, wrappingPaper, - management + management, + factory ]; /**