Files
UnrealEngine/Engine/Plugins/Experimental/Mover/Source/MoverCVDData/Public/MoverCVDDataWrappers.h
2025-05-18 13:04:45 +08:00

41 lines
1.0 KiB
C

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "DataWrappers/ChaosVDDataSerializationMacros.h"
#include "DataWrappers/ChaosVDParticleDataWrapper.h"
#include "UObject/ObjectMacros.h"
#include "MoverCVDDataWrappers.generated.h"
USTRUCT(DisplayName="Mover Sim Data")
struct FMoverCVDSimDataWrapper : public FChaosVDWrapperDataBase
{
GENERATED_BODY()
inline static FStringView WrapperTypeName = TEXT("FMoverCVDSimDataWrapper");
UPROPERTY(VisibleAnywhere, Category="Mover Info")
int32 SolverID = INDEX_NONE;
UPROPERTY(VisibleAnywhere, Category="Mover Info")
int32 ParticleID = INDEX_NONE;
TArray<uint8> SyncStateBytes;
TArray<uint8> SyncStateDataCollectionBytes;
TArray<uint8> InputCmdBytes;
TArray<uint8> InputMoverDataCollectionBytes;
TArray<uint8> LocalSimDataBytes;
MOVERCVDDATA_API bool Serialize(FArchive& Ar);
};
CVD_IMPLEMENT_SERIALIZER(FMoverCVDSimDataWrapper)
USTRUCT()
struct FMoverCVDSimDataContainer
{
GENERATED_BODY()
TMap<int32, TArray<TSharedPtr<FMoverCVDSimDataWrapper>>> SimDataBySolverID;
};