142 bool bTeleportGrips = MoveActionFlags & 0x01;
143 Ar.SerializeBits(&bTeleportGrips, 1);
147 bool bTeleportCharacter = MoveActionFlags & 0x02;
148 Ar.SerializeBits(&bTeleportCharacter, 1);
151 Ar.SerializeBits(&VelRetentionSetting, 2);
155 bOutSuccess &= SerializePackedVector<100, 30>(MoveActionVel, Ar);
163 bool bUseLocOnly =
false;
164 Ar.SerializeBits(&bUseLocOnly, 1);
165 MoveActionFlags |= (bUseLocOnly << 2);
170 MoveActionRot.Yaw = FRotator::DecompressAxisFromShort(Yaw);
177 bool bTeleportGrips =
false;
178 Ar.SerializeBits(&bTeleportGrips, 1);
179 MoveActionFlags |= (uint8)bTeleportGrips;
183 bool bTeleportCharacter =
false;
184 Ar.SerializeBits(&bTeleportCharacter, 1);
185 MoveActionFlags |= ((uint8)bTeleportCharacter << 1);
189 Ar.SerializeBits(&VelRetentionSetting, 2);
193 bOutSuccess &= SerializePackedVector<100, 30>(MoveActionVel, Ar);
208 Yaw = FRotator::CompressAxisToShort(MoveActionRot.Yaw);
211 bool bSkipEncroachment = MoveActionFlags & 0x01;
212 Ar.SerializeBits(&bSkipEncroachment, 1);
213 Ar.SerializeBits(&VelRetentionSetting, 2);
217 bOutSuccess &= SerializePackedVector<100, 30>(MoveActionVel, Ar);
225 MoveActionRot.Yaw = FRotator::DecompressAxisFromShort(Yaw);
227 bool bSkipEncroachment =
false;
228 Ar.SerializeBits(&bSkipEncroachment, 1);
229 MoveActionFlags |= (uint8)bSkipEncroachment;
231 Ar.SerializeBits(&VelRetentionSetting, 2);
235 bOutSuccess &= SerializePackedVector<100, 30>(MoveActionVel, Ar);
241 bOutSuccess &= SerializePackedVector<100, 30>(MoveActionLoc, Ar);
248 Ar.SerializeBits(&MoveActionFlags, 1);
249 bOutSuccess &= SerializePackedVector<100, 30>(MoveActionLoc, Ar);
255 Yaw = FRotator::CompressAxisToShort(MoveActionRot.Yaw);
261 MoveActionRot.Yaw = FRotator::DecompressAxisFromShort(Yaw);
268 Ar.SerializeBits(&MoveActionDataReq, 2);
271 bOutSuccess &= SerializePackedVector<100, 30>(MoveActionLoc, Ar);
274 MoveActionRot.SerializeCompressedShort(Ar);
276 bool bSerializeObjects = MoveActionObjectReferences.Num() > 0;
277 Ar.SerializeBits(&bSerializeObjects, 1);
278 if (bSerializeObjects)
280 Ar << MoveActionObjectReferences;
283 bool bSerializeFlags = MoveActionFlags != 0x00;
284 Ar.SerializeBits(&bSerializeFlags, 1);
287 Ar << MoveActionFlags;
301 WithNetSerializer =
true
308 GENERATED_USTRUCT_BODY()
320 bool NetSerialize(FArchive& Ar,
class UPackageMap* Map,
bool& bOutSuccess)