rattletrap-4.0.0: library/Rattletrap/Type/KeyFrame.hs
{-# LANGUAGE TemplateHaskell #-}
module Rattletrap.Type.KeyFrame
( KeyFrame(..)
) where
import Rattletrap.Type.Common
import Rattletrap.Type.Float32le
import Rattletrap.Type.Word32le
data KeyFrame = KeyFrame
{ keyFrameTime :: Float32le
-- ^ When this key frame occurs, in seconds.
, keyFrameFrame :: Word32le
-- ^ The frame number of this key frame, starting from 0.
, keyFramePosition :: Word32le
-- ^ The bit position of this key frame in the stream.
} deriving (Eq, Ord, Show)
$(deriveJson ''KeyFrame)