summaryrefslogtreecommitdiff
path: root/haskell/src/SpaceTraders/Model/Agent.hs
blob: a03d47fb5549eed40deb5304415c212c18cf7e5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric  #-}

module SpaceTraders.Model.Agent
  ( Agent(..)
  ) where

import           Data.Aeson
import qualified Data.Text    as T
import           GHC.Generics

data Agent = Agent { accountId       :: T.Text
                   , credits         :: Integer
                   --, faction :: Faction
                   , headquarters    :: T.Text
                   , startingFaction :: T.Text
                   , symbol          :: T.Text
                   } deriving (Eq, FromJSON, Generic, Show, ToJSON)