| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Mischief.Animation.Spritesheet
Documentation
data Spritesheet Source #
Constructors
| Spritesheet | |
Instances
sheetCoords :: Int -> Spritesheet -> (V2 Int, V2 Int) Source #
data AnimationFrames Source #
Constructors
| RangedFrames Int Int | |
| ManualFrames [Int] |
Instances
| Show AnimationFrames Source # | |
Defined in Mischief.Animation.Spritesheet Methods showsPrec :: Int -> AnimationFrames -> ShowS # show :: AnimationFrames -> String # showList :: [AnimationFrames] -> ShowS # | |
data AnimationTime Source #
Instances
| Show AnimationTime Source # | |
Defined in Mischief.Animation.Spritesheet Methods showsPrec :: Int -> AnimationTime -> ShowS # show :: AnimationTime -> String # showList :: [AnimationTime] -> ShowS # | |
Constructors
| Animation | |
Fields
| |
Instances
| Show Animation Source # | |||||||||
| Asset Animation Source # | |||||||||
Defined in Mischief.Animation.Spritesheet Associated Types
| |||||||||
| KdlAsset Animation Source # | |||||||||
Defined in Mischief.Animation.Spritesheet Methods decodeKdl :: RelativePath -> NodeDecoder Animation # | |||||||||
| Component Animation Source # | |||||||||
Defined in Mischief.Animation.Spritesheet Associated Types
| |||||||||
| type Loadable Animation Source # | |||||||||
Defined in Mischief.Animation.Spritesheet | |||||||||
| type Saveable Animation Source # | |||||||||
Defined in Mischief.Animation.Spritesheet | |||||||||
| type IsExclusiveRel Animation Source # | |||||||||
Defined in Mischief.Animation.Spritesheet | |||||||||
animFrameIndex :: Int -> AnimationFrames -> Maybe Int Source #
animFrameCoords :: Int -> Animation -> System (Maybe SpriteSlice) Source #
qanimFrameCoords :: Int -> Animation -> Query System (Maybe SpriteSlice) Source #