Documentation ¶
Index ¶
Constants ¶
View Source
const ( TimeDay = "day" TimeNight = "night" )
View Source
const ( Awoo = "awoo" Role = "role" PlayerList = "playerlist" Roleset = "roleset" RolesetList = "rolesetlist" GameState = "gamestate" Phase = "phase" Leader = "leader" PleaseWait = "pleasewait" // they're in the lobby CanNotJoin = "cannotjoin" Tally = "tally" Targeted = "targeted" Victory = "victory" Private = "privatemessage" Dead = "dead" Error = "error" Reset = "reset" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientMessage ¶
type ClientMessage struct { JoinName string `json:"joinWithName"` PollPlayerList bool `json:"pollPlayerList"` PollTally bool `json:"pollTally"` Vote string `json:"voteFor"` Time string `json:"time"` Roleset string `json:"setRoleset"` FetchRolesets bool `json:"fetchRolesets"` Reset bool `json:"resetGame"` }
func Decode ¶
func Decode(raw []byte) *ClientMessage
Click to show internal directories.
Click to hide internal directories.