Message_proto

package
Version: v0.0.0-...-f1dee3b Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: MIT Imports: 4 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",
}
View Source
var Direction_value = map[string]int32{
	"UP":    0,
	"DOWN":  1,
	"LEFT":  2,
	"RIGHT": 3,
}
View Source
var Shoot_ShootType_name = map[int32]string{
	0: "NORMAL",
}
View Source
var Shoot_ShootType_value = map[string]int32{
	"NORMAL": 0,
}

Functions

This section is empty.

Types

type BuildWall

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

func (*BuildWall) Descriptor

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

func (*BuildWall) GetId

func (m *BuildWall) GetId() int32

func (*BuildWall) GetX

func (m *BuildWall) GetX() int32

func (*BuildWall) GetY

func (m *BuildWall) GetY() int32

func (*BuildWall) ProtoMessage

func (*BuildWall) ProtoMessage()

func (*BuildWall) Reset

func (m *BuildWall) Reset()

func (*BuildWall) String

func (m *BuildWall) String() string

func (*BuildWall) XXX_DiscardUnknown

func (m *BuildWall) XXX_DiscardUnknown()

func (*BuildWall) XXX_Marshal

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

func (*BuildWall) XXX_Merge

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

func (*BuildWall) XXX_Size

func (m *BuildWall) XXX_Size() int

func (*BuildWall) XXX_Unmarshal

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

type Bullet

