Clothing system refactor

This commit is contained in:
2026-05-29 22:13:09 +03:00
parent c6eff4d076
commit cfecd1f4c6
59 changed files with 417 additions and 227 deletions
@@ -1 +1,20 @@
#include "SexToyInstance.h"
#include "StructUtils/InstancedStruct.h"
void USexToyInstance::CaptureState(FInstancedStruct& OutState) const
{
FSexToyInstanceState State;
State.bActive = bActive;
State.Battery = Battery;
OutState.InitializeAs<FSexToyInstanceState>(State);
}
void USexToyInstance::ApplyState(const FInstancedStruct& InState)
{
if (const FSexToyInstanceState* State = InState.GetPtr<FSexToyInstanceState>())
{
bActive = State->bActive;
Battery = State->Battery;
}
}