packages feed

rattletrap-4.0.0: library/Rattletrap/Decode/AppliedDamageAttribute.hs

module Rattletrap.Decode.AppliedDamageAttribute
  ( decodeAppliedDamageAttributeBits
  ) where

import Rattletrap.Decode.Common
import Rattletrap.Decode.Int32le
import Rattletrap.Decode.Vector
import Rattletrap.Decode.Word8le
import Rattletrap.Type.AppliedDamageAttribute

decodeAppliedDamageAttributeBits :: DecodeBits AppliedDamageAttribute
decodeAppliedDamageAttributeBits =
  AppliedDamageAttribute
    <$> decodeWord8leBits
    <*> decodeVectorBits
    <*> decodeInt32leBits
    <*> decodeInt32leBits