Documentation ¶
Index ¶
- Constants
- type Action
- type ActionSeat
- type ActionsAvailableReq
- type Annotation
- type Attacker
- type AuthenticateResponse
- type CheckpointConfiguration
- type ClipsConfiguration
- type ConnectResp
- type ConnectionInfo
- type DamageRecipients
- type DeckConstraintInfo
- type DeckMessage
- type DeclareAttackersReq
- type DieRoll
- type DieRollResultsResp
- type FinalMatchResult
- type GameInfo
- type GameObject
- type GameRoomConfig
- type GameRoomInfo
- type GameStateMessage
- type GameStateRedactorConfiguration
- type GreConfig
- type GreToClientEvent
- type IntermissionReq
- type ManaCost
- type MatchConfig
- type MulliganReq
- type OnHover
- type Option
- type Parameters
- type Player
- type PlayerInfo
- type Prompt
- type Reference
- type ReservedPlayer
- type Response
- type Result
- type ResultInfo
- type RoomStateChange
- type Select
- type Settings
- type Stop
- type Submit
- type Target
- type TargetTarget
- type Team
- type Timer
- type TimerStateMessage
- type TurnInfo
- type UiMessage
- type Value
- type Zone
Constants ¶
View Source
const ( AuthenticateResponseMethod thread.LogMethod = "AuthenticateResponse" GreToClientEventMethod thread.LogMethod = "GreToClientEvent" MatchGameRoomStateChangedEventMethod thread.LogMethod = "MatchGameRoomStateChangedEvent" GreConnectRespMethod thread.LogMethod = "GREMessageType_ConnectResp" GreDieRollResultsRespMethod thread.LogMethod = "GREMessageType_DieRollResultsResp" GreGameStateMessageMethodMethod thread.LogMethod = "GREMessageType_GameStateMessage" GreQueuedGameStateMessageMethod thread.LogMethod = "GREMessageType_QueuedGameStateMessage" GreGetSettingsRespMethod thread.LogMethod = "GREMessageType_GetSettingsResp" GreSetSettingsRespMethod thread.LogMethod = "GREMessageType_SetSettingsResp" GrePromptReqMethod thread.LogMethod = "GREMessageType_PromptReq" GreMulliganReqMethod thread.LogMethod = "GREMessageType_MulliganReq" GreTimerStateMessageMethod thread.LogMethod = "GREMessageType_TimerStateMessage" GreUIMessageMethod thread.LogMethod = "GREMessageType_UIMessage" GreActionsAvailableReqMethod thread.LogMethod = "GREMessageType_ActionsAvailableReq" GreDeclareAttackersReMethod thread.LogMethod = "GREMessageType_DeclareAttackersReq" GreSubmitAttackersRespMethod thread.LogMethod = "GREMessageType_SubmitAttackersResp" GreSubmitTargetsRespMethod thread.LogMethod = "GREMessageType_SubmitTargetsResp" GreSelectTargetsReqMethod thread.LogMethod = "GREMessageType_SelectTargetsReq" GreIntermissionReqMethod thread.LogMethod = "GREMessageType_IntermissionReq" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionSeat ¶
type ActionsAvailableReq ¶
type ActionsAvailableReq struct {
Actions []Action `json:"actions"`
}
type Annotation ¶
type Attacker ¶
type Attacker struct { AttackerInstanceId int `json:"attackerInstanceId"` LegalDamageRecipients []DamageRecipients `json:"legalDamageRecipients"` SelectedDamageRecipient DamageRecipients `json:"selectedDamageRecipient"` }
type AuthenticateResponse ¶
type CheckpointConfiguration ¶
type CheckpointConfiguration struct { }
type ClipsConfiguration ¶
type ClipsConfiguration struct { }
type ConnectResp ¶
type ConnectionInfo ¶
type ConnectionInfo struct {
ConnectionState string `json:"connectionState"`
}
type DamageRecipients ¶
type DeckConstraintInfo ¶
type DeckMessage ¶
type DeclareAttackersReq ¶
type DeclareAttackersReq struct {
Attackers []Attacker `json:"attackers"`
}
type DieRollResultsResp ¶
type DieRollResultsResp struct {
PlayerDieRolls []DieRoll `json:"playerDieRolls"`
}
type FinalMatchResult ¶
type FinalMatchResult struct { MatchId string `json:"matchId"` MatchCompletedReason string `json:"matchCompletedReason"` ResultList []ResultInfo `json:"resultList"` }
type GameInfo ¶
type GameInfo struct { MatchID string `json:"matchID"` GameNumber int `json:"gameNumber"` Stage string `json:"stage"` Type string `json:"type"` Variant string `json:"variant"` MatchState string `json:"matchState"` MatchWinCondition string `json:"matchWinCondition"` MaxTimeoutCount int `json:"maxTimeoutCount"` MaxPipCount int `json:"maxPipCount"` TimeoutDurationSec int `json:"timeoutDurationSec"` SuperFormat string `json:"superFormat"` MulliganType string `json:"mulliganType"` DeckConstraintInfo DeckConstraintInfo `json:"deckConstraintInfo"` }
type GameObject ¶
type GameObject struct { InstanceId int `json:"instanceId"` GrpId int `json:"grpId"` Type string `json:"type"` ZoneId int `json:"zoneId"` Visibility string `json:"visibility"` OwnerSeatId int `json:"ownerSeatId"` ControllerSeatId int `json:"controllerSeatId"` SuperTypes []string `json:"superTypes"` CardTypes []string `json:"cardTypes"` Subtypes []string `json:"subtypes"` Color []string `json:"color"` Power Value `json:"power"` Toughness Value `json:"toughness"` Viewers []int `json:"viewers"` Name int `json:"name"` Abilities []int `json:"abilities"` OverlayGrpId int `json:"overlayGrpId"` }
type GameRoomConfig ¶
type GameRoomConfig struct { EventId string `json:"eventId"` ReservedPlayers []ReservedPlayer `json:"reservedPlayers"` MatchId string `json:"matchId"` MatchConfig MatchConfig `json:"matchConfig"` GreConfig GreConfig `json:"greConfig"` GreHostLoggerLevel string `json:"greHostLoggerLevel"` JoinRoomTimeoutSecs int `json:"joinRoomTimeoutSecs"` PlayerDisconnectTimeoutSecs int `json:"playerDisconnectTimeoutSecs"` }
type GameRoomInfo ¶
type GameRoomInfo struct { GameRoomConfig GameRoomConfig `json:"gameRoomConfig"` StateType string `json:"stateType"` Players []PlayerInfo `json:"players"` FinalMatchResult *FinalMatchResult `json:"finalMatchResult"` }
type GameStateMessage ¶
type GameStateMessage struct { Type string `json:"type"` GameStateId int `json:"gameStateId"` GameInfo GameInfo `json:"gameInfo"` Teams []Team `json:"teams"` Players []Player `json:"players"` TurnInfo TurnInfo `json:"turnInfo"` Zones []Zone `json:"zones"` GameObjects []GameObject `json:"gameObjects"` Annotations []Annotation `json:"annotations"` DiffDeletedInstanceIds []int `json:"diffDeletedInstanceIds"` PrevGameStateId int `json:"prevGameStateId"` Timers []Timer `json:"timers"` Update string `json:"update"` Actions []Action `json:"actions"` }
type GreConfig ¶
type GreConfig struct { GameStateRedactorConfiguration GameStateRedactorConfiguration `json:"gameStateRedactorConfiguration"` ClipsConfiguration ClipsConfiguration `json:"clipsConfiguration"` CheckpointConfiguration CheckpointConfiguration `json:"checkpointConfiguration"` }
type GreToClientEvent ¶
type GreToClientEvent struct {
GreToClientMessages []Response `json:"greToClientMessages"`
}
type IntermissionReq ¶
type MatchConfig ¶
type MatchConfig struct { }
type MulliganReq ¶
type MulliganReq struct {
MulliganType string `json:"mulligan_type"`
}
type Parameters ¶
type Player ¶
type Player struct { LifeTotal int `json:"lifeTotal"` SystemSeatNumber int `json:"systemSeatNumber"` MaxHandSize int `json:"maxHandSize"` TeamId int `json:"teamId"` TimerIds []int `json:"timerIds"` ControllerSeatId int `json:"controllerSeatId"` ControllerType string `json:"controllerType"` PendingMessageType string `json:"pendingMessageType"` }
type PlayerInfo ¶
type Prompt ¶
type Prompt struct { PromptId int `json:"promptId"` Parameters []Parameters `json:"parameters"` }
type ReservedPlayer ¶
type Response ¶
type Response struct { Type thread.LogMethod `json:"type"` SystemSeatIds []int `json:"systemSeatIds"` MsgId int `json:"msgId"` GameStateId int `json:"gameStateId"` ConnectResp *ConnectResp `json:"connectResp"` DieRollResultsResp *DieRollResultsResp `json:"dieRollResultsResp"` GameStateMessage *GameStateMessage `json:"gameStateMessage"` GetSettingsResp *Settings `json:"getSettingsResp"` SetSettingsResp *Settings `json:"setSettingsResp"` Prompt *Prompt `json:"prompt"` MulliganReq *MulliganReq `json:"mulliganReq"` NonDecisionPlayerPrompt *Prompt `json:"nonDecisionPlayerPrompt"` TimerStateMessage *TimerStateMessage `json:"timerStateMessage"` UiMessage *UiMessage `json:"uiMessage"` ActionsAvailableReq *ActionsAvailableReq `json:"actionsAvailableReq"` DeclareAttackersReq *DeclareAttackersReq `json:"declareAttackersReq"` SubmitTargetsResp *Submit `json:"submitTargetsResp"` SubmitAttackersResp *Submit `json:"submitAttackersResp"` SelectTargetsReq *Select `json:"selectTargetsReq"` AllowCancel *string `json:"allow_cancel"` AllowUndo *bool `json:"allow_undo"` IntermissionReq *IntermissionReq `json:"intermissionReq"` }
type ResultInfo ¶
type RoomStateChange ¶
type RoomStateChange struct {
GameRoomInfo GameRoomInfo `json:"gameRoomInfo"`
}
type Settings ¶
type Settings struct { Stops []Stop `json:"stops"` AutoPassOption string `json:"autoPassOption"` GraveyardOrder string `json:"graveyardOrder"` ManaSelectionType string `json:"manaSelectionType"` DefaultAutoPassOption string `json:"defaultAutoPassOption"` SmartStopsSetting string `json:"smartStopsSetting"` AutoTapStopsSetting string `json:"autoTapStopsSetting"` AutoOptionalPaymentCancellationSetting string `json:"autoOptionalPaymentCancellationSetting"` TransientStops []Stop `json:"transientStops"` }
type Target ¶
type Target struct { TargetIdx int `json:"target_idx"` Targets []TargetTarget `json:"targets"` MinTargets int `json:"minTargets"` MaxTargets int `json:"maxTargets"` Prompt Prompt `json:"prompt"` }
type TargetTarget ¶
type TimerStateMessage ¶
Click to show internal directories.
Click to hide internal directories.