pb

package
v0.0.0-...-27e5491 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BroadCast

type BroadCast struct {
	Pid int32 `protobuf:"varint,1,opt,name=Pid,proto3" json:"Pid,omitempty"`
	Tp  int32 `protobuf:"varint,2,opt,name=Tp,proto3" json:"Tp,omitempty"`
	// Types that are valid to be assigned to Data:
	//	*BroadCast_Content
	//	*BroadCast_P
	//	*BroadCast_ActionData
	Data                 isBroadCast_Data `protobuf_oneof:"Data"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

玩家广播数据

func (*BroadCast) Descriptor

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

func (*BroadCast) GetActionData

func (m *BroadCast) GetActionData() int32

func (*BroadCast) GetContent

func (m *BroadCast) GetContent() string

func (*BroadCast) GetData

func (m *BroadCast) GetData() isBroadCast_Data

func (*BroadCast) GetP

func (m *BroadCast) GetP() *Position

func (*BroadCast) GetPid

func (m *BroadCast) GetPid() int32

func (*BroadCast) GetTp

func (m *BroadCast) GetTp() int32

func (*BroadCast) ProtoMessage

func (*BroadCast) ProtoMessage()

func (*BroadCast) Reset

func (m *BroadCast) Reset()

func (*BroadCast) String

func (m *BroadCast) String() string

func (*BroadCast) XXX_DiscardUnknown

func (m *BroadCast) XXX_DiscardUnknown()

func (*BroadCast) XXX_Marshal

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

func (*BroadCast) XXX_Merge

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

func (*BroadCast) XXX_OneofWrappers

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*BroadCast) XXX_Size

func (m *BroadCast) XXX_Size() int

func (*BroadCast) XXX_Unmarshal

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

type BroadCast_ActionData

type BroadCast_ActionData struct {
	ActionData int32 `protobuf:"varint,5,opt,name=ActionData,proto3,oneof"`
}

type BroadCast_Content

type BroadCast_Content struct {
	Content string `protobuf:"bytes,3,opt,name=Content,proto3,oneof"`
}

type BroadCast_P

type BroadCast_P struct {
	P *Position `protobuf:"bytes,4,opt,name=P,proto3,oneof"`
}

type Player

type Player struct {
	Pid                  int32     `protobuf:"varint,1,opt,name=Pid,proto3" json:"Pid,omitempty"`
	P                    *Position `protobuf:"bytes,2,opt,name=P,proto3" json:"P,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

玩家信息

func (*Player) Descriptor

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

func (*Player) GetP

func (m *Player) GetP() *Position

func (*Player) GetPid

func (m *Player) GetPid() int32

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 Position

type Position 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"`
	Z                    float32  `protobuf:"fixed32,3,opt,name=Z,proto3" json:"Z,omitempty"`
	V                    float32  `protobuf:"fixed32,4,opt,name=V,proto3" json:"V,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

玩家位置

func (*Position) Descriptor

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

func (*Position) GetV

func (m *Position) GetV() float32

func (*Position) GetX

func (m *Position) GetX() float32

func (*Position) GetY

func (m *Position) GetY() float32

func (*Position) GetZ

func (m *Position) GetZ() float32

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) Reset

func (m *Position) Reset()

func (*Position) String

func (m *Position) String() string

func (*Position) XXX_DiscardUnknown

func (m *Position) XXX_DiscardUnknown()

func (*Position) XXX_Marshal

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

func (*Position) XXX_Merge

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

func (*Position) XXX_Size

func (m *Position) XXX_Size() int

func (*Position) XXX_Unmarshal

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

type SyncPid

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

同步客户端玩家ID

func (*SyncPid) Descriptor

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

func (*SyncPid) GetPid

func (m *SyncPid) GetPid() int32

func (*SyncPid) ProtoMessage

func (*SyncPid) ProtoMessage()

func (*SyncPid) Reset

func (m *SyncPid) Reset()

func (*SyncPid) String

func (m *SyncPid) String() string

func (*SyncPid) XXX_DiscardUnknown

func (m *SyncPid) XXX_DiscardUnknown()

func (*SyncPid) XXX_Marshal

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

func (*SyncPid) XXX_Merge

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

func (*SyncPid) XXX_Size

func (m *SyncPid) XXX_Size() int

func (*SyncPid) XXX_Unmarshal

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

type SyncPlayers

type SyncPlayers struct {
	Ps                   []*Player `protobuf:"bytes,1,rep,name=ps,proto3" json:"ps,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

同步玩家显示数据

func (*SyncPlayers) Descriptor

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

func (*SyncPlayers) GetPs

func (m *SyncPlayers) GetPs() []*Player

func (*SyncPlayers) ProtoMessage

func (*SyncPlayers) ProtoMessage()

func (*SyncPlayers) Reset

func (m *SyncPlayers) Reset()

func (*SyncPlayers) String

func (m *SyncPlayers) String() string

func (*SyncPlayers) XXX_DiscardUnknown

func (m *SyncPlayers) XXX_DiscardUnknown()

func (*SyncPlayers) XXX_Marshal

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

func (*SyncPlayers) XXX_Merge

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

func (*SyncPlayers) XXX_Size

func (m *SyncPlayers) XXX_Size() int

func (*SyncPlayers) XXX_Unmarshal

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

type Talk

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

玩家聊天数据

func (*Talk) Descriptor

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

func (*Talk) GetContent

func (m *Talk) GetContent() string

func (*Talk) ProtoMessage

func (*Talk) ProtoMessage()

func (*Talk) Reset

func (m *Talk) Reset()

func (*Talk) String

func (m *Talk) String() string

func (*Talk) XXX_DiscardUnknown

func (m *Talk) XXX_DiscardUnknown()

func (*Talk) XXX_Marshal

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

func (*Talk) XXX_Merge

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

func (*Talk) XXX_Size

func (m *Talk) XXX_Size() int

func (*Talk) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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