Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ClassAttributeMap = ClassAttributeMap {}
- classHasLocation :: Str -> Bool
- classHasRotation :: Str -> Bool
- getAttributeIdLimit :: Map U32 U32 -> Maybe Word
- getAttributeMap :: ClassAttributeMap -> Map CompressedWord U32 -> CompressedWord -> Maybe (Map U32 U32)
- getAttributeName :: ClassAttributeMap -> Map U32 U32 -> CompressedWord -> Maybe Str
- getClassName :: Str -> Maybe Str
- getName :: IntMap Str -> U32 -> Maybe Str
- getObjectName :: Map U32 Str -> U32 -> Maybe Str
- make :: List Str -> List ClassMapping -> List Cache -> List Str -> ClassAttributeMap
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
.
Instances
Eq ClassAttributeMap Source # | |
Defined in Rattletrap.Type.ClassAttributeMap (==) :: ClassAttributeMap -> ClassAttributeMap -> Bool # (/=) :: ClassAttributeMap -> ClassAttributeMap -> Bool # | |
Show ClassAttributeMap Source # | |
Defined in Rattletrap.Type.ClassAttributeMap showsPrec :: Int -> ClassAttributeMap -> ShowS # show :: ClassAttributeMap -> String # showList :: [ClassAttributeMap] -> ShowS # |
classHasLocation :: Str -> Bool Source #
classHasRotation :: Str -> Bool Source #
getAttributeMap :: ClassAttributeMap -> Map CompressedWord U32 -> CompressedWord -> Maybe (Map U32 U32) Source #
getAttributeName :: ClassAttributeMap -> Map U32 U32 -> CompressedWord -> Maybe Str Source #
:: List Str | From |
-> List ClassMapping | From |
-> List Cache | From |
-> List Str | From |
-> ClassAttributeMap |
Makes a ClassAttributeMap
given the necessary fields from the
Content
.