Tools

From Ark & Atlas Server API
Jump to: navigation, search

Go Back: Plugin_Development

Pointer To Tools

ArkApi::Tools::

Functions

GetCurrentDir

Returns a std::string with the value of the directory path of version.dll

ArkApi::Tools::GetCurrentDir();

ConvertToWideStr

  • std::string

Returns a std::wstring

ArkApi::Tools::std::ConvertToWideStr("Convert Me");

ConvertToAnsiStr

  • std::wstring

Returns a std::string

ArkApi::Tools::std::ConvertToAnsiStr(L"Convert Me");

Utf8Encode

Converts a wide Unicode string to an UTF8 string

  • std::wstring

Returns a std::string

ArkApi::Tools::std::Utf8Encode(L"Convert Me");

Utf8Decode

Converts an UTF8 string to a wide Unicode String

  • std::string

Returns a std::wstring

ArkApi::Tools::std::Utf8Decode("Convert Me");

IsPluginLoaded

Returns true if plugin was loaded, false otherwise

  • std::string

Returns a bool

ArkApi::Tools::std::IsPluginLoaded("Permissions");

GetApiVersion

Returns Current Running Api Version Returns a float

ArkApi::Tools::std::GetApiVersion();

Go Back: Plugin_Development