14 lines
352 B
Text
14 lines
352 B
Text
|
module Screeps.Spawn where
|
||
|
|
||
|
import Prelude
|
||
|
import Effect (Effect)
|
||
|
import Screeps.Types
|
||
|
import Screeps.FFI ( unsafeField, toMaybe )
|
||
|
import Data.Maybe (Maybe)
|
||
|
|
||
|
foreign import spawnStoreCapacity ∷ ∀ obj. obj → Int
|
||
|
foreign import spawnStoreEnergy ∷ ∀ obj. obj → Int
|
||
|
|
||
|
spawnStore ∷ ∀ a. Structure a → Store
|
||
|
spawnStore = unsafeField "store"
|