match_to

package
Version: v0.0.0-...-b7eb296 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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 Action

type Action struct {
	ActionType string     `json:"actionType"`
	GrpId      int        `json:"grpId"`
	InstanceId int        `json:"instanceId"`
	Grouping   string     `json:"grouping"`
	ManaCost   []ManaCost `json:"manaCost"`
	ShouldStop bool       `json:"shouldStop"`
}

type ActionSeat

type ActionSeat struct {
	SeatId int    `json:"seatId"`
	Action Action `json:"action"`
}

type ActionsAvailableReq

type ActionsAvailableReq struct {
	Actions []Action `json:"actions"`
}

type Annotation

type Annotation struct {
	Id          int      `json:"id"`
	AffectorId  int      `json:"affectorId"`
	AffectedIds []int    `json:"affectedIds"`
	Type        []string `json:"type"`
}

type Attacker

type Attacker struct {
	AttackerInstanceId      int                `json:"attackerInstanceId"`
	LegalDamageRecipients   []DamageRecipients `json:"legalDamageRecipients"`
	SelectedDamageRecipient DamageRecipients   `json:"selectedDamageRecipient"`
}

type AuthenticateResponse

type AuthenticateResponse struct {
	ClientId   string `json:"clientId"`
	ScreenName string `json:"screenName"`
	SessionId  string `json:"sessionId"`
}

type CheckpointConfiguration

type CheckpointConfiguration struct {
}

type ClipsConfiguration

type ClipsConfiguration struct {
}

type ConnectResp

type ConnectResp struct {
	Status      string      `json:"status"`
	MajorVer    int         `json:"majorVer"`
	RevisionVer int         `json:"revisionVer"`
	BuildVer    int         `json:"buildVer"`
	ProtoVer    string      `json:"protoVer"`
	Settings    Settings    `json:"settings"`
	DeckMessage DeckMessage `json:"deckMessage"`
}

type ConnectionInfo

type ConnectionInfo struct {
	ConnectionState string `json:"connectionState"`
}

type DamageRecipients

type DamageRecipients struct {
	Type               string `json:"type"`
	PlayerSystemSeatId int    `json:"playerSystemSeatId"`
}

type DeckConstraintInfo

type DeckConstraintInfo struct {
	MinDeckSize      int `json:"minDeckSize"`
	MaxDeckSize      int `json:"maxDeckSize"`
	MaxSideboardSize int `json:"maxSideboardSize"`
}

type DeckMessage

type DeckMessage struct {
	DeckCards      []int `json:"deckCards"`
	SideboardCards []int `json:"sideboardCards"`
}

type DeclareAttackersReq

type DeclareAttackersReq struct {
	Attackers []Attacker `json:"attackers"`
}

type DieRoll

type DieRoll struct {
	SystemSeatId int `json:"systemSeatId"`
	RollValue    int `json:"rollValue"`
}

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 GameStateRedactorConfiguration

type GameStateRedactorConfiguration struct {
	EnableRedaction bool `json:"enableRedaction"`
	EnableForceDiff bool `json:"enableForceDiff"`
}

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 IntermissionReq struct {
	Options            []Option `json:"options"`
	IntermissionPrompt Prompt   `json:"intermissionPrompt"`
	GameResultType     string   `json:"gameResultType"`
	WinningTeamId      int      `json:"winningTeamId"`
	Result             Result   `json:"result"`
}

type ManaCost

type ManaCost struct {
	Color  []string `json:"color"`
	Count  int      `json:"count"`
	CostId int      `json:"costId"`
}

type MatchConfig

type MatchConfig struct {
}

type MulliganReq

type MulliganReq struct {
	MulliganType string `json:"mulligan_type"`
}

type OnHover

type OnHover struct {
	ObjectId int `json:"objectId"`
}

type Option

type Option struct {
	OptionPrompt Prompt `json:"optionPrompt"`
	ResponseType string `json:"responseType"`
}

type Parameters

type Parameters struct {
	ParameterName string    `json:"parameterName"`
	Type          string    `json:"type"`
	NumberValue   int       `json:"numberValue"`
	Reference     Reference `json:"reference"`
}

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 PlayerInfo struct {
	UserId       string `json:"userId"`
	SystemSeatId int    `json:"systemSeatId"`
}

type Prompt

type Prompt struct {
	PromptId   int          `json:"promptId"`
	Parameters []Parameters `json:"parameters"`
}

type Reference

type Reference struct {
	Type string `json:"type"`
	Id   int    `json:"id"`
}

type ReservedPlayer

type ReservedPlayer struct {
	UserId         string         `json:"userId"`
	PlayerName     string         `json:"playerName"`
	SystemSeatId   int            `json:"systemSeatId"`
	TeamId         int            `json:"teamId"`
	ConnectionInfo ConnectionInfo `json:"connectionInfo"`
	CourseId       string         `json:"courseId"`
}

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 Result

type Result struct {
	Scope         string `json:"scope"`
	Result        string `json:"result"`
	WinningTeamId int    `json:"winningTeamId"`
	Reason        string `json:"reason"`
}

type ResultInfo

type ResultInfo struct {
	Scope         string `json:"scope"`
	Result        string `json:"result"`
	WinningTeamId int    `json:"winningTeamId"`
}

type RoomStateChange

type RoomStateChange struct {
	GameRoomInfo GameRoomInfo `json:"gameRoomInfo"`
}

type Select

type Select struct {
	Targets  []Target `json:"targets"`
	SourceId int      `json:"source_id"`
}

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 Stop

type Stop struct {
	StopType  string `json:"stopType"`
	AppliesTo string `json:"appliesTo"`
	Status    string `json:"status"`
}

type Submit

type Submit struct {
	Result string `json:"result"`
}

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 TargetTarget struct {
	TargetInstanceId int    `json:"targetInstanceId"`
	LegalAction      string `json:"legal_action"`
	Highlight        int    `json:"highlight"`
}

type Team

type Team struct {
	Id        int   `json:"id"`
	PlayerIds []int `json:"playerIds"`
}

type Timer

type Timer struct {
	TimerId             int    `json:"timerId"`
	Type                string `json:"type"`
	DurationSec         int    `json:"durationSec"`
	Running             bool   `json:"running"`
	Behavior            string `json:"behavior"`
	WarningThresholdSec int    `json:"warningThresholdSec"`
	ElapsedMs           int    `json:"elapsedMs"`
}

type TimerStateMessage

type TimerStateMessage struct {
	SeatId int     `json:"seatId"`
	Timers []Timer `json:"timers"`
}

type TurnInfo

type TurnInfo struct {
	ActivePlayer   int `json:"activePlayer"`
	DecisionPlayer int `json:"decisionPlayer"`
}

type UiMessage

type UiMessage struct {
	SeatIds []int   `json:"seatIds"`
	OnHover OnHover `json:"onHover"`
}

type Value

type Value struct {
	Value int `json:"value"`
}

type Zone

type Zone struct {
	ZoneId            int    `json:"zoneId"`
	Type              string `json:"type"`
	Visibility        string `json:"visibility"`
	OwnerSeatId       int    `json:"ownerSeatId"`
	ObjectInstanceIds []int  `json:"objectInstanceIds"`
	Viewers           []int  `json:"viewers"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL