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

Namespaces

namespace  Tools
 

Classes

class  ApiUtils
 
class  Commands
 
class  IApiUtils
 
class  ICommands
 
class  IHooks
 
struct  MapCoords
 

Enumerations

enum class  ServerStatus { Loading , Ready , Loading , Ready }
 
enum class  ServerStatus { Loading , Ready , Loading , Ready }
 

Functions

IApiUtilsGetApiUtils ()
 
 DECLARE_HOOK (UEngine_Init, void, DWORD64, DWORD64)
 
 DECLARE_HOOK (UWorld_InitWorld, void, UWorld *, DWORD64)
 
 DECLARE_HOOK (UWorld_Tick, void, DWORD64, DWORD64, float)
 
 DECLARE_HOOK (AShooterGameMode_InitGame, void, AShooterGameMode *, FString *, FString *, FString *)
 
 DECLARE_HOOK (AShooterPlayerController_ServerSendChatMessage_Impl, void, AShooterPlayerController *, FString *, EChatSendMode::Type)
 
 DECLARE_HOOK (APlayerController_ConsoleCommand, FString *, APlayerController *, FString *, FString *, bool)
 
 DECLARE_HOOK (AShooterPlayerController_ConsoleCommand, FString *, AShooterPlayerController *, FString *, FString *, bool)
 
 DECLARE_HOOK (RCONClientConnection_ProcessRCONPacket, void, RCONClientConnection *, RCONPacket *, UWorld *)
 
 DECLARE_HOOK (AGameState_DefaultTimer, void, AGameState *)
 
 DECLARE_HOOK (AShooterGameMode_BeginPlay, void, AShooterGameMode *)
 
 DECLARE_HOOK (URCONServer_Init, bool, URCONServer *, FString, int, UShooterCheatManager *)
 
 DECLARE_HOOK (APlayerController_ServerReceivedPlayerControllerAck_Implementation, void, APlayerController *)
 
 DECLARE_HOOK (AShooterPlayerController_Possess, void, AShooterPlayerController *, APawn *)
 
 DECLARE_HOOK (AShooterGameMode_Logout, void, AShooterGameMode *, AController *)
 
void InitHooks ()
 
void Hook_UEngine_Init (DWORD64 _this, DWORD64 InEngineLoop)
 
void Hook_UWorld_InitWorld (UWorld *world, DWORD64 ivs)
 
void Hook_UWorld_Tick (DWORD64 world, DWORD64 tick_type, float delta_seconds)
 
void Hook_AShooterGameMode_InitGame (AShooterGameMode *a_shooter_game_mode, FString *map_name, FString *options, FString *error_message)
 
void Hook_AShooterPlayerController_ServerSendChatMessage_Impl (AShooterPlayerController *player_controller, FString *message, EChatSendMode::Type mode)
 
FStringHook_APlayerController_ConsoleCommand (APlayerController *a_player_controller, FString *result, FString *cmd, bool write_to_log)
 
FStringHook_AShooterPlayerController_ConsoleCommand (AShooterPlayerController *_this, FString *result, FString *Command, bool bWriteToLog)
 
void Hook_RCONClientConnection_ProcessRCONPacket (RCONClientConnection *_this, RCONPacket *packet, UWorld *in_world)
 
void Hook_AGameState_DefaultTimer (AGameState *_this)
 
void Hook_AShooterGameMode_BeginPlay (AShooterGameMode *_AShooterGameMode)
 
bool Hook_URCONServer_Init (URCONServer *_this, FString Password, int InPort, UShooterCheatManager *SCheatManager)
 
void Hook_APlayerController_ServerReceivedPlayerControllerAck_Implementation (APlayerController *_this)
 
void Hook_AShooterPlayerController_Possess (AShooterPlayerController *_this, APawn *inPawn)
 
void Hook_AShooterGameMode_Logout (AShooterGameMode *_this, AController *Exiting)
 
ICommandsGetCommands ()
 
ARK_API IHooks &APIENTRY GetHooks ()
 

Class Documentation

