proto

package
v0.0.0-...-a7e05d3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Direction_name = map[int32]string{
	0: "UP",
	1: "DOWN",
	2: "LEFT",
	3: "RIGHT",
	4: "STOP",
}
View Source
var Direction_value = map[string]int32{
	"UP":    0,
	"DOWN":  1,
	"LEFT":  2,
	"RIGHT": 3,
	"STOP":  4,
}

Functions

func GetBackendCoordinate

func GetBackendCoordinate(protoCoordinate *Coordinate) backend.Coordinate

func GetBackendDirection

func GetBackendDirection(protoDirection Direction) backend.Direction

func GetBackendEntity

func GetBackendEntity(protoEntity *Entity) backend.Identifier

func GetBackendLaser

func GetBackendLaser(protoLaser *Laser) *backend.Laser

func GetBackendPlayer

func GetBackendPlayer(protoPlayer *Player) *backend.Player

func RegisterGameServer

func RegisterGameServer(s *grpc.Server, srv GameServer)

Types

type AddEntity

type AddEntity struct {
	Entity               *Entity  `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddEntity) Descriptor

func (*AddEntity) Descriptor() ([]byte, []int)

func (*AddEntity) GetEntity

func (m *AddEntity) GetEntity() *Entity

func (*AddEntity) ProtoMessage

func (*AddEntity) ProtoMessage()

func (*AddEntity) Reset

func (m *AddEntity) Reset()

func (*AddEntity) String

func (m *AddEntity) String() string

func (*AddEntity) XXX_DiscardUnknown

func (m *AddEntity) XXX_DiscardUnknown()

func (*AddEntity) XXX_Marshal

func (m *AddEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddEntity) XXX_Merge

func (m *AddEntity) XXX_Merge(src proto.Message)

func (*AddEntity) XXX_Size

func (m *AddEntity) XXX_Size() int

func (*AddEntity) XXX_Unmarshal

func (m *AddEntity) XXX_Unmarshal(b []byte) error

type ConnectRequest

type ConnectRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Password             string   `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ConnectRequest) Descriptor

func (*ConnectRequest) Descriptor() ([]byte, []int)

func (*ConnectRequest) GetId

func (m *ConnectRequest) GetId() string

func (*ConnectRequest) GetName

func (m *ConnectRequest) GetName() string

func (*ConnectRequest) GetPassword

func (m *ConnectRequest) GetPassword() string

func (*ConnectRequest) ProtoMessage

func (*ConnectRequest) ProtoMessage()

func (*ConnectRequest) Reset

func (m *ConnectRequest) Reset()

func (*ConnectRequest) String

func (m *ConnectRequest) String() string

func (*ConnectRequest) XXX_DiscardUnknown

func (m *ConnectRequest) XXX_DiscardUnknown()

func (*ConnectRequest) XXX_Marshal

func (m *ConnectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConnectRequest) XXX_Merge

func (m *ConnectRequest) XXX_Merge(src proto.Message)

func (*ConnectRequest) XXX_Size

func (m *ConnectRequest) XXX_Size() int

func (*ConnectRequest) XXX_Unmarshal

func (m *ConnectRequest) XXX_Unmarshal(b []byte) error

type ConnectResponse

type ConnectResponse struct {
	Token                string    `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Entities             []*Entity `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*ConnectResponse) Descriptor

func (*ConnectResponse) Descriptor() ([]byte, []int)

func (*ConnectResponse) GetEntities

func (m *ConnectResponse) GetEntities() []*Entity

func (*ConnectResponse) GetToken

func (m *ConnectResponse) GetToken() string

func (*ConnectResponse) ProtoMessage

func (*ConnectResponse) ProtoMessage()

func (*ConnectResponse) Reset

func (m *ConnectResponse) Reset()

func (*ConnectResponse) String

func (m *ConnectResponse) String() string

func (*ConnectResponse) XXX_DiscardUnknown

func (m *ConnectResponse) XXX_DiscardUnknown()

func (*ConnectResponse) XXX_Marshal

func (m *ConnectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConnectResponse) XXX_Merge

func (m *ConnectResponse) XXX_Merge(src proto.Message)

func (*ConnectResponse) XXX_Size

func (m *ConnectResponse) XXX_Size() int

func (*ConnectResponse) XXX_Unmarshal

func (m *ConnectResponse) XXX_Unmarshal(b []byte) error

