octane-0.13.4: Parse Rocket League replays.

Safe HaskellNone
LanguageHaskell2010

Octane.Utility.ClassPropertyMap

Description

This module is responsible for building the class property map, which maps class IDs to a map of property IDs to property names. This map is the cornerstone of the replay stream parser.

Synopsis

Documentation

getClassPropertyMap :: ReplayWithoutFrames -> IntMap (IntMap Text) Source #

The class property map is a map from class IDs in the stream to a map from property IDs in the stream to property names.

getPropertyMap :: ReplayWithoutFrames -> IntMap Text Source #

The property map is a mapping from property IDs to property names.

getActorMap :: ReplayWithoutFrames -> Map Text Int Source #

The actor map is a mapping from class names to their IDs.

getClass Source #

Arguments

:: Monad m 
=> IntMap Text

Property ID to property name

-> Map Text Text

Property name to class name

-> Map Text Int

Class name to class ID

-> Int

property ID

-> m (Int, Text)

Maybe class ID and class name

Gets the class ID and name for a given property ID.