Safe Haskell | None |
---|---|
Language | Haskell2010 |
Server operations for items.
- rollAndRegisterItem :: (MonadAtomic m, MonadServer m) => LevelId -> Freqs -> Container -> Bool -> m (Maybe (ItemId, (ItemFull, Text)))
- registerItem :: (MonadAtomic m, MonadServer m) => ItemKnown -> ItemSeed -> Int -> Container -> Bool -> m ItemId
- createItems :: (MonadAtomic m, MonadServer m) => Int -> Point -> LevelId -> m ()
- placeItemsInDungeon :: (MonadAtomic m, MonadServer m) => m ()
- fullAssocsServer :: MonadServer m => ActorId -> [CStore] -> m [(ItemId, ItemFull)]
- activeItemsServer :: MonadServer m => ActorId -> m [ItemFull]
- itemToFullServer :: MonadServer m => m (ItemId -> Int -> ItemFull)
- mapActorCStore_ :: MonadServer m => CStore -> (ItemId -> Int -> m a) -> Actor -> m ()
Documentation
rollAndRegisterItem :: (MonadAtomic m, MonadServer m) => LevelId -> Freqs -> Container -> Bool -> m (Maybe (ItemId, (ItemFull, Text))) Source
registerItem :: (MonadAtomic m, MonadServer m) => ItemKnown -> ItemSeed -> Int -> Container -> Bool -> m ItemId Source
createItems :: (MonadAtomic m, MonadServer m) => Int -> Point -> LevelId -> m () Source
placeItemsInDungeon :: (MonadAtomic m, MonadServer m) => m () Source
fullAssocsServer :: MonadServer m => ActorId -> [CStore] -> m [(ItemId, ItemFull)] Source
activeItemsServer :: MonadServer m => ActorId -> m [ItemFull] Source
itemToFullServer :: MonadServer m => m (ItemId -> Int -> ItemFull) Source
mapActorCStore_ :: MonadServer m => CStore -> (ItemId -> Int -> m a) -> Actor -> m () Source
Mapping over actor's items from a give store.