type Coordinate

type Coordinate struct {
	X                    int32    `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	Y                    int32    `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func GetProtoCoordinate

func GetProtoCoordinate(coordinate backend.Coordinate) *Coordinate

func (*Coordinate) Descriptor

func (*Coordinate) Descriptor() ([]byte, []int)

func (*Coordinate) GetX

func (m *Coordinate) GetX() int32

func (*Coordinate) GetY

func (m *Coordinate) GetY() int32

func (*Coordinate) ProtoMessage

func (*Coordinate) ProtoMessage()

func (*Coordinate) Reset

func (m *Coordinate) Reset()

func (*Coordinate) String

func (m *Coordinate) String() string

func (*Coordinate) XXX_DiscardUnknown

func (m *Coordinate) XXX_DiscardUnknown()

func (*Coordinate) XXX_Marshal

func (m *Coordinate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Coordinate) XXX_Merge

func (m *Coordinate) XXX_Merge(src proto.Message)

func (*Coordinate) XXX_Size

func (m *Coordinate) XXX_Size() int

func (*Coordinate) XXX_Unmarshal

func (m *Coordinate) XXX_Unmarshal(b []byte) error

type Direction

type Direction int32
const (
	Direction_UP    Direction = 0
	Direction_DOWN  Direction = 1
	Direction_LEFT  Direction = 2
	Direction_RIGHT Direction = 3
	Direction_STOP  Direction = 4
)

func GetProtoDirection

func GetProtoDirection(direction backend.Direction) Direction

func (Direction) EnumDescriptor

func (Direction) EnumDescriptor() ([]byte, []int)

func (Direction) String

func (x Direction) String() string

type Entity

type Entity struct {
	// Types that are valid to be assigned to Entity:
	//	*Entity_Player
	//	*Entity_Laser
	Entity               isEntity_Entity `protobuf_oneof:"entity"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func GetProtoEntity

func GetProtoEntity(entity backend.Identifier) *Entity

func (*Entity) Descriptor

func (*Entity) Descriptor() ([]byte, []int)

func (*Entity) GetEntity

func (m *Entity) GetEntity() isEntity_Entity

func (*Entity) GetLaser

func (m *Entity) GetLaser() *Laser

func (*Entity) GetPlayer

func (m *Entity) GetPlayer() *Player

func (*Entity) ProtoMessage

func (*Entity) ProtoMessage()

func (*Entity) Reset

func (m *Entity) Reset()

func (*Entity) String

func (m *Entity) String() string

func (*Entity) XXX_DiscardUnknown

func (m *Entity) XXX_DiscardUnknown()

func (*Entity) XXX_Marshal

func (m *Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Entity) XXX_Merge

func (m *Entity) XXX_Merge(src proto.Message)

func (*Entity) XXX_OneofWrappers

func (*Entity) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Entity) XXX_Size

func (m *Entity) XXX_Size() int

func (*Entity) XXX_Unmarshal

func (m *Entity) XXX_Unmarshal(b []byte) error

type Entity_Laser

type Entity_Laser struct {
	Laser *Laser `protobuf:"bytes,3,opt,name=laser,proto3,oneof"`
}

type Entity_Player

type Entity_Player struct {
	Player *Player `protobuf:"bytes,2,opt,name=player,proto3,oneof"`
}

type GameClient

type GameClient interface {
	Connect(ctx context.Context, in *ConnectRequest, opts ...grpc.CallOption) (*ConnectResponse, error)
	Stream(ctx context.Context, opts ...grpc.CallOption) (Game_StreamClient, error)
}

GameClient is the client API for Game service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGameClient

func NewGameClient(cc grpc.ClientConnInterface) GameClient

type GameServer

type GameServer interface {
	Connect(context.Context, *ConnectRequest) (*ConnectResponse, error)
	Stream(Game_StreamServer) error
}

GameServer is the server API for Game service.

type Game_StreamClient

type Game_StreamClient interface {
	Send(*Request) error
	Recv() (*Response, error)
	grpc.ClientStream
}

type Game_StreamServer

type Game_StreamServer interface {
	Send(*Response) error
	Recv() (*Request, error)
	grpc.ServerStream
}

type Laser

type Laser struct {
	Id                   string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Direction            Direction            `protobuf:"varint,2,opt,name=direction,proto3,enum=proto.Direction" json:"direction,omitempty"`
	StartTime            *timestamp.Timestamp `protobuf:"bytes,3,opt,name=startTime,proto3" json:"startTime,omitempty"`
	InitialPosition      *Coordinate          `protobuf:"bytes,4,opt,name=initialPosition,proto3" json:"initialPosition,omitempty"`
	OwnerId              string               `protobuf:"bytes,5,opt,name=ownerId,proto3" json:"ownerId,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func GetProtoLaser

func GetProtoLaser(laser *backend.Laser) *Laser

func (*Laser) Descriptor

func (*Laser) Descriptor() ([]byte, []int)

func (*Laser) GetDirection

func (m *Laser) GetDirection() Direction

func (*Laser) GetId

func (m *Laser) GetId() string

func (*Laser) GetInitialPosition

func (m *Laser) GetInitialPosition() *Coordinate

func (*Laser) GetOwnerId

func (m *Laser) GetOwnerId() string

func (*Laser) GetStartTime

func (m *Laser) GetStartTime() *timestamp.Timestamp

func (*Laser) ProtoMessage

func (*Laser) ProtoMessage()

func (*Laser) Reset

func (m *Laser) Reset()

func (*Laser) String

func (m *Laser) String() string

func (*Laser) XXX_DiscardUnknown

func (m *Laser) XXX_DiscardUnknown()

func (*Laser) XXX_Marshal

func (m *Laser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Laser) XXX_Merge

func (m *Laser) XXX_Merge(src proto.Message)

func (*Laser) XXX_Size

func (m *Laser) XXX_Size() int

func (*Laser) XXX_Unmarshal

func (m *Laser) XXX_Unmarshal(b []byte) error

type Move

type Move struct {
	Direction            Direction `protobuf:"varint,1,opt,name=direction,proto3,enum=proto.Direction" json:"direction,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*Move) Descriptor

func (*Move) Descriptor() ([]byte, []int)

func (*Move) GetDirection

func (m *Move) GetDirection() Direction

func (*Move) ProtoMessage

func (*Move) ProtoMessage()

func (*Move) Reset

func (m *Move) Reset()

func (*Move) String

func (m *Move) String() string

func (*Move) XXX_DiscardUnknown

func (m *Move) XXX_DiscardUnknown()

func (*Move) XXX_Marshal

func (m *Move) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Move) XXX_Merge

func (m *Move) XXX_Merge(src proto.Message)

func (*Move) XXX_Size

func (m *Move) XXX_Size() int

func (*Move) XXX_Unmarshal

func (m *Move) XXX_Unmarshal(b []byte) error

type Player

type Player struct {
	Id                   string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string      `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Position             *Coordinate `protobuf:"bytes,3,opt,name=position,proto3" json:"position,omitempty"`
	Icon                 string      `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func GetProtoPlayer

func GetProtoPlayer(player *backend.Player) *Player

func (*Player) Descriptor

func (*Player) Descriptor() ([]byte, []int)

func (*Player) GetIcon

func (m *Player) GetIcon() string

func (*Player) GetId

func (m *Player) GetId() string

func (*Player) GetName

func (m *Player) GetName() string

func (*Player) GetPosition

func (m *Player) GetPosition() *Coordinate

func (*Player) ProtoMessage

func (*Player) ProtoMessage()

func (*Player) Reset

func (m *Player) Reset()

func (*Player) String

func (m *Player) String() string

func (*Player) XXX_DiscardUnknown

func (m *Player) XXX_DiscardUnknown()

func (*Player) XXX_Marshal

func (m *Player) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Player) XXX_Merge

func (m *Player) XXX_Merge(src proto.Message)

func (*Player) XXX_Size

func (m *Player) XXX_Size() int

func (*Player) XXX_Unmarshal

func (m *Player) XXX_Unmarshal(b []byte) error

type PlayerRespawn

type PlayerRespawn struct {
	Player               *Player  `protobuf:"bytes,1,opt,name=player,proto3" json:"player,omitempty"`
	KilledById           string   `protobuf:"bytes,2,opt,name=killedById,proto3" json:"killedById,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PlayerRespawn) Descriptor

func (*PlayerRespawn) Descriptor() ([]byte, []int)

func (*PlayerRespawn) GetKilledById

func (m *PlayerRespawn) GetKilledById() string

func (*PlayerRespawn) GetPlayer

func (m *PlayerRespawn) GetPlayer() *Player

func (*PlayerRespawn) ProtoMessage

func (*PlayerRespawn) ProtoMessage()

func (*PlayerRespawn) Reset

func (m *PlayerRespawn) Reset()

func (*PlayerRespawn) String

func (m *PlayerRespawn) String() string

func (*PlayerRespawn) XXX_DiscardUnknown

func (m *PlayerRespawn) XXX_DiscardUnknown()

func (*PlayerRespawn) XXX_Marshal

func (m *PlayerRespawn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlayerRespawn) XXX_Merge

func (m *PlayerRespawn) XXX_Merge(src proto.Message)

func (*PlayerRespawn) XXX_Size

func (m *PlayerRespawn) XXX_Size() int

func (*PlayerRespawn) XXX_Unmarshal

func (m *PlayerRespawn) XXX_Unmarshal(b []byte) error

type RemoveEntity

type RemoveEntity struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RemoveEntity) Descriptor

func (*RemoveEntity) Descriptor() ([]byte, []int)

func (*RemoveEntity) GetId

func (m *RemoveEntity) GetId() string

func (*RemoveEntity) ProtoMessage

func (*RemoveEntity) ProtoMessage()

func (*RemoveEntity) Reset

func (m *RemoveEntity) Reset()

func (*RemoveEntity) String

func (m *RemoveEntity) String() string

func (*RemoveEntity) XXX_DiscardUnknown

func (m *RemoveEntity) XXX_DiscardUnknown()

func (*RemoveEntity) XXX_Marshal

func (m *RemoveEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RemoveEntity) XXX_Merge

func (m *RemoveEntity) XXX_Merge(src proto.Message)

func (*RemoveEntity) XXX_Size

func (m *RemoveEntity) XXX_Size() int

func (*RemoveEntity) XXX_Unmarshal

func (m *RemoveEntity) XXX_Unmarshal(b []byte) error

type Request

type Request struct {
	// Types that are valid to be assigned to Action:
	//	*Request_Move
	//	*Request_Laser
	Action               isRequest_Action `protobuf_oneof:"action"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*Request) Descriptor

func (*Request) Descriptor() ([]byte, []int)

func (*Request) GetAction

func (m *Request) GetAction() isRequest_Action

func (*Request) GetLaser

func (m *Request) GetLaser() *Laser

func (*Request) GetMove

func (m *Request) GetMove() *Move

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_OneofWrappers

func (*Request) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

type Request_Laser

type Request_Laser struct {
	Laser *Laser `protobuf:"bytes,2,opt,name=laser,proto3,oneof"`
}

type Request_Move

type Request_Move struct {
	Move *Move `protobuf:"bytes,1,opt,name=move,proto3,oneof"`
}

type Response

type Response struct {
	// Types that are valid to be assigned to Action:
	//	*Response_AddEntity
	//	*Response_UpdateEntity
	//	*Response_RemoveEntity
	//	*Response_PlayerRespawn
	//	*Response_RoundOver
	//	*Response_RoundStart
	Action               isResponse_Action `protobuf_oneof:"action"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Response) Descriptor

func (*Response) Descriptor() ([]byte, []int)

func (*Response) GetAction

func (m *Response) GetAction() isResponse_Action

func (*Response) GetAddEntity

func (m *Response) GetAddEntity() *AddEntity

func (*Response) GetPlayerRespawn

func (m *Response) GetPlayerRespawn() *PlayerRespawn

func (*Response) GetRemoveEntity

func (m *Response) GetRemoveEntity() *RemoveEntity

func (*Response) GetRoundOver

func (m *Response) GetRoundOver() *RoundOver

func (*Response) GetRoundStart

func (m *Response) GetRoundStart() *RoundStart

func (*Response) GetUpdateEntity

func (m *Response) GetUpdateEntity() *UpdateEntity

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_OneofWrappers

func (*Response) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

func (m *Response) XXX_Unmarshal(b []byte) error

type Response_AddEntity

type Response_AddEntity struct {
	AddEntity *AddEntity `protobuf:"bytes,1,opt,name=addEntity,proto3,oneof"`
}

type Response_PlayerRespawn

type Response_PlayerRespawn struct {
	PlayerRespawn *PlayerRespawn `protobuf:"bytes,4,opt,name=playerRespawn,proto3,oneof"`
}

type Response_RemoveEntity

type Response_RemoveEntity struct {
	RemoveEntity *RemoveEntity `protobuf:"bytes,3,opt,name=removeEntity,proto3,oneof"`
}

type Response_RoundOver

type Response_RoundOver struct {
	RoundOver *RoundOver `protobuf:"bytes,5,opt,name=roundOver,proto3,oneof"`
}

type Response_RoundStart

type Response_RoundStart struct {
	RoundStart *RoundStart `protobuf:"bytes,6,opt,name=roundStart,proto3,oneof"`
}

type Response_UpdateEntity

type Response_UpdateEntity struct {
	UpdateEntity *UpdateEntity `protobuf:"bytes,2,opt,name=updateEntity,proto3,oneof"`
}

type RoundOver

type RoundOver struct {
	RoundWinnerId        string               `protobuf:"bytes,1,opt,name=roundWinnerId,proto3" json:"roundWinnerId,omitempty"`
	NewRoundAt           *timestamp.Timestamp `protobuf:"bytes,2,opt,name=newRoundAt,proto3" json:"newRoundAt,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*RoundOver) Descriptor

func (*RoundOver) Descriptor() ([]byte, []int)

func (*RoundOver) GetNewRoundAt

func (m *RoundOver) GetNewRoundAt() *timestamp.Timestamp

func (*RoundOver) GetRoundWinnerId

func (m *RoundOver) GetRoundWinnerId() string

func (*RoundOver) ProtoMessage

func (*RoundOver) ProtoMessage()

func (*RoundOver) Reset

func (m *RoundOver) Reset()

func (*RoundOver) String

func (m *RoundOver) String() string

func (*RoundOver) XXX_DiscardUnknown

func (m *RoundOver) XXX_DiscardUnknown()

func (*RoundOver) XXX_Marshal

func (m *RoundOver) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RoundOver) XXX_Merge

func (m *RoundOver) XXX_Merge(src proto.Message)

func (*RoundOver) XXX_Size

func (m *RoundOver) XXX_Size() int

func (*RoundOver) XXX_Unmarshal

func (m *RoundOver) XXX_Unmarshal(b []byte) error

type RoundStart

type RoundStart struct {
	Players              []*Player `protobuf:"bytes,1,rep,name=players,proto3" json:"players,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*RoundStart) Descriptor

func (*RoundStart) Descriptor() ([]byte, []int)

func (*RoundStart) GetPlayers

func (m *RoundStart) GetPlayers() []*Player

func (*RoundStart) ProtoMessage

func (*RoundStart) ProtoMessage()

func (*RoundStart) Reset

func (m *RoundStart) Reset()

func (*RoundStart) String

func (m *RoundStart) String() string

func (*RoundStart) XXX_DiscardUnknown

func (m *RoundStart) XXX_DiscardUnknown()

func (*RoundStart) XXX_Marshal

func (m *RoundStart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RoundStart) XXX_Merge

func (m *RoundStart) XXX_Merge(src proto.Message)

func (*RoundStart) XXX_Size

func (m *RoundStart) XXX_Size() int

func (*RoundStart) XXX_Unmarshal

func (m *RoundStart) XXX_Unmarshal(b []byte) error

type UnimplementedGameServer

type UnimplementedGameServer struct {
}

UnimplementedGameServer can be embedded to have forward compatible implementations.

func (*UnimplementedGameServer) Connect

func (*UnimplementedGameServer) Stream

type UpdateEntity

type UpdateEntity struct {
	Entity               *Entity  `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdateEntity) Descriptor

func (*UpdateEntity) Descriptor() ([]byte, []int)

func (*UpdateEntity) GetEntity

func (m *UpdateEntity) GetEntity() *Entity

func (*UpdateEntity) ProtoMessage

func (*UpdateEntity) ProtoMessage()

func (*UpdateEntity) Reset

func (m *UpdateEntity) Reset()

func (*UpdateEntity) String

func (m *UpdateEntity) String() string

func (*UpdateEntity) XXX_DiscardUnknown

func (m *UpdateEntity) XXX_DiscardUnknown()

func (*UpdateEntity) XXX_Marshal

func (m *UpdateEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateEntity) XXX_Merge

func (m *UpdateEntity) XXX_Merge(src proto.Message)

func (*UpdateEntity) XXX_Size

func (m *UpdateEntity) XXX_Size() int

func (*UpdateEntity) XXX_Unmarshal

func (m *UpdateEntity) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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