Safe Haskell | None |
---|
Abstract syntax of server commands. See https://github.com/kosmikus/LambdaHack/wiki/Client-server-architecture.
- data CmdSer
- = CmdTakeTimeSer !CmdTakeTimeSer
- | GameRestartSer !ActorId !Text !Int ![(Int, Text)]
- | GameExitSer !ActorId !Int
- | GameSaveSer !ActorId
- data CmdTakeTimeSer
- = MoveSer !ActorId !Vector
- | MeleeSer !ActorId !ActorId
- | DisplaceSer !ActorId !ActorId
- | AlterSer !ActorId !Point !(Maybe Feature)
- | WaitSer !ActorId
- | PickupSer !ActorId !ItemId !Int
- | DropSer !ActorId !ItemId !Int
- | ProjectSer !ActorId !Point !Int !ItemId !Container
- | ApplySer !ActorId !ItemId !Container
- | TriggerSer !ActorId !(Maybe Feature)
- | SetTrajectorySer !ActorId
- aidCmdSer :: CmdSer -> ActorId
- aidCmdTakeTimeSer :: CmdTakeTimeSer -> ActorId
- data FailureSer
- showFailureSer :: FailureSer -> Msg
Documentation
Abstract syntax of server commands.
data CmdTakeTimeSer Source
aidCmdSer :: CmdSer -> ActorIdSource
The actor that starts performing the command (may be dead, after the command is performed).
data FailureSer Source