Safe Haskell | None |
---|
Provides prototypes for common entities (rooms, objects, mobs).
- ctorRoom :: Monad m => String -> String -> RoomT m ()
- ctorSign :: (MonadAtoms m, MonadVocab m, MonadError SplErr m) => String -> [String] -> ObjectT m ()
- ctorMob :: MonadVocab m => String -> [String] -> String -> [String] -> ObjectT m ()
- ctorRoute :: (Monad m, Functor m) => [NodeId] -> Integer -> ObjectT m ()
- ctorRoomNesting :: MonadVocab m => String -> String -> [String] -> [String] -> NodeId -> ObjectT m ()
- ctorAcq :: MonadVocab m => String -> String -> [String] -> [String] -> ObjectT m ()
Documentation
ctorRoom :: Monad m => String -> String -> RoomT m ()Source
Construct a simple room from a title and a description.
ctorSign :: (MonadAtoms m, MonadVocab m, MonadError SplErr m) => String -> [String] -> ObjectT m ()Source
Construct a sign from a text and some attributes.
ctorMob :: MonadVocab m => String -> [String] -> String -> [String] -> ObjectT m ()Source
Construct a mob from a title, some names, a description and some attributes.
ctorRoute :: (Monad m, Functor m) => [NodeId] -> Integer -> ObjectT m ()Source
Construct a mob route from some room IDs and a time delay in milliseconds.
ctorRoomNesting :: MonadVocab m => String -> String -> [String] -> [String] -> NodeId -> ObjectT m ()Source
Construct a room nesting object from a title, a description, some names, some attributes and the target room ID.