public override void BuildPacket() { base.BuildPacket(); var request = new ReadMotionDataRequest() { motion_id = MotionID, type = Type, offset = Offset, size = Size }; byte[] packetData; using (var stream = new MemoryStream()) { Serializer.Serialize(stream, request); packetData = stream.ToArray(); } GlobalVariables.CountRequest++; Packet = StoreConnection.BuildServerPacket(packetData.Length + 16, (int)MessageType.Type.READ_MOTION_DATA, 2, packetData, GlobalVariables.CountRequest); }
public DownloadMotionTrunkDataStoreRequest(ulong id, ReadMotionDataRequest.Type type, ulong offset, ulong size) { MotionID = id; Type = type; Offset = offset; Size = size; }