Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data ClassAttributeMap = ClassAttributeMap {}
- makeClassAttributeMap :: List Text -> List ClassMapping -> List Cache -> List Text -> ClassAttributeMap
- makeNameMap :: List Text -> IntMap Text
- getName :: IntMap Text -> Word32 -> Maybe Text
- makeObjectClassMap :: Map Word32 Text -> Bimap Word32 Text -> Map Word32 Word32
- getClassId :: Map Word32 Text -> Bimap Word32 Text -> Word32 -> Maybe Word32
- makeClassCache :: Bimap Word32 Text -> List Cache -> [(Maybe Text, Word32, Word32, Word32)]
- makeClassMap :: List ClassMapping -> Bimap Word32 Text
- makeAttributeMap :: List Cache -> Map Word32 (Map Word32 Word32)
- makeShallowParentMap :: [(Maybe Text, Word32, Word32, Word32)] -> Map Word32 Word32
- makeParentMap :: [(Maybe Text, Word32, Word32, Word32)] -> Map Word32 [Word32]
- getParentClasses :: Map Word32 Word32 -> Word32 -> [Word32]
- getParentClass :: Maybe Text -> Word32 -> [(Maybe Text, Word32, Word32, Word32)] -> Maybe Word32
- getParentClassById :: Word32 -> [(Maybe Text, Word32, Word32, Word32)] -> Maybe Word32
- getParentClassByName :: Text -> Word32 -> [(Maybe Text, Word32, Word32, Word32)] -> Maybe Word32
- parentClasses :: Map Text Text
- makeObjectMap :: List Text -> Map Word32 Text
- getObjectName :: Map Word32 Text -> Word32 -> Maybe Text
- getClassName :: Text -> Maybe Text
- normalizeObjectName :: Text -> Text
- objectClasses :: Map Text Text
- classHasLocation :: Text -> Bool
- classesWithLocation :: Set Text
- classHasRotation :: Text -> Bool
- classesWithRotation :: Set Text
- getAttributeIdLimit :: Map Word32 Word32 -> Maybe Word
- getAttributeName :: ClassAttributeMap -> Map Word32 Word32 -> CompressedWord -> Maybe Text
- getAttributeMap :: ClassAttributeMap -> ActorMap -> CompressedWord -> Maybe (Map Word32 Word32)
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 makeClassAttributeMap
.
ClassAttributeMap | |
|
makeClassAttributeMap Source #
:: List Text | From |
-> List ClassMapping | From |
-> List Cache | From |
-> List Text | From |
-> ClassAttributeMap |
Makes a ClassAttributeMap
given the necessary fields from the
Content
.
makeClassCache :: Bimap Word32 Text -> List Cache -> [(Maybe Text, Word32, Word32, Word32)] Source #
makeClassMap :: List ClassMapping -> Bimap Word32 Text Source #
getParentClass :: Maybe Text -> Word32 -> [(Maybe Text, Word32, Word32, Word32)] -> Maybe Word32 Source #
getParentClassByName :: Text -> Word32 -> [(Maybe Text, Word32, Word32, Word32)] -> Maybe Word32 Source #
normalizeObjectName :: Text -> Text Source #
classHasLocation :: Text -> Bool Source #
classHasRotation :: Text -> Bool Source #
getAttributeName :: ClassAttributeMap -> Map Word32 Word32 -> CompressedWord -> Maybe Text Source #
getAttributeMap :: ClassAttributeMap -> ActorMap -> CompressedWord -> Maybe (Map Word32 Word32) Source #