◆ ArkApi::MapCoords

struct ArkApi::MapCoords

Definition at line 12 of file ArkApiUtils.h.

Class Members
float x = 0.f
float y = 0.f

Enumeration Type Documentation

◆ ServerStatus [1/2]

enum class ArkApi::ServerStatus
strong
Enumerator
Loading 
Ready 
Loading 
Ready 

Definition at line 10 of file ArkApiUtils.h.

◆ ServerStatus [2/2]

enum class ArkApi::ServerStatus
strong
Enumerator
Loading 
Ready 
Loading 
Ready 

Definition at line 9 of file AtlasApiUtils.h.

Function Documentation

◆ DECLARE_HOOK() [1/14]

ArkApi::DECLARE_HOOK ( AGameState_DefaultTimer  ,
void  ,
AGameState  
)

◆ DECLARE_HOOK() [2/14]

ArkApi::DECLARE_HOOK ( APlayerController_ConsoleCommand  ,
FString ,
APlayerController ,
FString ,
FString ,
bool   
)

◆ DECLARE_HOOK() [3/14]

ArkApi::DECLARE_HOOK ( APlayerController_ServerReceivedPlayerControllerAck_Implementation  ,
void  ,
APlayerController  
)

◆ DECLARE_HOOK() [4/14]

ArkApi::DECLARE_HOOK ( AShooterGameMode_BeginPlay  ,
void  ,
AShooterGameMode  
)

◆ DECLARE_HOOK() [5/14]

ArkApi::DECLARE_HOOK ( AShooterGameMode_InitGame  ,
void  ,
AShooterGameMode ,
FString ,
FString ,
FString  
)

◆ DECLARE_HOOK() [6/14]

ArkApi::DECLARE_HOOK ( AShooterGameMode_Logout  ,
void  ,
AShooterGameMode ,
AController  
)

◆ DECLARE_HOOK() [7/14]

ArkApi::DECLARE_HOOK ( AShooterPlayerController_ConsoleCommand  ,
FString ,
AShooterPlayerController ,
FString ,
FString ,
bool   
)

◆ DECLARE_HOOK() [8/14]

ArkApi::DECLARE_HOOK ( AShooterPlayerController_Possess  ,
void  ,
AShooterPlayerController ,
APawn  
)

◆ DECLARE_HOOK() [9/14]

ArkApi::DECLARE_HOOK ( AShooterPlayerController_ServerSendChatMessage_Impl  ,
void  ,
AShooterPlayerController ,
FString ,
EChatSendMode::Type   
)

◆ DECLARE_HOOK() [10/14]

ArkApi::DECLARE_HOOK ( RCONClientConnection_ProcessRCONPacket  ,
void  ,
RCONClientConnection ,
RCONPacket ,
UWorld  
)

◆ DECLARE_HOOK() [11/14]

ArkApi::DECLARE_HOOK ( UEngine_Init  ,
void  ,
DWORD64  ,
DWORD64   
)

◆ DECLARE_HOOK() [12/14]

ArkApi::DECLARE_HOOK ( URCONServer_Init  ,
bool  ,
URCONServer ,
FString  ,
int  ,
UShooterCheatManager  
)

◆ DECLARE_HOOK() [13/14]

ArkApi::DECLARE_HOOK ( UWorld_InitWorld  ,
void  ,
UWorld ,
DWORD64   
)

◆ DECLARE_HOOK() [14/14]

ArkApi::DECLARE_HOOK ( UWorld_Tick  ,
void  ,
DWORD64  ,
DWORD64  ,
float   
)

◆ GetApiUtils()

◆ GetCommands()

ARK_API ICommands &APIENTRY ArkApi::GetCommands ( )

Definition at line 134 of file Commands.cpp.

References API::game_api.

◆ GetHooks()

ArkApi::IHooks & ArkApi::GetHooks ( )

Definition at line 137 of file Hooks.cpp.

References API::game_api.

◆ Hook_AGameState_DefaultTimer()

void ArkApi::Hook_AGameState_DefaultTimer ( AGameState _this)

