2022-03-31 02:32:14 +00:00
|
|
|
|
// Project Sword & Gun Copyright © 2021 Kevin Poretti
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Modules/ModuleManager.h"
|
2022-04-02 20:44:29 +00:00
|
|
|
|
#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:
|
2022-04-02 20:44:29 +00:00
|
|
|
|
/** IModuleInterface */
|
2022-03-31 02:32:14 +00:00
|
|
|
|
virtual void StartupModule() override;
|
|
|
|
|
virtual void ShutdownModule() override;
|
2022-04-02 20:44:29 +00:00
|
|
|
|
|
2022-03-31 02:32:14 +00:00
|
|
|
|
virtual void AddModuleListeners() {};
|
|
|
|
|
|
2022-04-02 20:44:29 +00:00
|
|
|
|
TSharedPtr<FSlateStyleSet> StyleSet;
|
|
|
|
|
|
2022-03-31 02:32:14 +00:00
|
|
|
|
protected:
|
|
|
|
|
TArray<TSharedRef<ISNGModuleListenerInterface>> ModuleListeners;
|
|
|
|
|
};
|