-
Notifications
You must be signed in to change notification settings - Fork 0
/
state.ts
26 lines (23 loc) · 846 Bytes
/
state.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { Menu, MenuContents } from "./types/menuTypes";
import { Units } from "./types/unitTypes";
export const soldierMenuContents = [
{ name: "Retreat" },
{ name: "Submit" },
{ name: "Give Up" },
{ name: "Despair", highlighted: true },
{ name: "Flee" },
{ name: "Bargain" },
];
export const initState = {
stickFigureArmRaised: false as boolean,
menu: {unitId:"StickMan1", contents: soldierMenuContents} as Menu,
units: [
{ id:"StickMan1", side:"left", class:"StickMan"},
{ id:"Soldier2", side:"left", class:"Soldier"},
{ id:"Soldier3", side:"left", class:"Soldier"},
{ id:"Cloud1", side:"right", class:"Cloud"},
{ id:"Cloud2", side:"right", class:"Cloud"},
{ id:"Cloud3", side:"right", class:"Cloud"},
] as Units,
}
export type State = typeof initState;