Skip to content
Snippets Groups Projects
Select Git revision
  • f6f9bbf64798846cd94a21d254c56b91f4649981
  • 4.26 default protected
  • 5.3
  • dev/5.5
  • dev/5.3
  • dev/5.1
  • deprecated/4.22
7 results

VAPlugin.h

Blame
  • 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);