Module

Screeps.Deposit

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

Corresponds to the Screeps API StructureExtension

#caseDeposit Source

caseDeposit :: forall a d. Deposit d => (Source -> a) -> (Mineral -> a) -> d -> a

#harvestDeposit Source

harvestDeposit :: forall a e. Creep -> AnyDeposit -> Eff (cmd :: CMD | e) a

#depositLeft Source

depositLeft :: forall a. Deposit a => a -> Int

#depositType Source

depositType :: forall d. Deposit d => d -> ResourceType

#toAnyDeposit Source

toAnyDeposit :: forall r. RoomObject r => r -> Maybe AnyDeposit

#asAnyDeposit Source

asAnyDeposit :: forall s. Deposit s => s -> AnyDeposit

Re-exports from Screeps.Regenerates

#Regenerates Source

class Regenerates s 

#ticksToRegeneration Source

ticksToRegeneration :: forall s. Regenerates s => s -> Int