Module

Screeps.Game

Package
purescript-screeps-classy
Repository
purescript/purescript-screeps

Corresponds to the Screeps API Game

#unsafeGameField Source

unsafeGameField :: forall a e. String -> Eff (tick :: TICK | e) a

#Gcl Source

type Gcl = { level :: Int, progress :: Int, progressTotal :: Int }

#Cpu Source

type Cpu = { limit :: Int, tickLimit :: Int, bucket :: Int }

#constructionSites Source

constructionSites :: forall e. Eff (tick :: TICK | e) (StrMap ConstructionSite)

#cpu Source

cpu :: forall e. Eff (tick :: TICK | e) Cpu

#creeps Source

creeps :: forall e. Eff (tick :: TICK | e) (StrMap Creep)

#flags Source

flags :: forall e. Eff (tick :: TICK | e) (StrMap Flag)

#market Source

market :: forall e. Eff (tick :: TICK | e) Market

#rooms Source

rooms :: forall e. Eff (tick :: TICK | e) (StrMap Room)

#spawns Source

spawns :: forall e. Eff (tick :: TICK | e) (StrMap Spawn)

#structures Source

structures :: forall e. Eff (tick :: TICK | e) (StrMap AnyStructure)

#time Source

time :: forall e. Eff (tick :: TICK | e) Int

#getUsedCpu Source

getUsedCpu :: forall e. Eff (time :: TIME | e) Number

#notify Source

notify :: forall e. String -> Eff (cmd :: CMD | e) Unit

#notify_ Source

notify_ :: forall e. String -> Int -> Eff (cmd :: CMD | e) Unit