octane-0.13.1: Parse Rocket League replays.

Safe HaskellNone
LanguageHaskell2010

Octane.Type.Mark

Synopsis

Documentation

data Mark Source #

A tick mark on the replay. Both goals and saves make tick marks.

Constructors

Mark Text Word32 

Instances

Eq Mark Source # 

Methods

(==) :: Mark -> Mark -> Bool #

(/=) :: Mark -> Mark -> Bool #

Show Mark Source # 

Methods

showsPrec :: Int -> Mark -> ShowS #

show :: Mark -> String #

showList :: [Mark] -> ShowS #

Generic Mark Source # 

Associated Types

type Rep Mark :: * -> * #

Methods

from :: Mark -> Rep Mark x #

to :: Rep Mark x -> Mark #

Binary Mark Source #

Fields are stored one after the other in order.

>>> Binary.decode "\x02\x00\x00\x00\x4b\x00\x01\x00\x00\x00" :: Mark
Mark {label = "K", frame = 0x00000001}
>>> Binary.encode (Mark "K" 1)
"\STX\NUL\NUL\NULK\NUL\SOH\NUL\NUL\NUL"

Methods

put :: Mark -> Put #

get :: Get Mark #

putList :: [Mark] -> Put #

NFData Mark Source # 

Methods

rnf :: Mark -> () #

type Rep Mark Source # 
type Rep Mark = D1 (MetaData "Mark" "Octane.Type.Mark" "octane-0.13.1-LDgcSqYqu1AFVuudsUsa9X" False) (C1 (MetaCons "Mark" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "label") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "frame") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Word32))))