Documentation ¶
Index ¶
- Variables
- type BuildWall
- func (*BuildWall) Descriptor() ([]byte, []int)
- func (m *BuildWall) GetId() int32
- func (m *BuildWall) GetX() int32
- func (m *BuildWall) GetY() int32
- func (*BuildWall) ProtoMessage()
- func (m *BuildWall) Reset()
- func (m *BuildWall) String() string
- func (m *BuildWall) XXX_DiscardUnknown()
- func (m *BuildWall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BuildWall) XXX_Merge(src proto.Message)
- func (m *BuildWall) XXX_Size() int
- func (m *BuildWall) XXX_Unmarshal(b []byte) error
- type Bullet
- func (*Bullet) Descriptor() ([]byte, []int)
- func (m *Bullet) GetDx() float32
- func (m *Bullet) GetDy() float32
- func (m *Bullet) GetPlayerId() int32
- func (m *Bullet) GetStime() float32
- func (m *Bullet) GetSx() float32
- func (m *Bullet) GetSy() float32
- func (m *Bullet) GetX() float32
- func (m *Bullet) GetY() float32
- func (*Bullet) ProtoMessage()
- func (m *Bullet) Reset()
- func (m *Bullet) String() string
- func (m *Bullet) XXX_DiscardUnknown()
- func (m *Bullet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bullet) XXX_Merge(src proto.Message)
- func (m *Bullet) XXX_Size() int
- func (m *Bullet) XXX_Unmarshal(b []byte) error
- type ClientGameMessage
- func (*ClientGameMessage) Descriptor() ([]byte, []int)
- func (m *ClientGameMessage) GetBuildWallPayload() *BuildWall
- func (m *ClientGameMessage) GetInitPlayerPayload() *InitPlayer
- func (m *ClientGameMessage) GetInputSequenceNumber() int32
- func (m *ClientGameMessage) GetMessage() isClientGameMessage_Message
- func (m *ClientGameMessage) GetMovePositionPayload() *MovePosition
- func (m *ClientGameMessage) GetSetPositionPayload() *SetPosition
- func (m *ClientGameMessage) GetShootPayload() *Shoot
- func (m *ClientGameMessage) GetTimeElapsed() float32
- func (m *ClientGameMessage) GetUpdatePlayerPayload() *UpdatePlayer
- func (*ClientGameMessage) ProtoMessage()
- func (m *ClientGameMessage) Reset()
- func (m *ClientGameMessage) String() string
- func (m *ClientGameMessage) XXX_DiscardUnknown()
- func (m *ClientGameMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientGameMessage) XXX_Merge(src proto.Message)
- func (*ClientGameMessage) XXX_OneofWrappers() []interface{}
- func (m *ClientGameMessage) XXX_Size() int
- func (m *ClientGameMessage) XXX_Unmarshal(b []byte) error
- type ClientGameMessage_BuildWallPayload
- type ClientGameMessage_InitPlayerPayload
- type ClientGameMessage_MovePositionPayload
- type ClientGameMessage_SetPositionPayload
- type ClientGameMessage_ShootPayload
- type ClientGameMessage_UpdatePlayerPayload
- type Direction
- type InitAll
- func (*InitAll) Descriptor() ([]byte, []int)
- func (m *InitAll) GetInitMap() *Map
- func (m *InitAll) GetInitPlayer() []*InitPlayer
- func (*InitAll) ProtoMessage()
- func (m *InitAll) Reset()
- func (m *InitAll) String() string
- func (m *InitAll) XXX_DiscardUnknown()
- func (m *InitAll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InitAll) XXX_Merge(src proto.Message)
- func (m *InitAll) XXX_Size() int
- func (m *InitAll) XXX_Unmarshal(b []byte) error
- type InitPlayer
- func (*InitPlayer) Descriptor() ([]byte, []int)
- func (m *InitPlayer) GetClientId() int32
- func (m *InitPlayer) GetId() int32
- func (m *InitPlayer) GetIsMain() bool
- func (m *InitPlayer) GetName() string
- func (m *InitPlayer) GetX() float32
- func (m *InitPlayer) GetY() float32
- func (*InitPlayer) ProtoMessage()
- func (m *InitPlayer) Reset()
- func (m *InitPlayer) String() string
- func (m *InitPlayer) XXX_DiscardUnknown()
- func (m *InitPlayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InitPlayer) XXX_Merge(src proto.Message)
- func (m *InitPlayer) XXX_Size() int
- func (m *InitPlayer) XXX_Unmarshal(b []byte) error
- type Map
- func (*Map) Descriptor() ([]byte, []int)
- func (m *Map) GetBlock() []int32
- func (m *Map) GetBlockHeight() float32
- func (m *Map) GetBlockWidth() float32
- func (m *Map) GetNumCols() int32
- func (m *Map) GetNumRows() int32
- func (*Map) ProtoMessage()
- func (m *Map) Reset()
- func (m *Map) String() string
- func (m *Map) XXX_DiscardUnknown()
- func (m *Map) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Map) XXX_Merge(src proto.Message)
- func (m *Map) XXX_Size() int
- func (m *Map) XXX_Unmarshal(b []byte) error
- type MovePosition
- func (*MovePosition) Descriptor() ([]byte, []int)
- func (m *MovePosition) GetDx() float32
- func (m *MovePosition) GetDy() float32
- func (m *MovePosition) GetId() int32
- func (*MovePosition) ProtoMessage()
- func (m *MovePosition) Reset()
- func (m *MovePosition) String() string
- func (m *MovePosition) XXX_DiscardUnknown()
- func (m *MovePosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MovePosition) XXX_Merge(src proto.Message)
- func (m *MovePosition) XXX_Size() int
- func (m *MovePosition) XXX_Unmarshal(b []byte) error
- type Ping
- func (*Ping) Descriptor() ([]byte, []int)
- func (m *Ping) GetPing() string
- func (*Ping) ProtoMessage()
- func (m *Ping) Reset()
- func (m *Ping) String() string
- func (m *Ping) XXX_DiscardUnknown()
- func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ping) XXX_Merge(src proto.Message)
- func (m *Ping) XXX_Size() int
- func (m *Ping) XXX_Unmarshal(b []byte) error
- type Player
- func (*Player) Descriptor() ([]byte, []int)
- func (m *Player) GetCurrentInputNumber() int32
- func (m *Player) GetHealth() float32
- func (m *Player) GetId() int32
- func (m *Player) GetIsDestroy() bool
- func (m *Player) GetLevel() int32
- func (m *Player) GetName() string
- func (m *Player) GetNextReload() *timestamp.Timestamp
- func (m *Player) GetScore() int32
- func (m *Player) GetSize() float32
- func (m *Player) GetX() float32
- func (m *Player) GetY() float32
- 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 RegisterClientID
- func (*RegisterClientID) Descriptor() ([]byte, []int)
- func (m *RegisterClientID) GetClientId() int32
- func (*RegisterClientID) ProtoMessage()
- func (m *RegisterClientID) Reset()
- func (m *RegisterClientID) String() string
- func (m *RegisterClientID) XXX_DiscardUnknown()
- func (m *RegisterClientID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterClientID) XXX_Merge(src proto.Message)
- func (m *RegisterClientID) XXX_Size() int
- func (m *RegisterClientID) XXX_Unmarshal(b []byte) error
- type RemovePlayer
- func (*RemovePlayer) Descriptor() ([]byte, []int)
- func (m *RemovePlayer) GetId() int32
- func (*RemovePlayer) ProtoMessage()
- func (m *RemovePlayer) Reset()
- func (m *RemovePlayer) String() string
- func (m *RemovePlayer) XXX_DiscardUnknown()
- func (m *RemovePlayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RemovePlayer) XXX_Merge(src proto.Message)
- func (m *RemovePlayer) XXX_Size() int
- func (m *RemovePlayer) XXX_Unmarshal(b []byte) error
- type ServerGameMessage
- func (*ServerGameMessage) Descriptor() ([]byte, []int)
- func (m *ServerGameMessage) GetInitAllPayload() *InitAll
- func (m *ServerGameMessage) GetInitPlayerPayload() *InitPlayer
- func (m *ServerGameMessage) GetInitShootPayload() *Shoot
- func (m *ServerGameMessage) GetLastProcessInput() int32
- func (m *ServerGameMessage) GetMessage() isServerGameMessage_Message
- func (m *ServerGameMessage) GetRegisterClientIdPayload() *RegisterClientID
- func (m *ServerGameMessage) GetRemovePlayerPayload() *RemovePlayer
- func (m *ServerGameMessage) GetUpdatePlayerPayload() *Player
- func (*ServerGameMessage) ProtoMessage()
- func (m *ServerGameMessage) Reset()
- func (m *ServerGameMessage) String() string
- func (m *ServerGameMessage) XXX_DiscardUnknown()
- func (m *ServerGameMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ServerGameMessage) XXX_Merge(src proto.Message)
- func (*ServerGameMessage) XXX_OneofWrappers() []interface{}
- func (m *ServerGameMessage) XXX_Size() int
- func (m *ServerGameMessage) XXX_Unmarshal(b []byte) error
- type ServerGameMessage_InitAllPayload
- type ServerGameMessage_InitPlayerPayload
- type ServerGameMessage_InitShootPayload
- type ServerGameMessage_RegisterClientIdPayload
- type ServerGameMessage_RemovePlayerPayload
- type ServerGameMessage_UpdatePlayerPayload
- type SetPosition
- func (*SetPosition) Descriptor() ([]byte, []int)
- func (m *SetPosition) GetId() int32
- func (m *SetPosition) GetX() float32
- func (m *SetPosition) GetY() float32
- func (*SetPosition) ProtoMessage()
- func (m *SetPosition) Reset()
- func (m *SetPosition) String() string
- func (m *SetPosition) XXX_DiscardUnknown()
- func (m *SetPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetPosition) XXX_Merge(src proto.Message)
- func (m *SetPosition) XXX_Size() int
- func (m *SetPosition) XXX_Unmarshal(b []byte) error
- type Shoot
- func (*Shoot) Descriptor() ([]byte, []int)
- func (m *Shoot) GetDx() float32
- func (m *Shoot) GetDy() float32
- func (m *Shoot) GetId() int64
- func (m *Shoot) GetPlayerId() int32
- func (m *Shoot) GetType() Shoot_ShootType
- func (m *Shoot) GetX() float32
- func (m *Shoot) GetY() float32
- func (*Shoot) ProtoMessage()
- func (m *Shoot) Reset()
- func (m *Shoot) String() string
- func (m *Shoot) XXX_DiscardUnknown()
- func (m *Shoot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Shoot) XXX_Merge(src proto.Message)
- func (m *Shoot) XXX_Size() int
- func (m *Shoot) XXX_Unmarshal(b []byte) error
- type Shoot_ShootType
- type UpdatePlayer
- func (*UpdatePlayer) Descriptor() ([]byte, []int)
- func (m *UpdatePlayer) GetHealth() float32
- func (m *UpdatePlayer) GetId() int32
- func (m *UpdatePlayer) GetIsDestroy() bool
- func (m *UpdatePlayer) GetName() string
- func (m *UpdatePlayer) GetX() float32
- func (m *UpdatePlayer) GetY() float32
- func (*UpdatePlayer) ProtoMessage()
- func (m *UpdatePlayer) Reset()
- func (m *UpdatePlayer) String() string
- func (m *UpdatePlayer) XXX_DiscardUnknown()
- func (m *UpdatePlayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdatePlayer) XXX_Merge(src proto.Message)
- func (m *UpdatePlayer) XXX_Size() int
- func (m *UpdatePlayer) XXX_Unmarshal(b []byte) error
- type WallBlock
- func (*WallBlock) Descriptor() ([]byte, []int)
- func (m *WallBlock) GetX() float32
- func (m *WallBlock) GetY() float32
- func (*WallBlock) ProtoMessage()
- func (m *WallBlock) Reset()
- func (m *WallBlock) String() string
- func (m *WallBlock) XXX_DiscardUnknown()
- func (m *WallBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WallBlock) XXX_Merge(src proto.Message)
- func (m *WallBlock) XXX_Size() int
- func (m *WallBlock) 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",
}
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) ProtoMessage ¶
func (*BuildWall) ProtoMessage()
func (*BuildWall) XXX_DiscardUnknown ¶
func (m *BuildWall) XXX_DiscardUnknown()
func (*BuildWall) XXX_Marshal ¶
func (*BuildWall) XXX_Unmarshal ¶
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) GetPlayerId ¶
func (*Bullet) ProtoMessage ¶
func (*Bullet) ProtoMessage()
func (*Bullet) XXX_DiscardUnknown ¶
func (m *Bullet) XXX_DiscardUnknown()
func (*Bullet) XXX_Marshal ¶
func (*Bullet) XXX_Unmarshal ¶
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 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) GetInitMap ¶
func (*InitAll) GetInitPlayer ¶
func (m *InitAll) GetInitPlayer() []*InitPlayer
func (*InitAll) ProtoMessage ¶
func (*InitAll) ProtoMessage()
func (*InitAll) XXX_DiscardUnknown ¶
func (m *InitAll) XXX_DiscardUnknown()
func (*InitAll) XXX_Marshal ¶
func (*InitAll) XXX_Unmarshal ¶
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) GetBlockHeight ¶
func (*Map) GetBlockWidth ¶
func (*Map) GetNumCols ¶
func (*Map) GetNumRows ¶
func (*Map) ProtoMessage ¶
func (*Map) ProtoMessage()
func (*Map) XXX_DiscardUnknown ¶
func (m *Map) XXX_DiscardUnknown()
func (*Map) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) XXX_DiscardUnknown ¶
func (m *Ping) XXX_DiscardUnknown()
func (*Ping) XXX_Unmarshal ¶
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) GetCurrentInputNumber ¶
func (*Player) GetIsDestroy ¶
func (*Player) GetNextReload ¶
func (*Player) ProtoMessage ¶
func (*Player) ProtoMessage()
func (*Player) XXX_DiscardUnknown ¶
func (m *Player) XXX_DiscardUnknown()
func (*Player) XXX_Marshal ¶
func (*Player) XXX_Unmarshal ¶
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) GetPlayerId ¶
func (*Shoot) GetType ¶
func (m *Shoot) GetType() Shoot_ShootType
func (*Shoot) ProtoMessage ¶
func (*Shoot) ProtoMessage()
func (*Shoot) XXX_DiscardUnknown ¶
func (m *Shoot) XXX_DiscardUnknown()
func (*Shoot) XXX_Marshal ¶
func (*Shoot) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*WallBlock) ProtoMessage()
func (*WallBlock) XXX_DiscardUnknown ¶
func (m *WallBlock) XXX_DiscardUnknown()
func (*WallBlock) XXX_Marshal ¶
func (*WallBlock) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.