本文整理汇总了Golang中packet.Packet.ReadInt16方法的典型用法代码示例。如果您正苦于以下问题:Golang Packet.ReadInt16方法的具体用法?Golang Packet.ReadInt16怎么用?Golang Packet.ReadInt16使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类packet.Packet
的用法示例。
在下文中一共展示了Packet.ReadInt16方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: MsgSceneVector3Decode
func MsgSceneVector3Decode(pack *packet.Packet) *MsgSceneVector3 {
msgSceneVector3 := &MsgSceneVector3{}
msgSceneVector3.x = pack.ReadInt16()
msgSceneVector3.y = pack.ReadInt16()
msgSceneVector3.z = pack.ReadInt16()
return msgSceneVector3
}
示例2: ReqSceneMoveDecode
func ReqSceneMoveDecode(pack *packet.Packet) *ReqSceneMove {
reqSceneMove := &ReqSceneMove{}
reqSceneMove.sceneRotPos = MsgSceneRotPosDecode(pack)
reqSceneMove.forward = MsgSceneVector3Decode(pack)
reqSceneMove.aniName = pack.ReadString()
reqSceneMove.xAxis = pack.ReadInt16()
return reqSceneMove
}
示例3: AckSceneMoveDecode
func AckSceneMoveDecode(pack *packet.Packet) *AckSceneMove {
ackSceneMove := &AckSceneMove{}
ackSceneMove.sceneRotPos = MsgSceneRotPosDecode(pack)
ackSceneMove.forward = MsgSceneVector3Decode(pack)
ackSceneMove.aniName = pack.ReadString()
ackSceneMove.xAxis = pack.ReadInt16()
ackSceneMove.uid = pack.ReadUint32()
return ackSceneMove
}
示例4: MsgSceneRotPosDecode
func MsgSceneRotPosDecode(pack *packet.Packet) *MsgSceneRotPos {
msgSceneRotPos := &MsgSceneRotPos{}
msgSceneRotPos.rotX = pack.ReadInt16()
msgSceneRotPos.rotY = pack.ReadInt16()
msgSceneRotPos.rotZ = pack.ReadInt16()
msgSceneRotPos.posX = pack.ReadInt16()
msgSceneRotPos.posY = pack.ReadInt16()
msgSceneRotPos.posZ = pack.ReadInt16()
return msgSceneRotPos
}