2020-07-14 17:58:13 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
#include "MetasoundEngineModule.h"
|
|
|
|
|
|
2020-07-15 00:16:40 -04:00
|
|
|
#include "Metasound.h"
|
2020-07-15 00:01:50 -04:00
|
|
|
#include "Modules/ModuleManager.h"
|
2020-07-14 17:58:13 -04:00
|
|
|
|
2020-07-15 00:16:40 -04:00
|
|
|
|
2020-07-14 17:58:13 -04:00
|
|
|
DEFINE_LOG_CATEGORY(LogMetasoundEngine);
|
|
|
|
|
|
|
|
|
|
class FMetasoundEngineModule : public IMetasoundEngineModule
|
|
|
|
|
{
|
2020-07-15 00:16:40 -04:00
|
|
|
virtual UMetasound* DeserializeMetasound(const FString& InPath) override
|
|
|
|
|
{
|
|
|
|
|
FMetasoundDocument MetasoundDoc;
|
|
|
|
|
ensureAlwaysMsgf(false, TEXT("Implement the actual loading part!"));
|
|
|
|
|
|
|
|
|
|
UMetasound* NewMetasoundNode = NewObject<UMetasound>();
|
|
|
|
|
NewMetasoundNode->SetMetasoundDocument(MetasoundDoc);
|
|
|
|
|
|
|
|
|
|
return NewMetasoundNode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
virtual void SerializeMetasound(const UMetasound& InMetasound, const FString& InPath) override
|
|
|
|
|
{
|
|
|
|
|
ensureAlwaysMsgf(false, TEXT("Implement the actual saving part!"));
|
|
|
|
|
ensureAlwaysMsgf(false, TEXT("Decide whether to delete this graph from the asset that owns it!"));
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-14 17:58:13 -04:00
|
|
|
virtual void StartupModule() override
|
|
|
|
|
{
|
|
|
|
|
UE_LOG(LogMetasoundEngine, Log, TEXT("Metasound Engine Initialized"));
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
IMPLEMENT_MODULE(FMetasoundEngineModule, MetasoundEngine);
|