init
This commit is contained in:
commit
0cba7f5ee0
385 changed files with 17912 additions and 0 deletions
47
engine/types.gd
Normal file
47
engine/types.gd
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
class_name Types
|
||||
## Constants from the TS engine's types.ts.
|
||||
##
|
||||
## The game state is plain Dictionaries and Arrays shaped exactly like the TS GameState's JSON, with
|
||||
## the same keys (see godot-plan.md §3), so these are the only "types" the port needs. The shapes are
|
||||
## documented in files-tcg/sim/src/types.ts.
|
||||
|
||||
## 0 = South (starts on S1), 1 = North (starts on S2).
|
||||
const PLAYER_NAMES: Array[String] = ["South", "North"]
|
||||
|
||||
## Status timers count half-turns: the clock is 2T at the start of player-turn T and 2T + 1 at its
|
||||
## end. A status with `until: n` is active while the clock is below n.
|
||||
const FOREVER := 1000000000
|
||||
|
||||
const STAT_KEYS: Array[String] = [
|
||||
"capturesUnowned",
|
||||
"capturesUndefended",
|
||||
"capturesInCombat",
|
||||
"attacks",
|
||||
"attacksWon",
|
||||
"combatsTied",
|
||||
"damageDealt",
|
||||
"anomaliesDestroyed",
|
||||
"recalls",
|
||||
"combatsEnded",
|
||||
"firewallsPlaced",
|
||||
"firewallsUpgraded",
|
||||
"firewallsCleared",
|
||||
"bandwidthFromCaptures",
|
||||
"bandwidthFromSalvage",
|
||||
"bandwidthFromEffects",
|
||||
"bandwidthOnFirewalls",
|
||||
"bandwidthOnCards",
|
||||
"bandwidthOnAbilities",
|
||||
"cardsSalvaged",
|
||||
"cardsDrawn",
|
||||
"hardwareInstalled",
|
||||
"hardwareLost",
|
||||
"programsInstalled",
|
||||
"programsLost",
|
||||
"executionsPlayed",
|
||||
"abilitiesUsed",
|
||||
"anomaliesRecruited",
|
||||
"anomaliesRetired",
|
||||
"anomaliesBought",
|
||||
"bandwidthOnAnomalies",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue