Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Move ¶
type Move struct { Edge uint32 //Move 和 Edge 合成一个消息; 0:表示Move,1:表示Edge,即表示是边界外的位置,不需要给她发广播消息 UserID uint64 Timestamp int64 Geohash uint64 X, Y, Z float32 //U3D 的原始坐标? Dir float32 //direction 方向 Dress []byte }
Move 是移动消息,同时,还要给对方发送附近的人
type NearbyList ¶
NearbyList 是附近的人列表变化(靠近、离开)
func (*NearbyList) MsgNO ¶
func (m *NearbyList) MsgNO() uint16
func (*NearbyList) RecvMsg ¶
func (m *NearbyList) RecvMsg(connID int, logT *log.TraceInfoST)
RecvMsg ServiceInfo消息是服务器连接后第一个要发送的消息,接收到这个消息后,才能开始服务
type ServiceInfo ¶
type ServiceInfo struct {
ServiceID string
}
func (*ServiceInfo) MsgNO ¶
func (m *ServiceInfo) MsgNO() uint16
func (*ServiceInfo) RecvMsg ¶
func (m *ServiceInfo) RecvMsg(connID int, logT *log.TraceInfoST)
RecvMsg ServiceInfo消息是服务器连接后第一个要发送的消息,接收到这个消息后,才能开始服务
Click to show internal directories.
Click to hide internal directories.