Safe Haskell | None |
---|---|
Language | Haskell2010 |
Server operations for items.
Synopsis
- registerItem :: MonadServerAtomic m => ItemFullKit -> ItemKnown -> Container -> Bool -> m ItemId
- randomResetTimeout :: MonadServerAtomic m => Int -> ItemId -> ItemFull -> [Time] -> Container -> m ()
- embedItem :: MonadServerAtomic m => LevelId -> Point -> ContentId TileKind -> m ()
- prepareItemKind :: MonadServerAtomic m => Int -> LevelId -> Freqs ItemKind -> m (Frequency (ContentId ItemKind, ItemKind))
- rollItemAspect :: MonadServerAtomic m => Frequency (ContentId ItemKind, ItemKind) -> LevelId -> m (Maybe (ItemKnown, ItemFullKit))
- rollAndRegisterItem :: MonadServerAtomic m => LevelId -> Freqs ItemKind -> Container -> Bool -> Maybe Int -> m (Maybe (ItemId, ItemFullKit))
- placeItemsInDungeon :: forall m. MonadServerAtomic m => EnumMap LevelId [Point] -> m ()
- embedItemsInDungeon :: MonadServerAtomic m => m ()
- mapActorCStore_ :: MonadServer m => CStore -> (ItemId -> ItemQuant -> m a) -> Actor -> m ()
- onlyRegisterItem :: MonadServerAtomic m => ItemKnown -> m ItemId
- computeRndTimeout :: Time -> ItemFull -> Rnd (Maybe Time)
- createLevelItem :: MonadServerAtomic m => Point -> LevelId -> m ()
Documentation
registerItem :: MonadServerAtomic m => ItemFullKit -> ItemKnown -> Container -> Bool -> m ItemId Source #
randomResetTimeout :: MonadServerAtomic m => Int -> ItemId -> ItemFull -> [Time] -> Container -> m () Source #
prepareItemKind :: MonadServerAtomic m => Int -> LevelId -> Freqs ItemKind -> m (Frequency (ContentId ItemKind, ItemKind)) Source #
rollItemAspect :: MonadServerAtomic m => Frequency (ContentId ItemKind, ItemKind) -> LevelId -> m (Maybe (ItemKnown, ItemFullKit)) Source #
rollAndRegisterItem :: MonadServerAtomic m => LevelId -> Freqs ItemKind -> Container -> Bool -> Maybe Int -> m (Maybe (ItemId, ItemFullKit)) Source #
placeItemsInDungeon :: forall m. MonadServerAtomic m => EnumMap LevelId [Point] -> m () Source #
embedItemsInDungeon :: MonadServerAtomic m => m () Source #
mapActorCStore_ :: MonadServer m => CStore -> (ItemId -> ItemQuant -> m a) -> Actor -> m () Source #
Mapping over actor's items from a give store.
Internal operations
onlyRegisterItem :: MonadServerAtomic m => ItemKnown -> m ItemId Source #
createLevelItem :: MonadServerAtomic m => Point -> LevelId -> m () Source #