6 #include <Containers/Ticker.h>
7 #include <Modules/ModuleInterface.h>
8 #include <Modules/ModuleManager.h>
9 #include <Runtime/Launch/Resources/Version.h>
14 DECLARE_LOG_CATEGORY_EXTERN(LogLovenseIntegration, All, All)
23 virtual void StartupModule()
override;
24 virtual void ShutdownModule()
override;
32 LOVENSEINTEGRATION_API
void Initialize();
35 void StartHeartbeat();
43 static const FName NAME_LovenseIntegration(TEXT(
"LovenseIntegration"));
44 return FModuleManager::LoadModuleChecked<FLovenseIntegrationModule>(NAME_LovenseIntegration);
48 FORCEINLINE
class FTimerManager*
GetTimerManager() {
return this->timerManager.Get(); }
62 bool HeartBeat(
float deltaTime);
69 TSharedPtr<class FTimerManager> timerManager =
nullptr;
71 FTickerDelegate heartbeatTickerDelegate;
72 #if ENGINE_MAJOR_VERSION >= 5
74 FTSTicker::FDelegateHandle heartbeatTickerDelegateHandle;
77 FDelegateHandle heartbeatTickerDelegateHandle;
81 TSharedPtr<class FLovenseManager> lovenseManager =
nullptr;
Lovense Integration Module class. Use FLovenseIntegrationModule::Get() to easily get the module insta...
Definition: LovenseIntegration.h:20
static FLovenseManager * Get()
Get the instance of the lovense manager. Always valid.
Definition: LovenseManager.cpp:49
static FORCEINLINE FLovenseIntegrationModule & Get()
Get the instance of the module. Always valid.
Definition: LovenseIntegration.h:40
FORCEINLINE class FLovenseManager * GetLovenseManager()
Get the instance of the lovense manager. Usually you would use FLovenseManager:Get() for this,...
Definition: LovenseIntegration.h:54
FORCEINLINE class FTimerManager * GetTimerManager()
Get the instance of the timer manager. Only valid while the integration is running.
Definition: LovenseIntegration.h:48
This class defines the plugin interface. Use FLovenseManager::Get() to get the global manager instanc...
Definition: LovenseManager.h:99