rattletrap-12.1.3: Parse and generate Rocket League replays.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Rattletrap.Type.Content

Synopsis

Documentation

data ContentWith frames Source #

Contains low-level game data about a Replay.

Constructors

Content 

Fields

  • levels :: List Str

    This typically only has one element, like stadium_oob_audio_map.

  • keyframes :: List Keyframe

    A list of which frames are key frames. Although they aren't necessary for replay, key frames are frames that replicate every actor. They typically happen once every 10 seconds.

  • streamSize :: U32

    The size of the stream in bytes. This is only really necessary because the stream has some arbitrary amount of padding at the end.

  • frames :: frames

    The actual game data. This is where all the interesting information is.

  • messages :: List Message

    Debugging messages. In newer replays, this is always empty.

  • marks :: List Mark

    Tick marks shown on the scrubber when watching a replay.

  • packages :: List Str

    A list of .upk files to load, like ..\..\TAGame\CookedPCConsole\Stadium_P.upk.

  • objects :: List Str

    Objects in the stream. Used for the ClassAttributeMap.

  • names :: List Str

    It's not clear what these are used for. This list is usually not empty, but appears unused otherwise.

  • classMappings :: List ClassMapping

    A mapping between classes and their ID in the stream. Used for the ClassAttributeMap.

  • caches :: List Cache

    A list of classes along with their parent classes and attributes. Used for the ClassAttributeMap.

  • unknown :: [Word8]
     

Instances

Instances details
FromJSON frames => FromJSON (ContentWith frames) Source # 
Instance details

Defined in Rattletrap.Type.Content

ToJSON frames => ToJSON (ContentWith frames) Source # 
Instance details

Defined in Rattletrap.Type.Content

Show frames => Show (ContentWith frames) Source # 
Instance details

Defined in Rattletrap.Type.Content

Methods

showsPrec :: Int -> ContentWith frames -> ShowS #

show :: ContentWith frames -> String #

showList :: [ContentWith frames] -> ShowS #

Eq frames => Eq (ContentWith frames) Source # 
Instance details

Defined in Rattletrap.Type.Content

Methods

(==) :: ContentWith frames -> ContentWith frames -> Bool #

(/=) :: ContentWith frames -> ContentWith frames -> Bool #

byteGet Source #

Arguments

:: Maybe Str 
-> Version

Version numbers, usually from getVersion.

-> Int

The number of frames in the stream, usually from getNumFrames.

-> Word

The maximum number of channels in the stream, usually from getMaxChannels.

-> Maybe Str

getBuildVersion

-> ByteGet Content