Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
API::ArkBaseApi Class Reference

#include <ArkBaseApi.h>

+ Inheritance diagram for API::ArkBaseApi:
+ Collaboration diagram for API::ArkBaseApi:

Public Member Functions

 ArkBaseApi ()
 
 ~ArkBaseApi () override=default
 
bool Init () override
 
float GetVersion () override
 
std::string GetApiName () override
 
void RegisterCommands () override
 
std::unique_ptr< AsaApi::ICommands > & GetCommands () override
 
std::unique_ptr< AsaApi::IHooks > & GetHooks () override
 
std::unique_ptr< AsaApi::IApiUtils > & GetApiUtils () override
 
- Public Member Functions inherited from API::IBaseApi
virtual ~IBaseApi ()=default
 

Private Member Functions

nlohmann::json GetConfig ()
 
bool DownloadCacheFiles (const std::filesystem::path downloadFile, const std::filesystem::path localFile)
 

Static Private Member Functions

static FString LoadPlugin (FString *cmd)
 
static FString UnloadPlugin (FString *cmd)
 
static void LoadPluginCmd (APlayerController *, FString *, bool)
 
static void UnloadPluginCmd (APlayerController *, FString *, bool)
 
static void LoadPluginRcon (RCONClientConnection *, RCONPacket *, UWorld *)
 
static void UnloadPluginRcon (RCONClientConnection *, RCONPacket *, UWorld *)
 
static void SetServerID (RCONClientConnection *, RCONPacket *, UWorld *)
 

Private Attributes

std::unique_ptr< AsaApi::ICommandscommands_
 
std::unique_ptr< AsaApi::IHookshooks_
 
std::unique_ptr< AsaApi::IApiUtilsapi_utils_
 

Detailed Description

Definition at line 11 of file ArkBaseApi.h.

Constructor & Destructor Documentation

◆ ArkBaseApi()

API::ArkBaseApi::ArkBaseApi ( )

Definition at line 20 of file ArkBaseApi.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ~ArkBaseApi()

API::ArkBaseApi::~ArkBaseApi ( )
overridedefault

Member Function Documentation

◆ DownloadCacheFiles()

bool API::ArkBaseApi::DownloadCacheFiles ( const std::filesystem::path downloadFile,
const std::filesystem::path localFile )
private

Definition at line 136 of file ArkBaseApi.cpp.

◆ GetApiName()

std::string API::ArkBaseApi::GetApiName ( )
overridevirtual

Implements API::IBaseApi.

Definition at line 227 of file ArkBaseApi.cpp.

◆ GetApiUtils()

std::unique_ptr< AsaApi::IApiUtils > & API::ArkBaseApi::GetApiUtils ( )
overridevirtual

Implements API::IBaseApi.

Definition at line 242 of file ArkBaseApi.cpp.

◆ GetCommands()

std::unique_ptr< AsaApi::ICommands > & API::ArkBaseApi::GetCommands ( )
overridevirtual

Implements API::IBaseApi.

Definition at line 237 of file ArkBaseApi.cpp.

◆ GetConfig()

nlohmann::json API::ArkBaseApi::GetConfig ( )
private

Definition at line 122 of file ArkBaseApi.cpp.

+ Here is the call graph for this function:

◆ GetHooks()

std::unique_ptr< AsaApi::IHooks > & API::ArkBaseApi::GetHooks ( )
overridevirtual

Implements API::IBaseApi.

Definition at line 232 of file ArkBaseApi.cpp.

◆ GetVersion()

float API::ArkBaseApi::GetVersion ( )
overridevirtual

Implements API::IBaseApi.

Definition at line 222 of file ArkBaseApi.cpp.

◆ Init()

bool API::ArkBaseApi::Init ( )
overridevirtual

Implements API::IBaseApi.

Definition at line 27 of file ArkBaseApi.cpp.

+ Here is the call graph for this function:

◆ LoadPlugin()

FString API::ArkBaseApi::LoadPlugin ( FString * cmd)
staticprivate

Definition at line 256 of file ArkBaseApi.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadPluginCmd()

void API::ArkBaseApi::LoadPluginCmd ( APlayerController * player_controller,
FString * cmd,
bool  )
staticprivate

Definition at line 311 of file ArkBaseApi.cpp.

+ Here is the call graph for this function:

◆ LoadPluginRcon()

void API::ArkBaseApi::LoadPluginRcon ( RCONClientConnection * rcon_connection,
RCONPacket * rcon_packet,
UWorld *  )
staticprivate

Definition at line 324 of file ArkBaseApi.cpp.

+ Here is the call graph for this function:

◆ RegisterCommands()

void API::ArkBaseApi::RegisterCommands ( )
overridevirtual

Implements API::IBaseApi.

Definition at line 247 of file ArkBaseApi.cpp.

◆ SetServerID()

void API::ArkBaseApi::SetServerID ( RCONClientConnection * rcon_connection,
RCONPacket * rcon_packet,
UWorld *  )
staticprivate

Definition at line 337 of file ArkBaseApi.cpp.

+ Here is the call graph for this function:

◆ UnloadPlugin()

FString API::ArkBaseApi::UnloadPlugin ( FString * cmd)
staticprivate

Definition at line 283 of file ArkBaseApi.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UnloadPluginCmd()

void API::ArkBaseApi::UnloadPluginCmd ( APlayerController * player_controller,
FString * cmd,
bool  )
staticprivate

Definition at line 317 of file ArkBaseApi.cpp.

+ Here is the call graph for this function:

◆ UnloadPluginRcon()

void API::ArkBaseApi::UnloadPluginRcon ( RCONClientConnection * rcon_connection,
RCONPacket * rcon_packet,
UWorld *  )
staticprivate

Definition at line 330 of file ArkBaseApi.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ api_utils_

std::unique_ptr<AsaApi::IApiUtils> API::ArkBaseApi::api_utils_
private

Definition at line 47 of file ArkBaseApi.h.

◆ commands_

std::unique_ptr<AsaApi::ICommands> API::ArkBaseApi::commands_
private

Definition at line 45 of file ArkBaseApi.h.

◆ hooks_

std::unique_ptr<AsaApi::IHooks> API::ArkBaseApi::hooks_
private

Definition at line 46 of file ArkBaseApi.h.


The documentation for this class was generated from the following files: