Safe Haskell | None |
---|---|
Language | Haskell2010 |
Server and client game state types and operations.
- data StateServer = StateServer {
- sactorTime :: ActorTime
- sdiscoKindRev :: DiscoveryKindRev
- suniqueSet :: UniqueSet
- sitemSeedD :: ItemSeedDict
- sitemRev :: ItemRev
- sflavour :: FlavourMap
- sacounter :: ActorId
- sicounter :: ItemId
- snumSpawned :: EnumMap LevelId Int
- sundo :: [CmdAtomic]
- sclientStates :: EnumMap FactionId State
- sperFid :: PerFid
- sperValidFid :: PerValidFid
- sperCacheFid :: PerCacheFid
- sfovLucidLid :: FovLucidLid
- sfovClearLid :: FovClearLid
- sfovLitLid :: FovLitLid
- sarenas :: [LevelId]
- svalidArenas :: Bool
- srandom :: StdGen
- srngs :: RNGs
- squit :: Bool
- swriteSave :: Bool
- soptions :: ServerOptions
- soptionsNxt :: ServerOptions
- type ActorTime = EnumMap FactionId (EnumMap LevelId (EnumMap ActorId Time))
- emptyStateServer :: StateServer
- updateActorTime :: FactionId -> LevelId -> ActorId -> Time -> ActorTime -> ActorTime
- ageActor :: FactionId -> LevelId -> ActorId -> Delta Time -> ActorTime -> ActorTime
Documentation
data StateServer Source #
State with server-specific data, including a copy of each client's basic game state, but not the server's basic state.
StateServer | |
|
type ActorTime = EnumMap FactionId (EnumMap LevelId (EnumMap ActorId Time)) Source #
Position in time for each actor, grouped by level and by faction.
emptyStateServer :: StateServer Source #
Initial, empty game server state.