![]() |
Ark Server API 3.54
Serverside plugin support for Ark Survival Evolved.
|
#include <ArkBaseApi.h>
Public Member Functions | |
ArkBaseApi () | |
~ArkBaseApi () override=default | |
bool | Init () override |
float | GetVersion () override |
std::string | GetApiName () override |
void | RegisterCommands () override |
std::unique_ptr< ArkApi::ICommands > & | GetCommands () override |
std::unique_ptr< ArkApi::IHooks > & | GetHooks () override |
std::unique_ptr< ArkApi::IApiUtils > & | GetApiUtils () override |
![]() | |
virtual | ~IBaseApi ()=default |
virtual bool | Init ()=0 |
virtual float | GetVersion ()=0 |
virtual std::string | GetApiName ()=0 |
virtual void | RegisterCommands ()=0 |
virtual std::unique_ptr< ArkApi::ICommands > & | GetCommands ()=0 |
virtual std::unique_ptr< ArkApi::IHooks > & | GetHooks ()=0 |
virtual std::unique_ptr< ArkApi::IApiUtils > & | GetApiUtils ()=0 |
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 *) |
Private Attributes | |
std::unique_ptr< ArkApi::ICommands > | commands_ |
std::unique_ptr< ArkApi::IHooks > | hooks_ |
std::unique_ptr< ArkApi::IApiUtils > | api_utils_ |
Definition at line 9 of file ArkBaseApi.h.
API::ArkBaseApi::ArkBaseApi | ( | ) |
Definition at line 21 of file ArkBaseApi.cpp.
|
overridedefault |
|
overridevirtual |
Implements API::IBaseApi.
Definition at line 67 of file ArkBaseApi.cpp.
|
overridevirtual |
|
overridevirtual |
Implements API::IBaseApi.
Definition at line 72 of file ArkBaseApi.cpp.
References commands_.
Referenced by RegisterCommands().
|
overridevirtual |
|
overridevirtual |
Implements API::IBaseApi.
Definition at line 62 of file ArkBaseApi.cpp.
References API::api_version.
Referenced by Init().
|
overridevirtual |
Implements API::IBaseApi.
Definition at line 28 of file ArkBaseApi.cpp.
References API::Offsets::Get(), ArkApi::Tools::GetCurrentDir(), Log::GetLog(), GetVersion(), API::Offsets::Init(), ArkApi::InitHooks(), API::PdbReader::Read(), and ArkApi::Tools::Utf8Decode().
Definition at line 95 of file ArkBaseApi.cpp.
References FString::Format(), API::PluginManager::Get(), Log::GetLog(), TArray< InElementType, InAllocator >::IsValidIndex(), API::PluginManager::LoadPlugin(), and FString::ParseIntoArray().
Referenced by LoadPluginCmd(), and LoadPluginRcon().
|
staticprivate |
Definition at line 150 of file ArkBaseApi.cpp.
References ArkApi::GetApiUtils(), FColorList::Green, LoadPlugin(), and ArkApi::IApiUtils::SendServerMessage().
Referenced by RegisterCommands().
|
staticprivate |
Definition at line 163 of file ArkBaseApi.cpp.
References RCONPacket::Body, RCONPacket::Id, LoadPlugin(), and RCONClientConnection::SendMessageW().
Referenced by RegisterCommands().
|
overridevirtual |
Implements API::IBaseApi.
Definition at line 87 of file ArkBaseApi.cpp.
References GetCommands(), LoadPluginCmd(), LoadPluginRcon(), UnloadPluginCmd(), and UnloadPluginRcon().
Definition at line 122 of file ArkBaseApi.cpp.
References FString::Format(), API::PluginManager::Get(), Log::GetLog(), TArray< InElementType, InAllocator >::IsValidIndex(), FString::ParseIntoArray(), and API::PluginManager::UnloadPlugin().
Referenced by UnloadPluginCmd(), and UnloadPluginRcon().
|
staticprivate |
Definition at line 156 of file ArkBaseApi.cpp.
References ArkApi::GetApiUtils(), FColorList::Green, ArkApi::IApiUtils::SendServerMessage(), and UnloadPlugin().
Referenced by RegisterCommands().
|
staticprivate |
Definition at line 169 of file ArkBaseApi.cpp.
References RCONPacket::Body, RCONPacket::Id, RCONClientConnection::SendMessageW(), and UnloadPlugin().
Referenced by RegisterCommands().
|
private |
Definition at line 39 of file ArkBaseApi.h.
Referenced by GetApiUtils().
|
private |
Definition at line 37 of file ArkBaseApi.h.
Referenced by GetCommands().
|
private |
Definition at line 38 of file ArkBaseApi.h.
Referenced by GetHooks().