darkplaces-demo-0.1: Utility and parser for DarkPlaces demo files

Safe HaskellNone
LanguageHaskell2010

DarkPlaces.PacketParser

Documentation

defaultDemoState :: ServerProtocolState Source

parsePacket :: ServerProtocolStateM PacketOrError Source

parsePackets :: ServerProtocolStateM [PacketOrError] Source

iterPacketsWithState :: ByteString -> ServerProtocolState -> [Either ErrorInfo (PacketOrError, ServerProtocolState)] Source

iterPackets :: ByteString -> ServerProtocolState -> ([Either ErrorInfo PacketOrError], ServerProtocolState) Source

listPackets :: ByteString -> ServerProtocolState -> Either ErrorInfo ([PacketOrError], ServerProtocolState) Source