Safe Haskell | None |
---|---|
Language | Haskell2010 |
Server and client game state types and operations.
Synopsis
- data StateServer = StateServer {
- sactorTime :: ActorTime
- strajTime :: ActorTime
- strajPushedBy :: ActorPushedBy
- steamGear :: GearOfTeams
- steamGearCur :: GearOfTeams
- stcounter :: EnumMap TeamContinuity Int
- sfactionAn :: FactionAnalytics
- sactorAn :: ActorAnalytics
- sgenerationAn :: GenerationAnalytics
- sactorStasis :: EnumSet ActorId
- sdiscoKindRev :: DiscoveryKindRev
- suniqueSet :: UniqueSet
- sitemRev :: ItemRev
- sflavour :: FlavourMap
- sacounter :: ActorId
- sicounter :: ItemId
- snumSpawned :: EnumMap LevelId Int
- sbandSpawned :: IntMap Int
- sundo :: ()
- sclientStates :: EnumMap FactionId State
- smetaBackup :: EnumMap TeamContinuity DiscoveryKind
- sperFid :: PerFid
- sperValidFid :: PerValidFid
- sperCacheFid :: PerCacheFid
- sfovLucidLid :: FovLucidLid
- sfovClearLid :: FovClearLid
- sfovLitLid :: FovLitLid
- sarenas :: EnumSet LevelId
- svalidArenas :: Bool
- srandom :: SMGen
- srngs :: RNGs
- sbreakLoop :: Bool
- sbreakASAP :: Bool
- swriteSave :: Bool
- soptions :: ServerOptions
- soptionsNxt :: ServerOptions
- type ActorTime = EnumMap FactionId (EnumMap LevelId (EnumMap ActorId Time))
- type ActorPushedBy = EnumMap ActorId ActorId
- emptyStateServer :: StateServer
- updateActorTime :: FactionId -> LevelId -> ActorId -> Time -> ActorTime -> ActorTime
- lookupActorTime :: FactionId -> LevelId -> ActorId -> ActorTime -> Maybe Time
- ageActor :: FactionId -> LevelId -> ActorId -> Delta Time -> ActorTime -> ActorTime
- type GearOfTeams = EnumMap TeamContinuity (IntMap [(GroupName ItemKind, ContentId ItemKind)])
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 | |
|
Instances
Show StateServer Source # | |
Defined in Game.LambdaHack.Server.State showsPrec :: Int -> StateServer -> ShowS # show :: StateServer -> String # showList :: [StateServer] -> ShowS # | |
Binary StateServer Source # | |
Defined in Game.LambdaHack.Server.State |
type ActorTime = EnumMap FactionId (EnumMap LevelId (EnumMap ActorId Time)) Source #
Position in time for each actor, grouped by level and by faction.
type ActorPushedBy = EnumMap ActorId ActorId Source #
Record who last propelled a given actor with trajectory.
emptyStateServer :: StateServer Source #
Initial, empty game server state.
type GearOfTeams = EnumMap TeamContinuity (IntMap [(GroupName ItemKind, ContentId ItemKind)]) Source #
Per-team, per-actor metagame persistent favourite organs and gear.