本文整理匯總了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
}