Documentation ¶
Index ¶
- Variables
- func GetBackendCoordinate(protoCoordinate *Coordinate) backend.Coordinate
- func GetBackendDirection(protoDirection Direction) backend.Direction
- func GetBackendEntity(protoEntity *Entity) backend.Identifier
- func GetBackendLaser(protoLaser *Laser) *backend.Laser
- func GetBackendPlayer(protoPlayer *Player) *backend.Player
- func RegisterGameServer(s *grpc.Server, srv GameServer)
- type AddEntity
- func (*AddEntity) Descriptor() ([]byte, []int)
- func (m *AddEntity) GetEntity() *Entity
- func (*AddEntity) ProtoMessage()
- func (m *AddEntity) Reset()
- func (m *AddEntity) String() string
- func (m *AddEntity) XXX_DiscardUnknown()
- func (m *AddEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddEntity) XXX_Merge(src proto.Message)
- func (m *AddEntity) XXX_Size() int
- func (m *AddEntity) XXX_Unmarshal(b []byte) error
- type ConnectRequest
- func (*ConnectRequest) Descriptor() ([]byte, []int)
- func (m *ConnectRequest) GetId() string
- func (m *ConnectRequest) GetName() string
- func (m *ConnectRequest) GetPassword() string
- func (*ConnectRequest) ProtoMessage()
- func (m *ConnectRequest) Reset()
- func (m *ConnectRequest) String() string
- func (m *ConnectRequest) XXX_DiscardUnknown()
- func (m *ConnectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConnectRequest) XXX_Merge(src proto.Message)
- func (m *ConnectRequest) XXX_Size() int
- func (m *ConnectRequest) XXX_Unmarshal(b []byte) error
- type ConnectResponse
- func (*ConnectResponse) Descriptor() ([]byte, []int)
- func (m *ConnectResponse) GetEntities() []*Entity
- func (m *ConnectResponse) GetToken() string
- func (*ConnectResponse) ProtoMessage()
- func (m *ConnectResponse) Reset()
- func (m *ConnectResponse) String() string
- func (m *ConnectResponse) XXX_DiscardUnknown()
- func (m *ConnectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConnectResponse) XXX_Merge(src proto.Message)
- func (m *ConnectResponse) XXX_Size() int
- func (m *ConnectResponse) XXX_Unmarshal(b []byte) error
- type Coordinate
- func (*Coordinate) Descriptor() ([]byte, []int)
- func (m *Coordinate) GetX() int32
- func (m *Coordinate) GetY() int32
- func (*Coordinate) ProtoMessage()
- func (m *Coordinate) Reset()
- func (m *Coordinate) String() string
- func (m *Coordinate) XXX_DiscardUnknown()
- func (m *Coordinate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Coordinate) XXX_Merge(src proto.Message)
- func (m *Coordinate) XXX_Size() int
- func (m *Coordinate) XXX_Unmarshal(b []byte) error
- type Direction
- type Entity
- func (*Entity) Descriptor() ([]byte, []int)
- func (m *Entity) GetEntity() isEntity_Entity
- func (m *Entity) GetLaser() *Laser
- func (m *Entity) GetPlayer() *Player
- func (*Entity) ProtoMessage()
- func (m *Entity) Reset()
- func (m *Entity) String() string
- func (m *Entity) XXX_DiscardUnknown()
- func (m *Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Entity) XXX_Merge(src proto.Message)
- func (*Entity) XXX_OneofWrappers() []interface{}
- func (m *Entity) XXX_Size() int
- func (m *Entity) XXX_Unmarshal(b []byte) error
- type Entity_Laser
- type Entity_Player
- type GameClient
- type GameServer
- type Game_StreamClient
- type Game_StreamServer
- type Laser
- func (*Laser) Descriptor() ([]byte, []int)
- func (m *Laser) GetDirection() Direction
- func (m *Laser) GetId() string
- func (m *Laser) GetInitialPosition() *Coordinate
- func (m *Laser) GetOwnerId() string
- func (m *Laser) GetStartTime() *timestamp.Timestamp
- func (*Laser) ProtoMessage()
- func (m *Laser) Reset()
- func (m *Laser) String() string
- func (m *Laser) XXX_DiscardUnknown()
- func (m *Laser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Laser) XXX_Merge(src proto.Message)
- func (m *Laser) XXX_Size() int
- func (m *Laser) XXX_Unmarshal(b []byte) error
- type Move
- func (*Move) Descriptor() ([]byte, []int)
- func (m *Move) GetDirection() Direction
- func (*Move) ProtoMessage()
- func (m *Move) Reset()
- func (m *Move) String() string
- func (m *Move) XXX_DiscardUnknown()
- func (m *Move) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Move) XXX_Merge(src proto.Message)
- func (m *Move) XXX_Size() int
- func (m *Move) XXX_Unmarshal(b []byte) error
- type Player
- func (*Player) Descriptor() ([]byte, []int)
- func (m *Player) GetIcon() string
- func (m *Player) GetId() string
- func (m *Player) GetName() string
- func (m *Player) GetPosition() *Coordinate
- func (*Player) ProtoMessage()
- 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 PlayerRespawn
- func (*PlayerRespawn) Descriptor() ([]byte, []int)
- func (m *PlayerRespawn) GetKilledById() string
- func (m *PlayerRespawn) GetPlayer() *Player
- func (*PlayerRespawn) ProtoMessage()
- func (m *PlayerRespawn) Reset()
- func (m *PlayerRespawn) String() string
- func (m *PlayerRespawn) XXX_DiscardUnknown()
- func (m *PlayerRespawn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlayerRespawn) XXX_Merge(src proto.Message)
- func (m *PlayerRespawn) XXX_Size() int
- func (m *PlayerRespawn) XXX_Unmarshal(b []byte) error
- type RemoveEntity
- func (*RemoveEntity) Descriptor() ([]byte, []int)
- func (m *RemoveEntity) GetId() string
- func (*RemoveEntity) ProtoMessage()
- func (m *RemoveEntity) Reset()
- func (m *RemoveEntity) String() string
- func (m *RemoveEntity) XXX_DiscardUnknown()
- func (m *RemoveEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RemoveEntity) XXX_Merge(src proto.Message)
- func (m *RemoveEntity) XXX_Size() int
- func (m *RemoveEntity) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetAction() isRequest_Action
- func (m *Request) GetLaser() *Laser
- func (m *Request) GetMove() *Move
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (*Request) XXX_OneofWrappers() []interface{}
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Request_Laser
- type Request_Move
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetAction() isResponse_Action
- func (m *Response) GetAddEntity() *AddEntity
- func (m *Response) GetPlayerRespawn() *PlayerRespawn
- func (m *Response) GetRemoveEntity() *RemoveEntity
- func (m *Response) GetRoundOver() *RoundOver
- func (m *Response) GetRoundStart() *RoundStart
- func (m *Response) GetUpdateEntity() *UpdateEntity
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (*Response) XXX_OneofWrappers() []interface{}
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type Response_AddEntity
- type Response_PlayerRespawn
- type Response_RemoveEntity
- type Response_RoundOver
- type Response_RoundStart
- type Response_UpdateEntity
- type RoundOver
- func (*RoundOver) Descriptor() ([]byte, []int)
- func (m *RoundOver) GetNewRoundAt() *timestamp.Timestamp
- func (m *RoundOver) GetRoundWinnerId() string
- func (*RoundOver) ProtoMessage()
- func (m *RoundOver) Reset()
- func (m *RoundOver) String() string
- func (m *RoundOver) XXX_DiscardUnknown()
- func (m *RoundOver) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoundOver) XXX_Merge(src proto.Message)
- func (m *RoundOver) XXX_Size() int
- func (m *RoundOver) XXX_Unmarshal(b []byte) error
- type RoundStart
- func (*RoundStart) Descriptor() ([]byte, []int)
- func (m *RoundStart) GetPlayers() []*Player
- func (*RoundStart) ProtoMessage()
- func (m *RoundStart) Reset()
- func (m *RoundStart) String() string
- func (m *RoundStart) XXX_DiscardUnknown()
- func (m *RoundStart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoundStart) XXX_Merge(src proto.Message)
- func (m *RoundStart) XXX_Size() int
- func (m *RoundStart) XXX_Unmarshal(b []byte) error
- type UnimplementedGameServer
- type UpdateEntity
- func (*UpdateEntity) Descriptor() ([]byte, []int)
- func (m *UpdateEntity) GetEntity() *Entity
- func (*UpdateEntity) ProtoMessage()
- func (m *UpdateEntity) Reset()
- func (m *UpdateEntity) String() string
- func (m *UpdateEntity) XXX_DiscardUnknown()
- func (m *UpdateEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateEntity) XXX_Merge(src proto.Message)
- func (m *UpdateEntity) XXX_Size() int
- func (m *UpdateEntity) XXX_Unmarshal(b []byte) error
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 GetBackendEntity ¶
func GetBackendEntity(protoEntity *Entity) backend.Identifier
func GetBackendLaser ¶
func GetBackendPlayer ¶
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) ProtoMessage ¶
func (*AddEntity) ProtoMessage()
func (*AddEntity) XXX_DiscardUnknown ¶
func (m *AddEntity) XXX_DiscardUnknown()
func (*AddEntity) XXX_Marshal ¶
func (*AddEntity) XXX_Unmarshal ¶
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 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) ProtoMessage ¶
func (*Entity) ProtoMessage()
func (*Entity) XXX_DiscardUnknown ¶
func (m *Entity) XXX_DiscardUnknown()
func (*Entity) XXX_Marshal ¶
func (*Entity) XXX_OneofWrappers ¶
func (*Entity) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Entity) XXX_Unmarshal ¶
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_StreamServer ¶
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 (*Laser) Descriptor ¶
func (*Laser) GetDirection ¶
func (*Laser) GetInitialPosition ¶
func (m *Laser) GetInitialPosition() *Coordinate
func (*Laser) GetOwnerId ¶
func (*Laser) GetStartTime ¶
func (*Laser) ProtoMessage ¶
func (*Laser) ProtoMessage()
func (*Laser) XXX_DiscardUnknown ¶
func (m *Laser) XXX_DiscardUnknown()
func (*Laser) XXX_Marshal ¶
func (*Laser) XXX_Unmarshal ¶
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) GetDirection ¶
func (*Move) ProtoMessage ¶
func (*Move) ProtoMessage()
func (*Move) XXX_DiscardUnknown ¶
func (m *Move) XXX_DiscardUnknown()
func (*Move) XXX_Unmarshal ¶
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 (*Player) Descriptor ¶
func (*Player) GetPosition ¶
func (m *Player) GetPosition() *Coordinate
func (*Player) ProtoMessage ¶
func (*Player) ProtoMessage()
func (*Player) XXX_DiscardUnknown ¶
func (m *Player) XXX_DiscardUnknown()
func (*Player) XXX_Marshal ¶
func (*Player) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_OneofWrappers ¶
func (*Request) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Request) XXX_Unmarshal ¶
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) GetAddEntity ¶
func (*Response) GetPlayerRespawn ¶
func (m *Response) GetPlayerRespawn() *PlayerRespawn
func (*Response) GetRemoveEntity ¶
func (m *Response) GetRemoveEntity() *RemoveEntity
func (*Response) GetRoundOver ¶
func (*Response) GetRoundStart ¶
func (m *Response) GetRoundStart() *RoundStart
func (*Response) GetUpdateEntity ¶
func (m *Response) GetUpdateEntity() *UpdateEntity
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_OneofWrappers ¶
func (*Response) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Response) XXX_Unmarshal ¶
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) GetNewRoundAt ¶
func (*RoundOver) GetRoundWinnerId ¶
func (*RoundOver) ProtoMessage ¶
func (*RoundOver) ProtoMessage()
func (*RoundOver) XXX_DiscardUnknown ¶
func (m *RoundOver) XXX_DiscardUnknown()
func (*RoundOver) XXX_Marshal ¶
func (*RoundOver) XXX_Unmarshal ¶
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) Connect(ctx context.Context, req *ConnectRequest) (*ConnectResponse, error)
func (*UnimplementedGameServer) Stream ¶
func (*UnimplementedGameServer) Stream(srv Game_StreamServer) error
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
Click to show internal directories.
Click to hide internal directories.