Module

Screeps.Spawn

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

Corresponds to the Screeps API StructureSpawn

#CreepInfo Source

type CreepInfo = { name :: String, needTime :: Int, remainingTime :: Int }

#memory Source

memory :: forall props. Spawn -> Record props

#canCreateCreep' Source

canCreateCreep' :: forall e. Spawn -> Array BodyPartType -> String -> Eff (cmd :: CMD | e) ReturnCode

#createCreep Source

createCreep :: forall e. Spawn -> Array BodyPartType -> Eff (cmd :: CMD | e) (Either ReturnCode String)

#createCreep' Source

createCreep' :: forall e mem. EncodeJson mem => Spawn -> Array BodyPartType -> Maybe String -> mem -> Eff (cmd :: CMD | e) (Either ReturnCode String)

#recycleCreep Source

recycleCreep :: forall e. Spawn -> Creep -> Eff (cmd :: CMD | e) ReturnCode

#renewCreep Source

renewCreep :: forall e. Spawn -> Creep -> Eff (cmd :: CMD | e) ReturnCode