Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Database
- type Connected = [(ObjId, ObjId)]
- data ServerOptions = Options {
- bgSeconds :: Int
- bgTicks :: Int
- connectTimeout :: IntT
- defaultFlushCommand :: Text
- fgSeconds :: Int
- fgTicks :: Int
- maxStackDepth :: Int
- queuedTaskLimit :: Maybe Int
- nameLookupTimeout :: IntT
- outboundConnectTimeout :: IntT
- protectProperty :: Id -> Bool
- protectFunction :: Id -> Bool
- supportNumericVerbnameStrings :: Bool
- data Persistence = Persistence {
- persistenceVSpace :: VSpace
- persistenceVersion :: PVar VVersion
- persistenceDatabase :: PVar Database
- persistenceConnected :: PVar Connected
- persistenceCheckpoint :: PVar VUTCTime
- serverOptions :: Database -> ServerOptions
- initDatabase :: Database
- dbObjectRef :: ObjId -> Database -> Maybe (PVar (Maybe Object))
- dbObject :: ObjId -> Database -> VTx (Maybe Object)
- maxObject :: Database -> ObjId
- resetMaxObject :: Database -> VTx Database
- renumber :: ObjId -> Database -> VTx (ObjId, Database)
- setObjects :: VSpace -> [Maybe Object] -> Database -> IO Database
- addObject :: Object -> Database -> VTx Database
- deleteObject :: ObjId -> Database -> VTx ()
- modifyObject :: ObjId -> Database -> (Object -> VTx Object) -> VTx ()
- allPlayers :: Database -> [ObjId]
- setPlayer :: Bool -> ObjId -> Database -> Database
- getServerOption :: Id -> MOO (Maybe Value)
- getServerOption' :: ObjId -> Id -> MOO (Maybe Value)
- loadServerOptions :: MOO ()
- getServerMessage :: ObjId -> Id -> MOO [Text] -> MOO [Text]
- loadPersistence :: VCache -> IO Persistence
- syncPersistence :: Persistence -> IO ()
- saveDatabase :: VCache -> (Database, Connected) -> IO ()
Documentation
data ServerOptions Source
Options | |
|
data Persistence Source
Persistence | |
|
VCacheable Persistence Source |
resetMaxObject :: Database -> VTx Database Source
renumber :: ObjId -> Database -> VTx (ObjId, Database) Source
Renumber an object in the database to be the least nonnegative object number not currently in use pursuant to the renumber() built-in function.
deleteObject :: ObjId -> Database -> VTx () Source
allPlayers :: Database -> [ObjId] Source
loadServerOptions :: MOO () Source
loadPersistence :: VCache -> IO Persistence Source
syncPersistence :: Persistence -> IO () Source
saveDatabase :: VCache -> (Database, Connected) -> IO () Source