27 lines
731 B
C++
27 lines
731 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "SceneStateEventSchemaHandle.h"
|
|
#include "SceneStateEventSchema.h"
|
|
#include "SceneStateEventSchemaCollection.h"
|
|
#include "StructUtils/StructView.h"
|
|
#include "StructUtils/UserDefinedStruct.h"
|
|
|
|
UUserDefinedStruct* FSceneStateEventSchemaHandle::GetEventStruct() const
|
|
{
|
|
return EventStruct.LoadSynchronous();
|
|
}
|
|
|
|
USceneStateEventSchemaObject* FSceneStateEventSchemaHandle::GetEventSchema() const
|
|
{
|
|
return EventSchema.LoadSynchronous();
|
|
}
|
|
|
|
FStructView FSceneStateEventSchemaHandle::GetDefaultDataView() const
|
|
{
|
|
if (UUserDefinedStruct* Struct = GetEventStruct())
|
|
{
|
|
return FStructView(Struct, const_cast<uint8*>(Struct->GetDefaultInstance()));
|
|
}
|
|
return FStructView();
|
|
}
|