Documentation ¶
Index ¶
- type BroadCast
- func (*BroadCast) Descriptor() ([]byte, []int)
- func (m *BroadCast) GetActionData() int32
- func (m *BroadCast) GetContent() string
- func (m *BroadCast) GetData() isBroadCast_Data
- func (m *BroadCast) GetP() *Position
- func (m *BroadCast) GetPID() int32
- func (m *BroadCast) GetTp() int32
- func (*BroadCast) ProtoMessage()
- func (m *BroadCast) Reset()
- func (m *BroadCast) String() string
- func (m *BroadCast) XXX_DiscardUnknown()
- func (m *BroadCast) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BroadCast) XXX_Merge(src proto.Message)
- func (*BroadCast) XXX_OneofWrappers() []interface{}
- func (m *BroadCast) XXX_Size() int
- func (m *BroadCast) XXX_Unmarshal(b []byte) error
- type BroadCast_ActionData
- type BroadCast_Content
- type BroadCast_P
- type Player
- func (*Player) Descriptor() ([]byte, []int)
- func (m *Player) GetP() *Position
- func (m *Player) GetPID() int32
- 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 Position
- func (*Position) Descriptor() ([]byte, []int)
- func (m *Position) GetV() float32
- func (m *Position) GetX() float32
- func (m *Position) GetY() float32
- func (m *Position) GetZ() float32
- func (*Position) ProtoMessage()
- func (m *Position) Reset()
- func (m *Position) String() string
- func (m *Position) XXX_DiscardUnknown()
- func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Position) XXX_Merge(src proto.Message)
- func (m *Position) XXX_Size() int
- func (m *Position) XXX_Unmarshal(b []byte) error
- type SyncPID
- func (*SyncPID) Descriptor() ([]byte, []int)
- func (m *SyncPID) GetPID() int32
- func (*SyncPID) ProtoMessage()
- func (m *SyncPID) Reset()
- func (m *SyncPID) String() string
- func (m *SyncPID) XXX_DiscardUnknown()
- func (m *SyncPID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncPID) XXX_Merge(src proto.Message)
- func (m *SyncPID) XXX_Size() int
- func (m *SyncPID) XXX_Unmarshal(b []byte) error
- type SyncPlayers
- func (*SyncPlayers) Descriptor() ([]byte, []int)
- func (m *SyncPlayers) GetPs() []*Player
- func (*SyncPlayers) ProtoMessage()
- func (m *SyncPlayers) Reset()
- func (m *SyncPlayers) String() string
- func (m *SyncPlayers) XXX_DiscardUnknown()
- func (m *SyncPlayers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncPlayers) XXX_Merge(src proto.Message)
- func (m *SyncPlayers) XXX_Size() int
- func (m *SyncPlayers) XXX_Unmarshal(b []byte) error
- type Talk
- func (*Talk) Descriptor() ([]byte, []int)
- func (m *Talk) GetContent() string
- func (*Talk) ProtoMessage()
- func (m *Talk) Reset()
- func (m *Talk) String() string
- func (m *Talk) XXX_DiscardUnknown()
- func (m *Talk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Talk) XXX_Merge(src proto.Message)
- func (m *Talk) XXX_Size() int
- func (m *Talk) XXX_Unmarshal(b []byte) error
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"` // 1 - World chat, 2 - Player position, 3 - Action, 4 - Update of coordinates after movement // 1-世界聊天 2-玩家位置 3 动作 4 移动之后坐标信息更新 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:"-"` }
Player broadcast data 玩家广播数据
func (*BroadCast) Descriptor ¶
func (*BroadCast) GetActionData ¶
func (*BroadCast) GetContent ¶
func (*BroadCast) ProtoMessage ¶
func (*BroadCast) ProtoMessage()
func (*BroadCast) XXX_DiscardUnknown ¶
func (m *BroadCast) XXX_DiscardUnknown()
func (*BroadCast) XXX_Marshal ¶
func (*BroadCast) XXX_OneofWrappers ¶
func (*BroadCast) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*BroadCast) XXX_Unmarshal ¶
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:"-"` }
Player information
func (*Player) Descriptor ¶
func (*Player) ProtoMessage ¶
func (*Player) ProtoMessage()
func (*Player) XXX_DiscardUnknown ¶
func (m *Player) XXX_DiscardUnknown()
func (*Player) XXX_Marshal ¶
func (*Player) XXX_Unmarshal ¶
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:"-"` }
Player position
func (*Position) Descriptor ¶
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) XXX_DiscardUnknown ¶
func (m *Position) XXX_DiscardUnknown()
func (*Position) XXX_Marshal ¶
func (*Position) XXX_Unmarshal ¶
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:"-"` }
Synchronize client player ID 同步客户端玩家ID
func (*SyncPID) Descriptor ¶
func (*SyncPID) ProtoMessage ¶
func (*SyncPID) ProtoMessage()
func (*SyncPID) XXX_DiscardUnknown ¶
func (m *SyncPID) XXX_DiscardUnknown()
func (*SyncPID) XXX_Marshal ¶
func (*SyncPID) XXX_Unmarshal ¶
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:"-"` }
Synchronize player display data 同步玩家显示数据
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:"-"` }
Player chat data 玩家聊天数据
func (*Talk) Descriptor ¶
func (*Talk) GetContent ¶
func (*Talk) ProtoMessage ¶
func (*Talk) ProtoMessage()
func (*Talk) XXX_DiscardUnknown ¶
func (m *Talk) XXX_DiscardUnknown()
func (*Talk) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.