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

Rattletrap.Type.ClassAttributeMap

Synopsis

Documentation

data ClassAttributeMap Source #

This data structure holds all the information about classes, objects, and attributes in the replay. The class hierarchy is not fixed; it is encoded in the Content. Similarly, the attributes that belong to each class are not fixed either. Converting the raw data into a usable structure is tedious; see make.

Constructors

ClassAttributeMap 

Fields

type Bimap l r = (Map l r, Map r l) Source #

bimap :: (Ord l, Ord r) => [(l, r)] -> Bimap l r Source #

lookupL :: Ord l => l -> Bimap l r -> Maybe r Source #

lookupR :: Ord r => r -> Bimap l r -> Maybe l Source #

make Source #

Makes a ClassAttributeMap given the necessary fields from the Content.