protocol

package
v0.0.0-...-44e7152 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use JoinGame.ProtoReflect.Descriptor instead.

func (*JoinGame) GetUsername

func (x *JoinGame) GetUsername() string

func (*JoinGame) ProtoMessage

func (*JoinGame) ProtoMessage()

func (*JoinGame) ProtoReflect

func (x *JoinGame) ProtoReflect() protoreflect.Message

func (*JoinGame) Reset

func (x *JoinGame) Reset()

func (*JoinGame) String

func (x *JoinGame) String() string

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

Jump to

Keyboard shortcuts

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