◆ Hook_APlayerController_ConsoleCommand()

FString * ArkApi::Hook_APlayerController_ConsoleCommand ( APlayerController a_player_controller,
FString result,
FString cmd,
bool  write_to_log 
)

Definition at line 132 of file HooksImpl.cpp.

References API::game_api.

Referenced by InitHooks().

◆ Hook_APlayerController_ServerReceivedPlayerControllerAck_Implementation()

void ArkApi::Hook_APlayerController_ServerReceivedPlayerControllerAck_Implementation ( APlayerController _this)

Definition at line 187 of file HooksImpl.cpp.

References API::game_api.

Referenced by InitHooks().

◆ Hook_AShooterGameMode_BeginPlay()

void ArkApi::Hook_AShooterGameMode_BeginPlay ( AShooterGameMode _AShooterGameMode)

Definition at line 173 of file HooksImpl.cpp.

References API::game_api, and Ready.

Referenced by InitHooks().

◆ Hook_AShooterGameMode_InitGame()

void ArkApi::Hook_AShooterGameMode_InitGame ( AShooterGameMode a_shooter_game_mode,
FString map_name,
FString options,
FString error_message 
)

Definition at line 96 of file HooksImpl.cpp.

References API::game_api.

Referenced by InitHooks().

◆ Hook_AShooterGameMode_Logout()

void ArkApi::Hook_AShooterGameMode_Logout ( AShooterGameMode _this,
AController Exiting 
)

Definition at line 205 of file HooksImpl.cpp.

References API::game_api.

Referenced by InitHooks().

◆ Hook_AShooterPlayerController_ConsoleCommand()

FString * ArkApi::Hook_AShooterPlayerController_ConsoleCommand ( AShooterPlayerController _this,
FString result,
FString Command,
bool  bWriteToLog 
)

Definition at line 141 of file HooksImpl.cpp.

References HideCommand.

Referenced by InitHooks().

◆ Hook_AShooterPlayerController_Possess()

void ArkApi::Hook_AShooterPlayerController_Possess ( AShooterPlayerController _this,
APawn inPawn 
)

Definition at line 198 of file HooksImpl.cpp.

References API::game_api.

Referenced by InitHooks().

◆ Hook_AShooterPlayerController_ServerSendChatMessage_Impl()

void ArkApi::Hook_AShooterPlayerController_ServerSendChatMessage_Impl ( AShooterPlayerController player_controller,
FString message,
EChatSendMode::Type  mode 
)

◆ Hook_RCONClientConnection_ProcessRCONPacket()

void ArkApi::Hook_RCONClientConnection_ProcessRCONPacket ( RCONClientConnection _this,
RCONPacket packet,
UWorld in_world 
)

Definition at line 149 of file HooksImpl.cpp.

References API::game_api, and RCONClientConnection::IsAuthenticatedField().

Referenced by InitHooks().

◆ Hook_UEngine_Init()

void ArkApi::Hook_UEngine_Init ( DWORD64  _this,
DWORD64  InEngineLoop 
)

◆ Hook_URCONServer_Init()

bool ArkApi::Hook_URCONServer_Init ( URCONServer _this,
FString  Password,
int  InPort,
UShooterCheatManager SCheatManager 
)

Definition at line 180 of file HooksImpl.cpp.

References API::game_api.

Referenced by InitHooks().

◆ Hook_UWorld_InitWorld()

void ArkApi::Hook_UWorld_InitWorld ( UWorld world,
DWORD64  ivs 
)

Definition at line 76 of file HooksImpl.cpp.

References API::game_api, and Log::GetLog().

Referenced by InitHooks().

◆ Hook_UWorld_Tick()

void ArkApi::Hook_UWorld_Tick ( DWORD64  world,
DWORD64  tick_type,
float  delta_seconds 
)

Definition at line 85 of file HooksImpl.cpp.

References ArkApi::Commands::CheckOnTickCallbacks(), and API::game_api.

Referenced by InitHooks().

◆ InitHooks()