type Bullet struct {
	PlayerId             int32    `protobuf:"varint,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	Sx                   float32  `protobuf:"fixed32,2,opt,name=sx,proto3" json:"sx,omitempty"`
	Sy                   float32  `protobuf:"fixed32,3,opt,name=sy,proto3" json:"sy,omitempty"`
	X                    float32  `protobuf:"fixed32,4,opt,name=x,proto3" json:"x,omitempty"`
	Y                    float32  `protobuf:"fixed32,5,opt,name=y,proto3" json:"y,omitempty"`
	Dx                   float32  `protobuf:"fixed32,6,opt,name=dx,proto3" json:"dx,omitempty"`
	Dy                   float32  `protobuf:"fixed32,7,opt,name=dy,proto3" json:"dy,omitempty"`
	Stime                float32  `protobuf:"fixed32,8,opt,name=stime,proto3" json:"stime,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Bullet) Descriptor

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

func (*Bullet) GetDx

func (m *Bullet) GetDx() float32

func (*Bullet) GetDy

func (m *Bullet) GetDy() float32

func (*Bullet) GetPlayerId

func (m *Bullet) GetPlayerId() int32

func (*Bullet) GetStime

func (m *Bullet) GetStime() float32

func (*Bullet) GetSx

func (m *Bullet) GetSx() float32

func (*Bullet) GetSy

func (m *Bullet) GetSy() float32

func (*Bullet) GetX

func (m *Bullet) GetX() float32

func (*Bullet) GetY

func (m *Bullet) GetY() float32

func (*Bullet) ProtoMessage

func (*Bullet) ProtoMessage()

func (*Bullet) Reset

func (m *Bullet) Reset()

func (*Bullet) String

func (m *Bullet) String() string

func (*Bullet) XXX_DiscardUnknown

func (m *Bullet) XXX_DiscardUnknown()

func (*Bullet) XXX_Marshal

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

func (*Bullet) XXX_Merge

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

func (*Bullet) XXX_Size

func (m *Bullet) XXX_Size() int

func (*Bullet) XXX_Unmarshal

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

type ClientGameMessage

type ClientGameMessage struct {
	InputSequenceNumber int32   `protobuf:"varint,1,opt,name=input_sequence_number,json=inputSequenceNumber,proto3" json:"input_sequence_number,omitempty"`
	TimeElapsed         float32 `protobuf:"fixed32,2,opt,name=time_elapsed,json=timeElapsed,proto3" json:"time_elapsed,omitempty"`
	// Types that are valid to be assigned to Message:
	//	*ClientGameMessage_InitPlayerPayload
	//	*ClientGameMessage_MovePositionPayload
	//	*ClientGameMessage_ShootPayload
	//	*ClientGameMessage_BuildWallPayload
	//	*ClientGameMessage_UpdatePlayerPayload
	//	*ClientGameMessage_SetPositionPayload
	Message              isClientGameMessage_Message `protobuf_oneof:"message"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*ClientGameMessage) Descriptor

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

func (*ClientGameMessage) GetBuildWallPayload

func (m *ClientGameMessage) GetBuildWallPayload() *BuildWall

func (*ClientGameMessage) GetInitPlayerPayload

func (m *ClientGameMessage) GetInitPlayerPayload() *InitPlayer

func (*ClientGameMessage) GetInputSequenceNumber

func (m *ClientGameMessage) GetInputSequenceNumber() int32

func (*ClientGameMessage) GetMessage

func (m *ClientGameMessage) GetMessage() isClientGameMessage_Message

func (*ClientGameMessage) GetMovePositionPayload

func (m *ClientGameMessage) GetMovePositionPayload() *MovePosition

func (*ClientGameMessage) GetSetPositionPayload

func (m *ClientGameMessage) GetSetPositionPayload() *SetPosition

func (*ClientGameMessage) GetShootPayload

func (m *ClientGameMessage) GetShootPayload() *Shoot

func (*ClientGameMessage) GetTimeElapsed

func (m *ClientGameMessage) GetTimeElapsed() float32

func (*ClientGameMessage) GetUpdatePlayerPayload

func (m *ClientGameMessage) GetUpdatePlayerPayload() *UpdatePlayer

func (*ClientGameMessage) ProtoMessage

func (*ClientGameMessage) ProtoMessage()

func (*ClientGameMessage) Reset

func (m *ClientGameMessage) Reset()

func (*ClientGameMessage) String

func (m *ClientGameMessage) String() string

func (*ClientGameMessage) XXX_DiscardUnknown

func (m *ClientGameMessage) XXX_DiscardUnknown()

func (*ClientGameMessage) XXX_Marshal

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

func (*ClientGameMessage) XXX_Merge

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

func (*ClientGameMessage) XXX_OneofWrappers

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*ClientGameMessage) XXX_Size

func (m *ClientGameMessage) XXX_Size() int

func (*ClientGameMessage) XXX_Unmarshal

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

type ClientGameMessage_BuildWallPayload

type ClientGameMessage_BuildWallPayload struct {
	BuildWallPayload *BuildWall `protobuf:"bytes,6,opt,name=build_wall_payload,json=buildWallPayload,proto3,oneof"`
}

type ClientGameMessage_InitPlayerPayload

type ClientGameMessage_InitPlayerPayload struct {
	InitPlayerPayload *InitPlayer `protobuf:"bytes,3,opt,name=init_player_payload,json=initPlayerPayload,proto3,oneof"`
}

type ClientGameMessage_MovePositionPayload

type ClientGameMessage_MovePositionPayload struct {
	MovePositionPayload *MovePosition `protobuf:"bytes,4,opt,name=move_position_payload,json=movePositionPayload,proto3,oneof"`
}

type ClientGameMessage_SetPositionPayload

type ClientGameMessage_SetPositionPayload struct {
	SetPositionPayload *SetPosition `protobuf:"bytes,8,opt,name=set_position_payload,json=setPositionPayload,proto3,oneof"`
}

type ClientGameMessage_ShootPayload

type ClientGameMessage_ShootPayload struct {
	ShootPayload *Shoot `protobuf:"bytes,5,opt,name=shoot_payload,json=shootPayload,proto3,oneof"`
}

type ClientGameMessage_UpdatePlayerPayload

type ClientGameMessage_UpdatePlayerPayload struct {
	UpdatePlayerPayload *UpdatePlayer `protobuf:"bytes,7,opt,name=update_player_payload,json=updatePlayerPayload,proto3,oneof"`
}

type Direction

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

func (Direction) EnumDescriptor

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

func (Direction) String

func (x Direction) String() string

type InitAll

type InitAll struct {
	InitPlayer           []*InitPlayer `protobuf:"bytes,1,rep,name=init_player,json=initPlayer,proto3" json:"init_player,omitempty"`
	InitMap              *Map          `protobuf:"bytes,2,opt,name=init_map,json=initMap,proto3" json:"init_map,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*InitAll) Descriptor

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

func (*InitAll) GetInitMap

func (m *InitAll) GetInitMap() *Map

func (*InitAll) GetInitPlayer

func (m *InitAll) GetInitPlayer() []*InitPlayer

func (*InitAll) ProtoMessage

func (*InitAll) ProtoMessage()

func (*InitAll) Reset

func (m *InitAll) Reset()

func (*InitAll) String

func (m *InitAll) String() string

func (*InitAll) XXX_DiscardUnknown

func (m *InitAll) XXX_DiscardUnknown()

func (*InitAll) XXX_Marshal

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

func (*InitAll) XXX_Merge

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

func (*InitAll) XXX_Size

func (m *InitAll) XXX_Size() int

func (*InitAll) XXX_Unmarshal

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

type InitPlayer

type InitPlayer struct {
	Id                   int32    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ClientId             int32    `protobuf:"varint,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	X                    float32  `protobuf:"fixed32,3,opt,name=x,proto3" json:"x,omitempty"`
	Y                    float32  `protobuf:"fixed32,4,opt,name=y,proto3" json:"y,omitempty"`
	Name                 string   `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	IsMain               bool     `protobuf:"varint,6,opt,name=is_main,json=isMain,proto3" json:"is_main,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InitPlayer) Descriptor

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

func (*InitPlayer) GetClientId

func (m *InitPlayer) GetClientId() int32

func (*InitPlayer) GetId

func (m *InitPlayer) GetId() int32

func (*InitPlayer) GetIsMain

func (m *InitPlayer) GetIsMain() bool

func (*InitPlayer) GetName

func (m *InitPlayer) GetName() string

func (*InitPlayer) GetX

func (m *InitPlayer) GetX() float32

func (*InitPlayer) GetY

func (m *InitPlayer) GetY() float32

func (*InitPlayer) ProtoMessage

func (*InitPlayer) ProtoMessage()

func (*InitPlayer) Reset

func (m *InitPlayer) Reset()

func (*InitPlayer) String

func (m *InitPlayer) String() string

func (*InitPlayer) XXX_DiscardUnknown

func (m *InitPlayer) XXX_DiscardUnknown()

func (*InitPlayer) XXX_Marshal

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

func (*InitPlayer) XXX_Merge

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

func (*InitPlayer) XXX_Size

func (m *InitPlayer) XXX_Size() int

func (*InitPlayer) XXX_Unmarshal

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

type Map

type Map struct {
	Block                []int32  `protobuf:"varint,1,rep,packed,name=block,proto3" json:"block,omitempty"`
	NumCols              int32    `protobuf:"varint,2,opt,name=num_cols,json=numCols,proto3" json:"num_cols,omitempty"`
	NumRows              int32    `protobuf:"varint,3,opt,name=num_rows,json=numRows,proto3" json:"num_rows,omitempty"`
	BlockWidth           float32  `protobuf:"fixed32,4,opt,name=block_width,json=blockWidth,proto3" json:"block_width,omitempty"`
	BlockHeight          float32  `protobuf:"fixed32,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Map) Descriptor

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

func (*Map) GetBlock

func (m *Map) GetBlock() []int32

func (*Map) GetBlockHeight

func (m *Map) GetBlockHeight() float32

func (*Map) GetBlockWidth

func (m *Map) GetBlockWidth() float32

func (*Map) GetNumCols

func (m *Map) GetNumCols() int32

func (*Map) GetNumRows

func (m *Map) GetNumRows() int32

func (*Map) ProtoMessage

func (*Map) ProtoMessage()

func (*Map) Reset

func (m *Map) Reset()

func (*Map) String

func (m *Map) String() string

func (*Map) XXX_DiscardUnknown

func (m *Map) XXX_DiscardUnknown()

func (*Map) XXX_Marshal

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

func (*Map) XXX_Merge

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

func (*Map) XXX_Size

func (m *Map) XXX_Size() int

func (*Map) XXX_Unmarshal

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

type MovePosition

type MovePosition struct {
	Id                   int32    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Dx                   float32  `protobuf:"fixed32,2,opt,name=dx,proto3" json:"dx,omitempty"`
	Dy                   float32  `protobuf:"fixed32,3,opt,name=dy,proto3" json:"dy,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MovePosition) Descriptor

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

func (*MovePosition) GetDx

func (m *MovePosition) GetDx() float32

func (*MovePosition) GetDy

func (m *MovePosition) GetDy() float32

func (*MovePosition) GetId

func (m *MovePosition) GetId() int32

func (*MovePosition) ProtoMessage

func (*MovePosition) ProtoMessage()

func (*MovePosition) Reset

func (m *MovePosition) Reset()

func (*MovePosition) String

func (m *MovePosition) String() string

func (*MovePosition) XXX_DiscardUnknown

func (m *MovePosition) XXX_DiscardUnknown()

func (*MovePosition) XXX_Marshal

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

func (*MovePosition) XXX_Merge

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

func (*MovePosition) XXX_Size

func (m *MovePosition) XXX_Size() int

func (*MovePosition) XXX_Unmarshal

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

type Ping

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

func (*Ping) Descriptor

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

func (*Ping) GetPing

func (m *Ping) GetPing() string

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) Reset

func (m *Ping) Reset()

func (*Ping) String

func (m *Ping) String() string

func (*Ping) XXX_DiscardUnknown

func (m *Ping) XXX_DiscardUnknown()

func (*Ping) XXX_Marshal

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

func (*Ping) XXX_Merge

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

func (*Ping) XXX_Size

func (m *Ping) XXX_Size() int

func (*Ping) XXX_Unmarshal

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

type Player

type Player struct {
	Id                   int32                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	X                    float32              `protobuf:"fixed32,2,opt,name=x,proto3" json:"x,omitempty"`
	Y                    float32              `protobuf:"fixed32,3,opt,name=y,proto3" json:"y,omitempty"`
	Health               float32              `protobuf:"fixed32,4,opt,name=health,proto3" json:"health,omitempty"`
	Size                 float32              `protobuf:"fixed32,5,opt,name=size,proto3" json:"size,omitempty"`
	Level                int32                `protobuf:"varint,6,opt,name=level,proto3" json:"level,omitempty"`
	Score                int32                `protobuf:"varint,7,opt,name=score,proto3" json:"score,omitempty"`
	Name                 string               `protobuf:"bytes,8,opt,name=name,proto3" json:"name,omitempty"`
	NextReload           *timestamp.Timestamp `protobuf:"bytes,9,opt,name=next_reload,json=nextReload,proto3" json:"next_reload,omitempty"`
	IsDestroy            bool                 `protobuf:"varint,10,opt,name=is_destroy,json=isDestroy,proto3" json:"is_destroy,omitempty"`
	CurrentInputNumber   int32                `protobuf:"varint,11,opt,name=current_input_number,json=currentInputNumber,proto3" json:"current_input_number,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Player) Descriptor

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

func (*Player) GetCurrentInputNumber

func (m *Player) GetCurrentInputNumber() int32

func (*Player) GetHealth

func (m *Player) GetHealth() float32

func (*Player) GetId

func (m *Player) GetId() int32

func (*Player) GetIsDestroy

func (m *Player) GetIsDestroy() bool

func (*Player) GetLevel

func (m *Player) GetLevel() int32

func (*Player) GetName

func (m *Player) GetName() string

func (*Player) GetNextReload

func (m *Player) GetNextReload() *timestamp.Timestamp

func (*Player) GetScore

func (m *Player) GetScore() int32

func (*Player) GetSize

func (m *Player) GetSize() float32

func (*Player) GetX

func (m *Player) GetX() float32

func (*Player) GetY

func (m *Player) GetY() float32

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 RegisterClientID

type RegisterClientID struct {
	ClientId             int32    `protobuf:"varint,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RegisterClientID) Descriptor

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

func (*RegisterClientID) GetClientId

func (m *RegisterClientID) GetClientId() int32

func (*RegisterClientID) ProtoMessage

func (*RegisterClientID) ProtoMessage()

func (*RegisterClientID) Reset

func (m *RegisterClientID) Reset()

func (*RegisterClientID) String

func (m *RegisterClientID) String() string

func (*RegisterClientID) XXX_DiscardUnknown

func (m *RegisterClientID) XXX_DiscardUnknown()

func (*RegisterClientID) XXX_Marshal

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

func (*RegisterClientID) XXX_Merge

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

func (*RegisterClientID) XXX_Size

func (m *RegisterClientID) XXX_Size() int

func (*RegisterClientID) XXX_Unmarshal

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

type RemovePlayer

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

func (*RemovePlayer) Descriptor

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

func (*RemovePlayer) GetId

func (m *RemovePlayer) GetId() int32

func (*RemovePlayer) ProtoMessage

func (*RemovePlayer) ProtoMessage()

func (*RemovePlayer) Reset

func (m *RemovePlayer) Reset()

func (*RemovePlayer) String

func (m *RemovePlayer) String() string

func (*RemovePlayer) XXX_DiscardUnknown

func (m *RemovePlayer) XXX_DiscardUnknown()

func (*RemovePlayer) XXX_Marshal

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

func (*RemovePlayer) XXX_Merge

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

func (*RemovePlayer) XXX_Size

func (m *RemovePlayer) XXX_Size() int

func (*RemovePlayer) XXX_Unmarshal

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

type ServerGameMessage

type ServerGameMessage struct {
	LastProcessInput int32 `protobuf:"varint,1,opt,name=last_process_input,json=lastProcessInput,proto3" json:"last_process_input,omitempty"`
	// Types that are valid to be assigned to Message:
	//	*ServerGameMessage_InitAllPayload
	//	*ServerGameMessage_InitPlayerPayload
	//	*ServerGameMessage_UpdatePlayerPayload
	//	*ServerGameMessage_InitShootPayload
	//	*ServerGameMessage_RemovePlayerPayload
	//	*ServerGameMessage_RegisterClientIdPayload
	Message              isServerGameMessage_Message `protobuf_oneof:"message"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*ServerGameMessage) Descriptor

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

func (*ServerGameMessage) GetInitAllPayload

func (m *ServerGameMessage) GetInitAllPayload() *InitAll

func (*ServerGameMessage) GetInitPlayerPayload

func (m *ServerGameMessage) GetInitPlayerPayload() *InitPlayer

func (*ServerGameMessage) GetInitShootPayload

func (m *ServerGameMessage) GetInitShootPayload() *Shoot

func (*ServerGameMessage) GetLastProcessInput

func (m *ServerGameMessage) GetLastProcessInput() int32

func (*ServerGameMessage) GetMessage

func (m *ServerGameMessage) GetMessage() isServerGameMessage_Message

func (*ServerGameMessage) GetRegisterClientIdPayload

func (m *ServerGameMessage) GetRegisterClientIdPayload() *RegisterClientID

func (*ServerGameMessage) GetRemovePlayerPayload

func (m *ServerGameMessage) GetRemovePlayerPayload() *RemovePlayer

func (*ServerGameMessage) GetUpdatePlayerPayload

func (m *ServerGameMessage) GetUpdatePlayerPayload() *Player

func (*ServerGameMessage) ProtoMessage

func (*ServerGameMessage) ProtoMessage()

func (*ServerGameMessage) Reset

func (m *ServerGameMessage) Reset()

func (*ServerGameMessage) String

func (m *ServerGameMessage) String() string

func (*ServerGameMessage) XXX_DiscardUnknown

func (m *ServerGameMessage) XXX_DiscardUnknown()

func (*ServerGameMessage) XXX_Marshal

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

func (*ServerGameMessage) XXX_Merge

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

func (*ServerGameMessage) XXX_OneofWrappers

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*ServerGameMessage) XXX_Size

func (m *ServerGameMessage) XXX_Size() int

func (*ServerGameMessage) XXX_Unmarshal

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

type ServerGameMessage_InitAllPayload

type ServerGameMessage_InitAllPayload struct {
	InitAllPayload *InitAll `protobuf:"bytes,2,opt,name=init_all_payload,json=initAllPayload,proto3,oneof"`
}

type ServerGameMessage_InitPlayerPayload

type ServerGameMessage_InitPlayerPayload struct {
	InitPlayerPayload *InitPlayer `protobuf:"bytes,3,opt,name=init_player_payload,json=initPlayerPayload,proto3,oneof"`
}

type ServerGameMessage_InitShootPayload

type ServerGameMessage_InitShootPayload struct {
	InitShootPayload *Shoot `protobuf:"bytes,5,opt,name=init_shoot_payload,json=initShootPayload,proto3,oneof"`
}

type ServerGameMessage_RegisterClientIdPayload

type ServerGameMessage_RegisterClientIdPayload struct {
	RegisterClientIdPayload *RegisterClientID `protobuf:"bytes,7,opt,name=register_client_id_payload,json=registerClientIdPayload,proto3,oneof"`
}

type ServerGameMessage_RemovePlayerPayload

type ServerGameMessage_RemovePlayerPayload struct {
	RemovePlayerPayload *RemovePlayer `protobuf:"bytes,6,opt,name=remove_player_payload,json=removePlayerPayload,proto3,oneof"`
}

type ServerGameMessage_UpdatePlayerPayload

type ServerGameMessage_UpdatePlayerPayload struct {
	UpdatePlayerPayload *Player `protobuf:"bytes,4,opt,name=update_player_payload,json=updatePlayerPayload,proto3,oneof"`
}

type SetPosition

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

func (*SetPosition) Descriptor

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

func (*SetPosition) GetId

func (m *SetPosition) GetId() int32

func (*SetPosition) GetX

func (m *SetPosition) GetX() float32

func (*SetPosition) GetY

func (m *SetPosition) GetY() float32

func (*SetPosition) ProtoMessage

func (*SetPosition) ProtoMessage()

func (*SetPosition) Reset

func (m *SetPosition) Reset()

func (*SetPosition) String

func (m *SetPosition) String() string

func (*SetPosition) XXX_DiscardUnknown

func (m *SetPosition) XXX_DiscardUnknown()

func (*SetPosition) XXX_Marshal

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

func (*SetPosition) XXX_Merge

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

func (*SetPosition) XXX_Size

func (m *SetPosition) XXX_Size() int

func (*SetPosition) XXX_Unmarshal

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

type Shoot

type Shoot struct {
	Id                   int64           `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	PlayerId             int32           `protobuf:"varint,2,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	X                    float32         `protobuf:"fixed32,3,opt,name=x,proto3" json:"x,omitempty"`
	Y                    float32         `protobuf:"fixed32,4,opt,name=y,proto3" json:"y,omitempty"`
	Dx                   float32         `protobuf:"fixed32,5,opt,name=dx,proto3" json:"dx,omitempty"`
	Dy                   float32         `protobuf:"fixed32,6,opt,name=dy,proto3" json:"dy,omitempty"`
	Type                 Shoot_ShootType `protobuf:"varint,7,opt,name=type,proto3,enum=Message_proto.Shoot_ShootType" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*Shoot) Descriptor

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

func (*Shoot) GetDx

func (m *Shoot) GetDx() float32

func (*Shoot) GetDy

func (m *Shoot) GetDy() float32

func (*Shoot) GetId

func (m *Shoot) GetId() int64

func (*Shoot) GetPlayerId

func (m *Shoot) GetPlayerId() int32

func (*Shoot) GetType

func (m *Shoot) GetType() Shoot_ShootType

func (*Shoot) GetX

func (m *Shoot) GetX() float32

func (*Shoot) GetY

func (m *Shoot) GetY() float32

func (*Shoot) ProtoMessage

func (*Shoot) ProtoMessage()

func (*Shoot) Reset

func (m *Shoot) Reset()

func (*Shoot) String

func (m *Shoot) String() string

func (*Shoot) XXX_DiscardUnknown

func (m *Shoot) XXX_DiscardUnknown()

func (*Shoot) XXX_Marshal

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

func (*Shoot) XXX_Merge

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

func (*Shoot) XXX_Size

func (m *Shoot) XXX_Size() int

func (*Shoot) XXX_Unmarshal

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

type Shoot_ShootType

type Shoot_ShootType int32
const (
	Shoot_NORMAL Shoot_ShootType = 0
)

func (Shoot_ShootType) EnumDescriptor

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

func (Shoot_ShootType) String

func (x Shoot_ShootType) String() string

type UpdatePlayer

type UpdatePlayer struct {
	Id                   int32    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	X                    float32  `protobuf:"fixed32,2,opt,name=x,proto3" json:"x,omitempty"`
	Y                    float32  `protobuf:"fixed32,3,opt,name=y,proto3" json:"y,omitempty"`
	Health               float32  `protobuf:"fixed32,4,opt,name=health,proto3" json:"health,omitempty"`
	Name                 string   `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	IsDestroy            bool     `protobuf:"varint,6,opt,name=is_destroy,json=isDestroy,proto3" json:"is_destroy,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdatePlayer) Descriptor

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

func (*UpdatePlayer) GetHealth

func (m *UpdatePlayer) GetHealth() float32

func (*UpdatePlayer) GetId

func (m *UpdatePlayer) GetId() int32

func (*UpdatePlayer) GetIsDestroy

func (m *UpdatePlayer) GetIsDestroy() bool

func (*UpdatePlayer) GetName

func (m *UpdatePlayer) GetName() string

func (*UpdatePlayer) GetX

func (m *UpdatePlayer) GetX() float32

func (*UpdatePlayer) GetY

func (m *UpdatePlayer) GetY() float32

func (*UpdatePlayer) ProtoMessage

func (*UpdatePlayer) ProtoMessage()

func (*UpdatePlayer) Reset

func (m *UpdatePlayer) Reset()

func (*UpdatePlayer) String

func (m *UpdatePlayer) String() string

func (*UpdatePlayer) XXX_DiscardUnknown

func (m *UpdatePlayer) XXX_DiscardUnknown()

func (*UpdatePlayer) XXX_Marshal

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

func (*UpdatePlayer) XXX_Merge

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

func (*UpdatePlayer) XXX_Size

func (m *UpdatePlayer) XXX_Size() int

func (*UpdatePlayer) XXX_Unmarshal

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

type WallBlock

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

func (*WallBlock) Descriptor

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

func (*WallBlock) GetX

func (m *WallBlock) GetX() float32

func (*WallBlock) GetY

func (m *WallBlock) GetY() float32

func (*WallBlock) ProtoMessage

func (*WallBlock) ProtoMessage()

func (*WallBlock) Reset

func (m *WallBlock) Reset()

func (*WallBlock) String

func (m *WallBlock) String() string

func (*WallBlock) XXX_DiscardUnknown

func (m *WallBlock) XXX_DiscardUnknown()

func (*WallBlock) XXX_Marshal

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

func (*WallBlock) XXX_Merge

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

func (*WallBlock) XXX_Size

func (m *WallBlock) XXX_Size() int

func (*WallBlock) XXX_Unmarshal

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

Source Files

Jump to

Keyboard shortcuts

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