octane-0.13.0: Parse Rocket League replays.

Safe HaskellNone
LanguageHaskell2010

Octane.Type.KeyFrame

Synopsis

Documentation

data KeyFrame Source #

A key frame.

Instances

Eq KeyFrame Source # 
Show KeyFrame Source # 
Generic KeyFrame Source # 

Associated Types

type Rep KeyFrame :: * -> * #

Methods

from :: KeyFrame -> Rep KeyFrame x #

to :: Rep KeyFrame x -> KeyFrame #

Binary KeyFrame Source #

Stored with the fields one after the other in order.

>>> Binary.decode "\x00\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00" :: KeyFrame
KeyFrame {time = 0.0, frame = 0x00000001, position = 0x00000002}
>>> Binary.encode (KeyFrame { time = 0, frame = 1, position = 2 })
"\NUL\NUL\NUL\NUL\SOH\NUL\NUL\NUL\STX\NUL\NUL\NUL"

Methods

put :: KeyFrame -> Put #

get :: Get KeyFrame #

putList :: [KeyFrame] -> Put #

NFData KeyFrame Source # 

Methods

rnf :: KeyFrame -> () #

type Rep KeyFrame Source #