More corrections to module src

This commit is contained in:
2024-04-08 04:57:55 -04:00
parent 31c312610f
commit 290bcc511b
11 changed files with 3426 additions and 4 deletions

View File

@ -1,3 +1,13 @@
#include "SurgoEditorModule.h"
IMPLEMENT_MODULE(FSurgoEditorModule, SurgoEditor);
IMPLEMENT_GAME_MODULE(FSurgoEditorModule, SurgoEditor);
void FSurgoEditorModule::StartupModule()
{
}
void FSurgoEditorModule::ShutdownModule()
{
}

View File

@ -5,5 +5,15 @@
class SURGOEDITOR_API FSurgoEditorModule : public IModuleInterface
{
public:
static bool IsAvailable() {
return FModuleManager::Get().IsModuleLoaded("SurgoEditor");
}
static FSurgoEditorModule& Get() {
return FModuleManager::LoadModuleChecked<FSurgoEditorModule>("SurgoEditor");
}
protected:
void StartupModule() override;
void ShutdownModule() override;
};