Select Git revision
-
Philipp Schäfer authoredPhilipp Schäfer authored
VAPlugin.h 6.30 KiB
#pragma once
#include "Modules/ModuleManager.h"
#include <string> // std::string
#include "VAEnums.h" // EPlayState
#include "VAServerLauncher.h"
#define VANET_STATIC
#define VABASE_STATIC
#define VA_STATIC
//forward declarations:
class AVAReceiverActor;
class AVAReflectionWall;
class UVAAbstractSignalSource;
// Interface Classes
class CVAException;
class IVANetClient;
class IVAInterface;
class VAQuat;
class VAVec3;
class CVAStruct;
class FVAPlugin : public IModuleInterface
{
public:
// process / output CVAException //
static void ProcessException(FString Location, CVAException Exception);
static void ProcessException(FString Location, FString ExceptionString);
// ******* Initialization Functions ******* //
// Function called when Starting up the module //
void StartupModule() override;
// Function called when Shutting down the module //
void ShutdownModule() override;
// Asks whether to use the VA Server and / or the debug mode
static void AskForSettings(FString Host = "unknown", int Port = 0, bool bAskForDebugMode = true,
bool bAskForUseVA = true);
// Check if all Library Handles are well initialized //
static bool CheckLibraryHandles();
// ******* General Server Functions ******* //
// connect to Server (called by initializeServer) //
static bool ConnectServer(FString HostF, int Port);
// reset Server //
static bool ResetServer();
// check if VA Server is connected //
static bool IsConnected();
// Disconnect from VA Server
static bool DisconnectServer();
void BeginSession(bool bSomething);
void EndSession(bool bSomething);
static void AddVAServerSearchPath(const std::string& SearchPath);