![]() |
Ark Server API 3.54
Serverside plugin support for Ark Survival Evolved.
|
#include <AtlasBaseApi.h>
Public Member Functions | |
AtlasBaseApi () | |
~AtlasBaseApi () 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 AtlasBaseApi.h.
API::AtlasBaseApi::AtlasBaseApi | ( | ) |
Definition at line 20 of file AtlasBaseApi.cpp.
|
overridedefault |
|
overridevirtual |
Implements API::IBaseApi.
Definition at line 66 of file AtlasBaseApi.cpp.
|
overridevirtual |
|
overridevirtual |
Implements API::IBaseApi.
Definition at line 71 of file AtlasBaseApi.cpp.
References commands_.
Referenced by RegisterCommands().
|
overridevirtual |
|
overridevirtual |
Implements API::IBaseApi.
Definition at line 61 of file AtlasBaseApi.cpp.
References API::api_version.
Referenced by Init().
|
overridevirtual |
Implements API::IBaseApi.
Definition at line 27 of file AtlasBaseApi.cpp.
References API::Offsets::Get(), ArkApi::Tools::GetCurrentDir(), Log::GetLog(), GetVersion(), API::Offsets::Init(), AtlasApi::InitHooks(), API::PdbReader::Read(), and ArkApi::Tools::Utf8Decode().
Definition at line 94 of file AtlasBaseApi.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 149 of file AtlasBaseApi.cpp.
References ArkApi::GetApiUtils(), FColorList::Green, LoadPlugin(), and ArkApi::IApiUtils::SendServerMessage().
Referenced by RegisterCommands().
|
staticprivate |
Definition at line 162 of file AtlasBaseApi.cpp.
References RCONPacket::Body, RCONPacket::Id, LoadPlugin(), and RCONClientConnection::SendMessageW().
Referenced by RegisterCommands().
|
overridevirtual |
Implements API::IBaseApi.
Definition at line 86 of file AtlasBaseApi.cpp.
References GetCommands(), LoadPluginCmd(), LoadPluginRcon(), UnloadPluginCmd(), and UnloadPluginRcon().
Definition at line 121 of file AtlasBaseApi.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 155 of file AtlasBaseApi.cpp.
References ArkApi::GetApiUtils(), FColorList::Green, ArkApi::IApiUtils::SendServerMessage(), and UnloadPlugin().
Referenced by RegisterCommands().
|
staticprivate |
Definition at line 169 of file AtlasBaseApi.cpp.
References RCONPacket::Body, RCONPacket::Id, RCONClientConnection::SendMessageW(), and UnloadPlugin().
Referenced by RegisterCommands().
|
private |
Definition at line 39 of file AtlasBaseApi.h.
Referenced by GetApiUtils().
|
private |
Definition at line 37 of file AtlasBaseApi.h.
Referenced by GetCommands().
|
private |
Definition at line 38 of file AtlasBaseApi.h.
Referenced by GetHooks().