SwordNGunUE4/SwordNGun/Source/SwordNGunEditor/ISNGModuleInterface.h

29 lines
619 B
C
Raw Permalink Normal View History

2022-03-31 02:32:14 +00:00
// Project Sword & Gun Copyright © 2021 Kevin Poretti
#pragma once
#include "Modules/ModuleManager.h"
#include "Styling/SlateStyle.h"
2022-03-31 02:32:14 +00:00
class ISNGModuleListenerInterface
{
public:
virtual void OnStartupModule() {};
virtual void OnShutdownModule() {};
};
class ISNGModuleInterface : public IModuleInterface
{
public:
/** IModuleInterface */
2022-03-31 02:32:14 +00:00
virtual void StartupModule() override;
virtual void ShutdownModule() override;
2022-03-31 02:32:14 +00:00
virtual void AddModuleListeners() {};
TSharedPtr<FSlateStyleSet> StyleSet;
2022-03-31 02:32:14 +00:00
protected:
TArray<TSharedRef<ISNGModuleListenerInterface>> ModuleListeners;
};