Documentation ¶
Index ¶
- Variables
- type ClientMovement
- type EchoJoinGame
- type JoinGame
- type PlayerPosition
- func (*PlayerPosition) Descriptor() ([]byte, []int)deprecated
- func (x *PlayerPosition) GetX() int64
- func (x *PlayerPosition) GetY() int64
- func (*PlayerPosition) ProtoMessage()
- func (x *PlayerPosition) ProtoReflect() protoreflect.Message
- func (x *PlayerPosition) Reset()
- func (x *PlayerPosition) String() string
- type ServerPositionUpdate
- func (*ServerPositionUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *ServerPositionUpdate) GetPlayerPos() []*PlayerPosition
- func (*ServerPositionUpdate) ProtoMessage()
- func (x *ServerPositionUpdate) ProtoReflect() protoreflect.Message
- func (x *ServerPositionUpdate) Reset()
- func (x *ServerPositionUpdate) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_protocol_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ClientMovement ¶
type ClientMovement struct { PlayerPos *PlayerPosition `protobuf:"bytes,1,opt,name=player_pos,json=playerPos,proto3" json:"player_pos,omitempty"` // contains filtered or unexported fields }
func (*ClientMovement) Descriptor
deprecated
func (*ClientMovement) Descriptor() ([]byte, []int)
Deprecated: Use ClientMovement.ProtoReflect.Descriptor instead.
func (*ClientMovement) GetPlayerPos ¶
func (x *ClientMovement) GetPlayerPos() *PlayerPosition
func (*ClientMovement) ProtoMessage ¶
func (*ClientMovement) ProtoMessage()
func (*ClientMovement) ProtoReflect ¶
func (x *ClientMovement) ProtoReflect() protoreflect.Message
func (*ClientMovement) Reset ¶
func (x *ClientMovement) Reset()
func (*ClientMovement) String ¶
func (x *ClientMovement) String() string
type EchoJoinGame ¶
type EchoJoinGame struct { PlayerId int32 `protobuf:"varint,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"` // contains filtered or unexported fields }
func (*EchoJoinGame) Descriptor
deprecated
func (*EchoJoinGame) Descriptor() ([]byte, []int)
Deprecated: Use EchoJoinGame.ProtoReflect.Descriptor instead.
func (*EchoJoinGame) GetPlayerId ¶
func (x *EchoJoinGame) GetPlayerId() int32
func (*EchoJoinGame) ProtoMessage ¶
func (*EchoJoinGame) ProtoMessage()
func (*EchoJoinGame) ProtoReflect ¶
func (x *EchoJoinGame) ProtoReflect() protoreflect.Message
func (*EchoJoinGame) Reset ¶
func (x *EchoJoinGame) Reset()
func (*EchoJoinGame) String ¶
func (x *EchoJoinGame) String() string
type JoinGame ¶
type JoinGame struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*JoinGame) Descriptor
deprecated
func (*JoinGame) GetUsername ¶
func (*JoinGame) ProtoMessage ¶
func (*JoinGame) ProtoMessage()
func (*JoinGame) ProtoReflect ¶
func (x *JoinGame) ProtoReflect() protoreflect.Message
type PlayerPosition ¶
type PlayerPosition struct { X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` Y int64 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` // contains filtered or unexported fields }
func (*PlayerPosition) Descriptor
deprecated
func (*PlayerPosition) Descriptor() ([]byte, []int)
Deprecated: Use PlayerPosition.ProtoReflect.Descriptor instead.
func (*PlayerPosition) GetX ¶
func (x *PlayerPosition) GetX() int64
func (*PlayerPosition) GetY ¶
func (x *PlayerPosition) GetY() int64
func (*PlayerPosition) ProtoMessage ¶
func (*PlayerPosition) ProtoMessage()
func (*PlayerPosition) ProtoReflect ¶
func (x *PlayerPosition) ProtoReflect() protoreflect.Message
func (*PlayerPosition) Reset ¶
func (x *PlayerPosition) Reset()
func (*PlayerPosition) String ¶
func (x *PlayerPosition) String() string
type ServerPositionUpdate ¶
type ServerPositionUpdate struct { PlayerPos []*PlayerPosition `protobuf:"bytes,1,rep,name=player_pos,json=playerPos,proto3" json:"player_pos,omitempty"` // contains filtered or unexported fields }
func (*ServerPositionUpdate) Descriptor
deprecated
func (*ServerPositionUpdate) Descriptor() ([]byte, []int)
Deprecated: Use ServerPositionUpdate.ProtoReflect.Descriptor instead.
func (*ServerPositionUpdate) GetPlayerPos ¶
func (x *ServerPositionUpdate) GetPlayerPos() []*PlayerPosition
func (*ServerPositionUpdate) ProtoMessage ¶
func (*ServerPositionUpdate) ProtoMessage()
func (*ServerPositionUpdate) ProtoReflect ¶
func (x *ServerPositionUpdate) ProtoReflect() protoreflect.Message
func (*ServerPositionUpdate) Reset ¶
func (x *ServerPositionUpdate) Reset()
func (*ServerPositionUpdate) String ¶
func (x *ServerPositionUpdate) String() string
Click to show internal directories.
Click to hide internal directories.