--- a/gameServer/CoreTypes.hs Sun Sep 22 18:34:53 2013 +0300
+++ b/gameServer/CoreTypes.hs Wed Sep 25 05:42:16 2013 +0300
@@ -76,6 +76,8 @@
| CheckFailed B.ByteString
| CheckSuccess [B.ByteString]
| Random [ClientChan] [B.ByteString]
+ | QueryReplay B.ByteString
+ | ShowReplay B.ByteString
type ClientChan = Chan [B.ByteString]
@@ -106,6 +108,7 @@
isInGame :: Bool,
isAdministrator :: Bool,
isChecker :: Bool,
+ isContributor :: Bool,
isKickedFromServer :: Bool,
isJoinedMidGame :: Bool,
clientClan :: !(Maybe B.ByteString),
@@ -254,15 +257,18 @@
[]
data AccountInfo =
- HasAccount B.ByteString Bool
+ HasAccount B.ByteString Bool Bool
| Guest
| Admin
+ | ReplayName B.ByteString
deriving (Show, Read)
data DBQuery =
CheckAccount ClientIndex Int B.ByteString B.ByteString
| ClearCache
| SendStats Int Int
+ | StoreAchievements B.ByteString [(B.ByteString, B.ByteString)] [B.ByteString]
+ | GetReplayName ClientIndex Int B.ByteString
deriving (Show, Read)
data CoreMessage =