Ark Server API 3.54
Serverside plugin support for Ark Survival Evolved.
Loading...
Searching...
No Matches
ArkApi::Tools Namespace Reference

Functions

std::string GetCurrentDir ()
 
std::wstring ConvertToWideStr (const std::string &text)
 
std::string ConvertToAnsiStr (const std::wstring &text)
 
std::string Utf8Encode (const std::wstring &wstr)
 Converts a wide Unicode string to an UTF8 string.
 
std::wstring Utf8Decode (const std::string &str)
 Converts an UTF8 string to a wide Unicode String.
 
bool IsPluginLoaded (const std::string &plugin_name)
 Returns true if plugin was loaded, false otherwise.
 
std::string GetApiVer ()
 
float GetApiVersion ()
 Returns Current Running Api Version.
 

Function Documentation

◆ ConvertToAnsiStr()

ARK_API std::string ArkApi::Tools::ConvertToAnsiStr ( const std::wstring &  text)

Definition at line 33 of file Tools.cpp.

◆ ConvertToWideStr()

ARK_API std::wstring ArkApi::Tools::ConvertToWideStr ( const std::string &  text)

Definition at line 17 of file Tools.cpp.

◆ GetApiVer()

std::string ArkApi::Tools::GetApiVer ( )

Definition at line 74 of file Tools.cpp.

◆ GetApiVersion()

ARK_API float ArkApi::Tools::GetApiVersion ( )

Returns Current Running Api Version.

Definition at line 90 of file Tools.cpp.

References API::game_api.

◆ GetCurrentDir()

◆ IsPluginLoaded()

ARK_API bool ArkApi::Tools::IsPluginLoaded ( const std::string &  plugin_name)

Returns true if plugin was loaded, false otherwise.

Definition at line 69 of file Tools.cpp.

◆ Utf8Decode()

ARK_API std::wstring ArkApi::Tools::Utf8Decode ( const std::string &  str)

Converts an UTF8 string to a wide Unicode String.

Definition at line 56 of file Tools.cpp.

Referenced by API::ArkBaseApi::Init(), and API::AtlasBaseApi::Init().

◆ Utf8Encode()

ARK_API std::string ArkApi::Tools::Utf8Encode ( const std::wstring &  wstr)

Converts a wide Unicode string to an UTF8 string.

Definition at line 43 of file Tools.cpp.

Referenced by API::PdbReader::GetSymbolNameString().