Versions in this module Expand all Collapse all v0 v0.5.0 Aug 27, 2019 Changes in this version + var ActionType_name = map[int32]string + var ActionType_value = map[string]int32 + var Arm_name = map[int32]string + var Arm_value = map[string]int32 + var BattlefieldPosition_name = map[int32]string + var BattlefieldPosition_value = map[string]int32 + var CommandRating_name = map[int32]string + var CommandRating_value = map[string]int32 + var Drill_name = map[int32]string + var Drill_value = map[string]int32 + var Formation_name = map[int32]string + var Formation_value = map[string]int32 + var MapSide_name = map[int32]string + var MapSide_value = map[string]int32 + var MoraleState_name = map[int32]string + var MoraleState_value = map[string]int32 + var Nationality_name = map[int32]string + var Nationality_value = map[string]int32 + var Order_name = map[int32]string + var Order_value = map[string]int32 + var Phase_name = map[int32]string + var Phase_value = map[string]int32 + var Rank_name = map[int32]string + var Rank_value = map[string]int32 + var SkirmishRating_name = map[int32]string + var SkirmishRating_value = map[string]int32 + var UnitGrade_name = map[int32]string + var UnitGrade_value = map[string]int32 + var UnitType_name = map[int32]string + var UnitType_value = map[string]int32 + func RegisterGameServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterGameServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GameServiceClient) error + func RegisterGameServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterGameServiceServer(s *grpc.Server, srv GameServiceServer) + type Action struct + Description string + Done bool + Type ActionType + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Action) Descriptor() ([]byte, []int) + func (*Action) ProtoMessage() + func (m *Action) GetDescription() string + func (m *Action) GetDone() bool + func (m *Action) GetType() ActionType + func (m *Action) Reset() + func (m *Action) String() string + func (m *Action) XXX_DiscardUnknown() + func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Action) XXX_Merge(src proto.Message) + func (m *Action) XXX_Size() int + func (m *Action) XXX_Unmarshal(b []byte) error + type ActionType int32 + const ActionType_COMMENT + const ActionType_MUST_TICK + const ActionType_OPTIONAL + func (ActionType) EnumDescriptor() ([]byte, []int) + func (x ActionType) String() string + type Arm int32 + const Arm_ARTILLERY + const Arm_CAVALRY + const Arm_COMMAND + const Arm_INFANTRY + const Arm_SUPPORT + func (Arm) EnumDescriptor() ([]byte, []int) + func (x Arm) String() string + type Arrival struct + ActualArrival *timestamp.Timestamp + ComputedTurn int32 + Contact bool + From int32 + Percent int32 + Position BattlefieldPosition + To int32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Arrival) Descriptor() ([]byte, []int) + func (*Arrival) ProtoMessage() + func (m *Arrival) GetActualArrival() *timestamp.Timestamp + func (m *Arrival) GetComputedTurn() int32 + func (m *Arrival) GetContact() bool + func (m *Arrival) GetFrom() int32 + func (m *Arrival) GetPercent() int32 + func (m *Arrival) GetPosition() BattlefieldPosition + func (m *Arrival) GetTo() int32 + func (m *Arrival) Reset() + func (m *Arrival) String() string + func (m *Arrival) XXX_DiscardUnknown() + func (m *Arrival) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Arrival) XXX_Merge(src proto.Message) + func (m *Arrival) XXX_Size() int + func (m *Arrival) XXX_Unmarshal(b []byte) error + type BattlefieldPosition int32 + const BattlefieldPosition_CENTRE + const BattlefieldPosition_LEFT + const BattlefieldPosition_OFF_BOARD + const BattlefieldPosition_REAR + const BattlefieldPosition_RIGHT + func (BattlefieldPosition) EnumDescriptor() ([]byte, []int) + func (x BattlefieldPosition) String() string + type Command struct + Arm Arm + Arrival *Arrival + CommandRating CommandRating + CommanderBonus int32 + CommanderName string + Drill Drill + GameState *CommandGameState + Grade UnitGrade + History []*CommandGameState + Id int32 + Name string + Nationality Nationality + Notes string + Rank Rank + Reserve bool + Subcommands []*Command + Units []*Unit + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Command) Descriptor() ([]byte, []int) + func (*Command) ProtoMessage() + func (c *Command) AddAction(s string, done bool, t ActionType) + func (c *Command) AddToObjective(x, y int32) []*Grid + func (c *Command) BattleFormation() Formation + func (c *Command) ClearActions() + func (c *Command) ClearOrder() + func (c *Command) GetCommandStrength() CommandStrength + func (c *Command) GetCommandStrengthLabel() string + func (c *Command) LabelString() string + func (c *Command) LongDescription() string + func (c *Command) SetAction(s string, done bool) + func (c *Command) SetObjective(x, y int32) []*Grid + func (c *Command) SetOrder(order Order) bool + func (m *Command) GetArm() Arm + func (m *Command) GetArrival() *Arrival + func (m *Command) GetCommandRating() CommandRating + func (m *Command) GetCommanderBonus() int32 + func (m *Command) GetCommanderName() string + func (m *Command) GetDrill() Drill + func (m *Command) GetGameState() *CommandGameState + func (m *Command) GetGrade() UnitGrade + func (m *Command) GetHistory() []*CommandGameState + func (m *Command) GetId() int32 + func (m *Command) GetName() string + func (m *Command) GetNationality() Nationality + func (m *Command) GetNotes() string + func (m *Command) GetRank() Rank + func (m *Command) GetReserve() bool + func (m *Command) GetSubcommands() []*Command + func (m *Command) GetUnits() []*Unit + func (m *Command) Reset() + func (m *Command) String() string + func (m *Command) XXX_DiscardUnknown() + func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Command) XXX_Merge(src proto.Message) + func (m *Command) XXX_Size() int + func (m *Command) XXX_Unmarshal(b []byte) error + type CommandGameState struct + Actions []*Action + AttachedTo string + Can *UnitAction + Formation Formation + Grid *Grid + Has *UnitAction + Injured bool + Must *UnitAction + Objective []*Grid + ObjectiveName string + Orders Order + PanicState int32 + Position BattlefieldPosition + Timestamp *timestamp.Timestamp + Turn int32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*CommandGameState) Descriptor() ([]byte, []int) + func (*CommandGameState) ProtoMessage() + func (m *CommandGameState) GetActions() []*Action + func (m *CommandGameState) GetAttachedTo() string + func (m *CommandGameState) GetCan() *UnitAction + func (m *CommandGameState) GetFormation() Formation + func (m *CommandGameState) GetGrid() *Grid + func (m *CommandGameState) GetHas() *UnitAction + func (m *CommandGameState) GetInjured() bool + func (m *CommandGameState) GetMust() *UnitAction + func (m *CommandGameState) GetObjective() []*Grid + func (m *CommandGameState) GetObjectiveName() string + func (m *CommandGameState) GetOrders() Order + func (m *CommandGameState) GetPanicState() int32 + func (m *CommandGameState) GetPosition() BattlefieldPosition + func (m *CommandGameState) GetTimestamp() *timestamp.Timestamp + func (m *CommandGameState) GetTurn() int32 + func (m *CommandGameState) Reset() + func (m *CommandGameState) String() string + func (m *CommandGameState) XXX_DiscardUnknown() + func (m *CommandGameState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CommandGameState) XXX_Merge(src proto.Message) + func (m *CommandGameState) XXX_Size() int + func (m *CommandGameState) XXX_Unmarshal(b []byte) error + type CommandRating int32 + const CommandRating_CUMBERSOME + const CommandRating_EFFICIENT + const CommandRating_FUNCTIONAL + const CommandRating_USELESS + func (CommandRating) EnumDescriptor() ([]byte, []int) + func (x CommandRating) String() string + type CommandStrength struct + Cavalry int32 + Guns int32 + Infantry int32 + type Drill int32 + const Drill_LINEAR + const Drill_MASSED + const Drill_RAPID + func (Drill) EnumDescriptor() ([]byte, []int) + func (x Drill) String() string + type EmptyMessage struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*EmptyMessage) Descriptor() ([]byte, []int) + func (*EmptyMessage) ProtoMessage() + func (m *EmptyMessage) Reset() + func (m *EmptyMessage) String() string + func (m *EmptyMessage) XXX_DiscardUnknown() + func (m *EmptyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *EmptyMessage) XXX_Merge(src proto.Message) + func (m *EmptyMessage) XXX_Size() int + func (m *EmptyMessage) XXX_Unmarshal(b []byte) error + type Formation int32 + const Formation_ATTACK_COLUMN + const Formation_CLOSED_COLUMN + const Formation_COLUMN + const Formation_DEBANDE + const Formation_DOUBLE_LINE + const Formation_ECHELON + const Formation_FORTIFIED + const Formation_LINE + const Formation_MARCH_COLUMN + const Formation_RESERVE + const Formation_SUPPORTING_LINES + func (Formation) EnumDescriptor() ([]byte, []int) + func (x Formation) String() string + type Game struct + AdminAccess string + GameTime *timestamp.Timestamp + Name string + Phase Phase + Scenario *Scenario + TableLayout string + TableX int32 + TableY int32 + TurnNumber int32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Game) Descriptor() ([]byte, []int) + func (*Game) ProtoMessage() + func (g *Game) GenerateIDs() + func (g *Game) GetTeam(p *Player) *Team + func (g *Game) GetUnitCommander(id int32) *Command + func (g *Game) InitGameState() + func (m *Game) GetAdminAccess() string + func (m *Game) GetGameTime() *timestamp.Timestamp + func (m *Game) GetName() string + func (m *Game) GetPhase() Phase + func (m *Game) GetScenario() *Scenario + func (m *Game) GetTableLayout() string + func (m *Game) GetTableX() int32 + func (m *Game) GetTableY() int32 + func (m *Game) GetTurnNumber() int32 + func (m *Game) Reset() + func (m *Game) String() string + func (m *Game) XXX_DiscardUnknown() + func (m *Game) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Game) XXX_Merge(src proto.Message) + func (m *Game) XXX_Size() int + func (m *Game) XXX_Unmarshal(b []byte) error + type GameServiceClient interface + GameTime func(ctx context.Context, in *TokenMessage, opts ...grpc.CallOption) (*GameTimeResponse, error) + GetEnemy func(ctx context.Context, in *TokenMessage, opts ...grpc.CallOption) (*Units, error) + GetMap func(ctx context.Context, in *TokenMessage, opts ...grpc.CallOption) (*MapData, error) + GetUnits func(ctx context.Context, in *TokenMessage, opts ...grpc.CallOption) (*Units, error) + Login func(ctx context.Context, in *LoginMessage, opts ...grpc.CallOption) (*LoginResponse, error) + Version func(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*StringMessage, error) + func NewGameServiceClient(cc *grpc.ClientConn) GameServiceClient + type GameServiceServer interface + GameTime func(context.Context, *TokenMessage) (*GameTimeResponse, error) + GetEnemy func(context.Context, *TokenMessage) (*Units, error) + GetMap func(context.Context, *TokenMessage) (*MapData, error) + GetUnits func(context.Context, *TokenMessage) (*Units, error) + Login func(context.Context, *LoginMessage) (*LoginResponse, error) + Version func(context.Context, *EmptyMessage) (*StringMessage, error) + type GameTimeResponse struct + GameTime *timestamp.Timestamp + Phase Phase + StopWatch int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GameTimeResponse) Descriptor() ([]byte, []int) + func (*GameTimeResponse) ProtoMessage() + func (m *GameTimeResponse) GetGameTime() *timestamp.Timestamp + func (m *GameTimeResponse) GetPhase() Phase + func (m *GameTimeResponse) GetStopWatch() int64 + func (m *GameTimeResponse) Reset() + func (m *GameTimeResponse) String() string + func (m *GameTimeResponse) XXX_DiscardUnknown() + func (m *GameTimeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GameTimeResponse) XXX_Merge(src proto.Message) + func (m *GameTimeResponse) XXX_Size() int + func (m *GameTimeResponse) XXX_Unmarshal(b []byte) error + type Grid struct + Bua bool + Cover bool + Fort bool + Woods bool + X int32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + Y int32 + func (*Grid) Descriptor() ([]byte, []int) + func (*Grid) ProtoMessage() + func (m *Grid) GetBua() bool + func (m *Grid) GetCover() bool + func (m *Grid) GetFort() bool + func (m *Grid) GetWoods() bool + func (m *Grid) GetX() int32 + func (m *Grid) GetY() int32 + func (m *Grid) Reset() + func (m *Grid) String() string + func (m *Grid) XXX_DiscardUnknown() + func (m *Grid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Grid) XXX_Merge(src proto.Message) + func (m *Grid) XXX_Size() int + func (m *Grid) XXX_Unmarshal(b []byte) error + type LoginMessage struct + Hash []byte + PlayerCode string + TeamCode string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*LoginMessage) Descriptor() ([]byte, []int) + func (*LoginMessage) ProtoMessage() + func (m *LoginMessage) GetHash() []byte + func (m *LoginMessage) GetPlayerCode() string + func (m *LoginMessage) GetTeamCode() string + func (m *LoginMessage) Reset() + func (m *LoginMessage) String() string + func (m *LoginMessage) XXX_DiscardUnknown() + func (m *LoginMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *LoginMessage) XXX_Merge(src proto.Message) + func (m *LoginMessage) XXX_Size() int + func (m *LoginMessage) XXX_Unmarshal(b []byte) error + type LoginResponse struct + Briefing string + Commanders []string + GameName string + GameTime *timestamp.Timestamp + TeamName string + Token *Token + Welcome string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*LoginResponse) Descriptor() ([]byte, []int) + func (*LoginResponse) ProtoMessage() + func (m *LoginResponse) GetBriefing() string + func (m *LoginResponse) GetCommanders() []string + func (m *LoginResponse) GetGameName() string + func (m *LoginResponse) GetGameTime() *timestamp.Timestamp + func (m *LoginResponse) GetTeamName() string + func (m *LoginResponse) GetToken() *Token + func (m *LoginResponse) GetWelcome() string + func (m *LoginResponse) Reset() + func (m *LoginResponse) String() string + func (m *LoginResponse) XXX_DiscardUnknown() + func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *LoginResponse) XXX_Merge(src proto.Message) + func (m *LoginResponse) XXX_Size() int + func (m *LoginResponse) XXX_Unmarshal(b []byte) error + type MapData struct + Data string + Side MapSide + X int32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + Y int32 + func (*MapData) Descriptor() ([]byte, []int) + func (*MapData) ProtoMessage() + func (m *MapData) GetData() string + func (m *MapData) GetSide() MapSide + func (m *MapData) GetValue(x, y int32) byte + func (m *MapData) GetWaypoints(command *Command) []Waypoint + func (m *MapData) GetX() int32 + func (m *MapData) GetY() int32 + func (m *MapData) Reset() + func (m *MapData) String() string + func (m *MapData) XXX_DiscardUnknown() + func (m *MapData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MapData) XXX_Merge(src proto.Message) + func (m *MapData) XXX_Size() int + func (m *MapData) XXX_Unmarshal(b []byte) error + type MapSide int32 + const MapSide_FRONT + const MapSide_LEFT_FLANK + const MapSide_RIGHT_FLANK + const MapSide_TOP + func (MapSide) EnumDescriptor() ([]byte, []int) + func (x MapSide) String() string + type MoraleState int32 + const MoraleState_DEMORALISED + const MoraleState_GOOD + const MoraleState_RATTLED + const MoraleState_RESTING + const MoraleState_SHAKEN + const MoraleState_UNFORMED + func (MoraleState) EnumDescriptor() ([]byte, []int) + func (x MoraleState) String() string + type Nationality int32 + const Nationality_AFRICAN + const Nationality_AMERICAN + const Nationality_ANY_NATION + const Nationality_AUSTRIAN + const Nationality_BAVARIAN + const Nationality_BELGIAN + const Nationality_BRITISH + const Nationality_COLONIAL + const Nationality_DUTCH + const Nationality_FRENCH + const Nationality_INDIAN + const Nationality_ITALIAN + const Nationality_NASSAU + const Nationality_NATIVE + const Nationality_OTTOMAN + const Nationality_PAPAL_STATES + const Nationality_PERSIAN + const Nationality_PRUSSIAN + const Nationality_RUSSIAN + const Nationality_SPANISH + const Nationality_SWEDEN + const Nationality_SWISS + func (Nationality) EnumDescriptor() ([]byte, []int) + func (x Nationality) String() string + type Order int32 + const Order_ADVANCE + const Order_ATTACK + const Order_CHARGE + const Order_DEFEND + const Order_ENGAGE + const Order_FIRE + const Order_MARCH + const Order_MOVE + const Order_NO_ORDERS + const Order_PURSUIT + const Order_RALLY + const Order_RESTAGE + const Order_WITHDRAW + func (Order) EnumDescriptor() ([]byte, []int) + func (x Order) String() string + type Phase int32 + const Phase_ASSAULT1 + const Phase_ASSAULT2 + const Phase_FIRING1 + const Phase_FIRING2 + const Phase_LEADERS + const Phase_MOVEMENT1 + const Phase_MOVEMENT2 + const Phase_PANIC1 + const Phase_PANIC2 + const Phase_PREGAME + func (Phase) EnumDescriptor() ([]byte, []int) + func (x Phase) String() string + type Player struct + AccessCode string + Commanders []string + Points int32 + Token *Token + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Player) Descriptor() ([]byte, []int) + func (*Player) ProtoMessage() + func (m *Player) GetAccessCode() string + func (m *Player) GetCommanders() []string + func (m *Player) GetPoints() int32 + func (m *Player) GetToken() *Token + func (m *Player) Reset() + func (m *Player) String() string + func (m *Player) XXX_DiscardUnknown() + func (m *Player) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Player) XXX_Merge(src proto.Message) + func (m *Player) XXX_Size() int + func (m *Player) XXX_Unmarshal(b []byte) error + type Rank int32 + const Rank_ARMY + const Rank_ARTILLERY_DIV + const Rank_BATTALION + const Rank_BATTERY + const Rank_BRIGADE + const Rank_CAVALRY_BDE + const Rank_CAVALRY_DIV + const Rank_CORPS + const Rank_DIVISION + const Rank_GUN_PARK + const Rank_NATIONAL_LEADER + const Rank_WING + func (Rank) EnumDescriptor() ([]byte, []int) + func (x Rank) String() string + type Scenario struct + StartTime *timestamp.Timestamp + Teams map[string]*Team + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Scenario) Descriptor() ([]byte, []int) + func (*Scenario) ProtoMessage() + func (m *Scenario) GetStartTime() *timestamp.Timestamp + func (m *Scenario) GetTeams() map[string]*Team + func (m *Scenario) Reset() + func (m *Scenario) String() string + func (m *Scenario) XXX_DiscardUnknown() + func (m *Scenario) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Scenario) XXX_Merge(src proto.Message) + func (m *Scenario) XXX_Size() int + func (m *Scenario) XXX_Unmarshal(b []byte) error + type SkirmishRating int32 + const SkirmishRating_ADEQUATE + const SkirmishRating_CRACK_SHOT + const SkirmishRating_EXCELLENT + const SkirmishRating_POOR + func (SkirmishRating) EnumDescriptor() ([]byte, []int) + func (x SkirmishRating) Decrement() SkirmishRating + func (x SkirmishRating) Increment() SkirmishRating + func (x SkirmishRating) String() string + type StringMessage struct + Value string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*StringMessage) Descriptor() ([]byte, []int) + func (*StringMessage) ProtoMessage() + func (m *StringMessage) GetValue() string + func (m *StringMessage) Reset() + func (m *StringMessage) String() string + func (m *StringMessage) XXX_DiscardUnknown() + func (m *StringMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *StringMessage) XXX_Merge(src proto.Message) + func (m *StringMessage) XXX_Size() int + func (m *StringMessage) XXX_Unmarshal(b []byte) error + type Team struct + AccessCode string + Briefing string + Commands []*Command + GameName string + Name string + Players []*Player + Side MapSide + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Team) Descriptor() ([]byte, []int) + func (*Team) ProtoMessage() + func (m *Team) GetAccessCode() string + func (m *Team) GetBriefing() string + func (m *Team) GetCommands() []*Command + func (m *Team) GetGameName() string + func (m *Team) GetName() string + func (m *Team) GetPlayers() []*Player + func (m *Team) GetSide() MapSide + func (m *Team) Reset() + func (m *Team) String() string + func (m *Team) XXX_DiscardUnknown() + func (m *Team) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Team) XXX_Merge(src proto.Message) + func (m *Team) XXX_Size() int + func (m *Team) XXX_Unmarshal(b []byte) error + func (t *Team) GetCommandByCommanderName(name string) *Command + func (t *Team) GetCommandByID(id int32) *Command + func (t *Team) GetCommandByName(name string) *Command + type Token struct + Expires *timestamp.Timestamp + Id string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func NewToken() *Token + func (*Token) Descriptor() ([]byte, []int) + func (*Token) ProtoMessage() + func (m *Token) GetExpires() *timestamp.Timestamp + func (m *Token) GetId() string + func (m *Token) Reset() + func (m *Token) String() string + func (m *Token) XXX_DiscardUnknown() + func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Token) XXX_Merge(src proto.Message) + func (m *Token) XXX_Size() int + func (m *Token) XXX_Unmarshal(b []byte) error + type TokenMessage struct + Id string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*TokenMessage) Descriptor() ([]byte, []int) + func (*TokenMessage) ProtoMessage() + func (m *TokenMessage) GetId() string + func (m *TokenMessage) Reset() + func (m *TokenMessage) String() string + func (m *TokenMessage) XXX_DiscardUnknown() + func (m *TokenMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TokenMessage) XXX_Merge(src proto.Message) + func (m *TokenMessage) XXX_Size() int + func (m *TokenMessage) XXX_Unmarshal(b []byte) error + type UnimplementedGameServiceServer struct + func (*UnimplementedGameServiceServer) GameTime(ctx context.Context, req *TokenMessage) (*GameTimeResponse, error) + func (*UnimplementedGameServiceServer) GetEnemy(ctx context.Context, req *TokenMessage) (*Units, error) + func (*UnimplementedGameServiceServer) GetMap(ctx context.Context, req *TokenMessage) (*MapData, error) + func (*UnimplementedGameServiceServer) GetUnits(ctx context.Context, req *TokenMessage) (*Units, error) + func (*UnimplementedGameServiceServer) Login(ctx context.Context, req *LoginMessage) (*LoginResponse, error) + func (*UnimplementedGameServiceServer) Version(ctx context.Context, req *EmptyMessage) (*StringMessage, error) + type Unit struct + Arm Arm + BnGuns bool + CommandReserve bool + Drill Drill + GameState *UnitGameState + Grade UnitGrade + History []*UnitGameState + Id int32 + Name string + Nationality Nationality + Notes string + SkirmishRating SkirmishRating + SkirmisherMax int32 + Strength int32 + UnitType UnitType + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Unit) Descriptor() ([]byte, []int) + func (*Unit) ProtoMessage() + func (m *Unit) GetArm() Arm + func (m *Unit) GetBnGuns() bool + func (m *Unit) GetCommandReserve() bool + func (m *Unit) GetDrill() Drill + func (m *Unit) GetGameState() *UnitGameState + func (m *Unit) GetGrade() UnitGrade + func (m *Unit) GetHistory() []*UnitGameState + func (m *Unit) GetId() int32 + func (m *Unit) GetName() string + func (m *Unit) GetNationality() Nationality + func (m *Unit) GetNotes() string + func (m *Unit) GetSkirmishRating() SkirmishRating + func (m *Unit) GetSkirmisherMax() int32 + func (m *Unit) GetStrength() int32 + func (m *Unit) GetUnitType() UnitType + func (m *Unit) Reset() + func (m *Unit) String() string + func (m *Unit) XXX_DiscardUnknown() + func (m *Unit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Unit) XXX_Merge(src proto.Message) + func (m *Unit) XXX_Size() int + func (m *Unit) XXX_Unmarshal(b []byte) error + func (u *Unit) BattleFormation() Formation + func (u *Unit) GetSKLabel() string + func (u *Unit) GetStrengthLabel(withSK bool) string + func (u *Unit) LabelString() string + func (u *Unit) ShortLabel() string + type UnitAction struct + Assault bool + ChangeFormation bool + Fallback bool + GunDeploy bool + GunFire bool + GunLimber bool + GunMove bool + Move bool + Order bool + Rally bool + Rout bool + SkAttack bool + SkDeploy bool + SkRetire bool + Withdraw bool + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*UnitAction) Descriptor() ([]byte, []int) + func (*UnitAction) ProtoMessage() + func (m *UnitAction) GetAssault() bool + func (m *UnitAction) GetChangeFormation() bool + func (m *UnitAction) GetFallback() bool + func (m *UnitAction) GetGunDeploy() bool + func (m *UnitAction) GetGunFire() bool + func (m *UnitAction) GetGunLimber() bool + func (m *UnitAction) GetGunMove() bool + func (m *UnitAction) GetMove() bool + func (m *UnitAction) GetOrder() bool + func (m *UnitAction) GetRally() bool + func (m *UnitAction) GetRout() bool + func (m *UnitAction) GetSkAttack() bool + func (m *UnitAction) GetSkDeploy() bool + func (m *UnitAction) GetSkRetire() bool + func (m *UnitAction) GetWithdraw() bool + func (m *UnitAction) Reset() + func (m *UnitAction) String() string + func (m *UnitAction) XXX_DiscardUnknown() + func (m *UnitAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *UnitAction) XXX_Merge(src proto.Message) + func (m *UnitAction) XXX_Size() int + func (m *UnitAction) XXX_Unmarshal(b []byte) error + type UnitGameState struct + ActionRequired bool + Can *UnitAction + Cover int32 + EngagedUnit string + Fatigue int32 + Formation Formation + Grid *Grid + GunTarget *Grid + GunsDamaged bool + GunsDeployed bool + GunsStocked bool + Has *UnitAction + HasFired bool + Hidden bool + Hits int32 + LowAmmo bool + MoraleState MoraleState + MoveTo *Grid + Must *UnitAction + Objective *Grid + PlayerInstructions string + SkirmishersDeployed int32 + SupportingUnit string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*UnitGameState) Descriptor() ([]byte, []int) + func (*UnitGameState) ProtoMessage() + func (m *UnitGameState) GetActionRequired() bool + func (m *UnitGameState) GetCan() *UnitAction + func (m *UnitGameState) GetCover() int32 + func (m *UnitGameState) GetEngagedUnit() string + func (m *UnitGameState) GetFatigue() int32 + func (m *UnitGameState) GetFormation() Formation + func (m *UnitGameState) GetGrid() *Grid + func (m *UnitGameState) GetGunTarget() *Grid + func (m *UnitGameState) GetGunsDamaged() bool + func (m *UnitGameState) GetGunsDeployed() bool + func (m *UnitGameState) GetGunsStocked() bool + func (m *UnitGameState) GetHas() *UnitAction + func (m *UnitGameState) GetHasFired() bool + func (m *UnitGameState) GetHidden() bool + func (m *UnitGameState) GetHits() int32 + func (m *UnitGameState) GetLowAmmo() bool + func (m *UnitGameState) GetMoraleState() MoraleState + func (m *UnitGameState) GetMoveTo() *Grid + func (m *UnitGameState) GetMust() *UnitAction + func (m *UnitGameState) GetObjective() *Grid + func (m *UnitGameState) GetPlayerInstructions() string + func (m *UnitGameState) GetSkirmishersDeployed() int32 + func (m *UnitGameState) GetSupportingUnit() string + func (m *UnitGameState) Reset() + func (m *UnitGameState) String() string + func (m *UnitGameState) XXX_DiscardUnknown() + func (m *UnitGameState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *UnitGameState) XXX_Merge(src proto.Message) + func (m *UnitGameState) XXX_Size() int + func (m *UnitGameState) XXX_Unmarshal(b []byte) error + type UnitGrade int32 + const UnitGrade_CIVILIAN + const UnitGrade_CONSCRIPT + const UnitGrade_ELITE + const UnitGrade_GUARD + const UnitGrade_MILITIA + const UnitGrade_REGULAR + const UnitGrade_VETERAN + func (UnitGrade) EnumDescriptor() ([]byte, []int) + func (x UnitGrade) String() string + type UnitType int32 + const UnitType_ARTILLERY_BN + const UnitType_ARTILLERY_HEAVY + const UnitType_ARTILLERY_HORSE + const UnitType_ARTILLERY_LIGHT + const UnitType_ARTILLERY_LIGHT_HORSE + const UnitType_ARTILLERY_MEDIUM + const UnitType_CAVALRY_COSSACK + const UnitType_CAVALRY_CUIRASSIER + const UnitType_CAVALRY_DRAGOON + const UnitType_CAVALRY_HEAVY + const UnitType_CAVALRY_HUSSAR + const UnitType_CAVALRY_LANCER + const UnitType_CAVALRY_LIGHT + const UnitType_CAVALRY_MEDIUM + const UnitType_INFANTRY_GRENADIER + const UnitType_INFANTRY_IRREGULAR + const UnitType_INFANTRY_LIGHT + const UnitType_INFANTRY_LINE + const UnitType_INFANTRY_RIFLES + const UnitType_SUPPORT_UNIT + func (UnitType) EnumDescriptor() ([]byte, []int) + func (x UnitType) String() string + type Units struct + Commands []*Command + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Units) Descriptor() ([]byte, []int) + func (*Units) ProtoMessage() + func (m *Units) GetCommands() []*Command + func (m *Units) Reset() + func (m *Units) String() string + func (m *Units) XXX_DiscardUnknown() + func (m *Units) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Units) XXX_Merge(src proto.Message) + func (m *Units) XXX_Size() int + func (m *Units) XXX_Unmarshal(b []byte) error + type Waypoint struct + Distance float64 + Elapsed float64 + Going string + Path string + Prep bool + Speed float64 + Turns int + X int32 + X2 int32 + Y int32 + Y2 int32