module Rattletrap.Decode.LoadoutsAttribute
  ( decodeLoadoutsAttributeBits
  )
where

import Rattletrap.Decode.Common
import Rattletrap.Decode.LoadoutAttribute
import Rattletrap.Type.LoadoutsAttribute

decodeLoadoutsAttributeBits :: DecodeBits LoadoutsAttribute
decodeLoadoutsAttributeBits :: DecodeBits LoadoutsAttribute
decodeLoadoutsAttributeBits =
  LoadoutAttribute -> LoadoutAttribute -> LoadoutsAttribute
LoadoutsAttribute
    (LoadoutAttribute -> LoadoutAttribute -> LoadoutsAttribute)
-> BitGet LoadoutAttribute
-> BitGet (LoadoutAttribute -> LoadoutsAttribute)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> BitGet LoadoutAttribute
decodeLoadoutAttributeBits
    BitGet (LoadoutAttribute -> LoadoutsAttribute)
-> BitGet LoadoutAttribute -> DecodeBits LoadoutsAttribute
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> BitGet LoadoutAttribute
decodeLoadoutAttributeBits