|
| | ApiUtils ()=default |
| |
| | ApiUtils (const ApiUtils &)=delete |
| |
| | ApiUtils (ApiUtils &&)=delete |
| |
| ApiUtils & | operator= (const ApiUtils &)=delete |
| |
| ApiUtils & | operator= (ApiUtils &&)=delete |
| |
| | ~ApiUtils () override=default |
| |
| UWorld * | GetWorld () const override |
| | Returns a pointer to UWorld.
|
| |
| AShooterGameMode * | GetShooterGameMode () const override |
| | Returns a pointer to AShooterGameMode.
|
| |
| ArkApi::ServerStatus | GetStatus () const override |
| | Returns the current server status.
|
| |
| UShooterCheatManager * | GetCheatManager () const override |
| | Returns a point to URCON CheatManager.
|
| |
| void | SetWorld (UWorld *uworld) |
| |
| void | SetShooterGameMode (AShooterGameMode *shooter_game_mode) |
| |
| void | SetStatus (ArkApi::ServerStatus status) |
| |
| void | SetCheatManager (UShooterCheatManager *cheatmanager) |
| |
| AShooterPlayerController * | FindPlayerFromSteamId_Internal (uint64 steam_id) const override |
| |
| void | SetPlayerController (AShooterPlayerController *player_controller) |
| |
| void | RemovePlayerController (AShooterPlayerController *player_controller) |
| |
| virtual | ~IApiUtils ()=default |
| |
| template<typename T , typename... Args> |
| void | SendServerMessage (AShooterPlayerController *player_controller, FLinearColor msg_color, const T *msg, Args &&... args) |
| | Sends server message to the specific player. Using fmt::format.
|
| |
| template<typename T , typename... Args> |
| void | SendNotification (AShooterPlayerController *player_controller, FLinearColor color, float display_scale, float display_time, UTexture2D *icon, const T *msg, Args &&... args) |
| | Sends notification (on-screen message) to the specific player. Using fmt::format.
|
| |
| template<typename T , typename... Args> |
| void | SendChatMessage (AShooterPlayerController *player_controller, const FString &sender_name, const T *msg, Args &&... args) |
| | Sends chat message to the specific player. Using fmt::format.
|
| |
| template<typename T , typename... Args> |
| void | SendServerMessageToAll (FLinearColor msg_color, const T *msg, Args &&... args) |
| | Sends server message to all players. Using fmt::format.
|
| |
| template<typename T , typename... Args> |
| void | SendNotificationToAll (FLinearColor color, float display_scale, float display_time, UTexture2D *icon, const T *msg, Args &&... args) |
| | Sends notification (on-screen message) to all players. Using fmt::format.
|
| |
| template<typename T , typename... Args> |
| void | SendChatMessageToAll (const FString &sender_name, const T *msg, Args &&... args) |
| | Sends chat message to all players. Using fmt::format.
|
| |
| AShooterPlayerController * | FindPlayerFromSteamName (const FString &steam_name) const |
| | Finds player from the given steam name.
|
| |
| AShooterPlayerController * | FindControllerFromCharacter (AShooterCharacter *character) const |
| | Finds player controller from the given player character.
|
| |
| TArray< AShooterPlayerController * > | FindPlayerFromCharacterName (const FString &character_name, ESearchCase::Type search, bool full_match) const |
| | Finds all matching players from the given character name.
|
| |
| AShooterPlayerController * | FindPlayerFromSteamId (uint64 steam_id) const |
| | Finds player from the given steam id.
|
| |
| APrimalDinoCharacter * | SpawnDino (AShooterPlayerController *player, FString blueprint, FVector *location, int lvl, bool force_tame, bool neutered) const |
| | Spawns a dino near player or at specific coordinates.
|
| |
| uint64 | GetSteamIDForPlayerID (int player_id) const |
| |
| AShooterGameState * | GetGameState () |
| | Get Shooter Game State.
|
| |
| UPrimalGameData * | GetGameData () |
| | Returns pointer to Primal Game Data.
|
| |
| TArray< AActor * > | GetAllActorsInRange (FVector location, float radius, EServerOctreeGroup::Type ActorType) |
| | Gets all actors in radius at location.
|
| |
| TArray< AActor * > | GetAllActorsInRange (FVector location, float radius, EServerOctreeGroup::Type ActorType, TArray< AActor * > ignores) |
| | Gets all actors in radius at location, with ignore actors.
|
| |
| virtual | ~IApiUtils ()=default |
| |
| template<typename T , typename... Args> |
| FORCEINLINE void | SendServerMessage (AShooterPlayerController *player_controller, FLinearColor msg_color, const T *msg, Args &&... args) |
| | Sends server message to the specific player. Using fmt::format.
|
| |
| template<typename T , typename... Args> |
| FORCEINLINE void | SendNotification (AShooterPlayerController *player_controller, FLinearColor color, float display_scale, float display_time, UTexture2D *icon, const T *msg, Args &&... args) |
| | Sends notification (on-screen message) to the specific player. Using fmt::format.
|
| |
| template<typename T , typename... Args> |
| FORCEINLINE void | SendChatMessage (AShooterPlayerController *player_controller, const FString &sender_name, const T *msg, Args &&... args) |
| | Sends chat message to the specific player. Using fmt::format.
|
| |
| template<typename T , typename... Args> |
| FORCEINLINE void | SendServerMessageToAll (FLinearColor msg_color, const T *msg, Args &&... args) |
| | Sends server message to all players. Using fmt::format.
|
| |
| template<typename T , typename... Args> |
| FORCEINLINE void | SendNotificationToAll (FLinearColor color, float display_scale, float display_time, UTexture2D *icon, const T *msg, Args &&... args) |
| | Sends notification (on-screen message) to all players. Using fmt::format.
|
| |
| template<typename T , typename... Args> |
| FORCEINLINE void | SendChatMessageToAll (const FString &sender_name, const T *msg, Args &&... args) |
| | Sends chat message to all players. Using fmt::format.
|
| |
| FORCEINLINE AShooterPlayerController * | FindPlayerFromSteamName (const FString &steam_name) const |
| | Finds player from the given steam name.
|
| |
| FORCEINLINE AShooterPlayerController * | FindControllerFromCharacter (AShooterCharacter *character) const |
| | Finds player controller from the given player character.
|
| |
| FORCEINLINE TArray< AShooterPlayerController * > | FindPlayerFromCharacterName (const FString &character_name, ESearchCase::Type search, bool full_match) const |
| | Finds all matching players from the given character name.
|
| |
| FORCEINLINE AShooterPlayerController * | FindPlayerFromSteamId (uint64 steam_id) const |
| | Finds player from the given steam id.
|
| |
| FORCEINLINE bool | SpawnDrop (const wchar_t *blueprint, FVector pos, int amount, float item_quality=0.0f, bool force_blueprint=false, float life_span=0.0f) const |
| | Spawns an item drop.
|
| |
| FORCEINLINE APrimalDinoCharacter * | SpawnDino (AShooterPlayerController *player, FString blueprint, FVector *location, int lvl, bool force_tame, bool neutered) const |
| | Spawns a dino near player or at specific coordinates.
|
| |
| FORCEINLINE uint64 | GetSteamIDForPlayerID (int player_id) const |
| |
| FORCEINLINE AShooterGameState * | GetGameState () |
| | Get Shooter Game State.
|
| |
| FORCEINLINE UPrimalGameData * | GetGameData () |
| | Returns pointer to Primal Game Data.
|
| |
| FORCEINLINE TArray< AActor * > | GetAllActorsInRange (FVector location, float radius, EServerOctreeGroup::Type ActorType) |
| | Gets all actors in radius at location.
|
| |
| FORCEINLINE TArray< AActor * > | GetAllActorsInRange (FVector location, float radius, EServerOctreeGroup::Type ActorType, TArray< AActor * > ignores) |
| | Gets all actors in radius at location, with ignore actors.
|
| |
| FORCEINLINE MapCoords | FVectorToCoords (FVector actor_position) |
| | Converts FVector into coords that are displayed when you view the ingame map.
|
| |
| FORCEINLINE uint64 | GetAttackerSteamID (AActor *target, AController *killer, AActor *damage_causer, bool tribe_check=true) |
| | obtains the steam ID of an attacker, meant to be used in hooks such as TakeDamage
|
| |
| void | RunHiddenCommand (AShooterPlayerController *_this, FString *Command) |
| |
|
| static uint64 | GetSteamIdFromController (AController *controller) |
| | Returns Steam ID from player controller.
|
| |
| static FString | GetCharacterName (AShooterPlayerController *player_controller, bool include_first_name=true, bool include_last_name=true) |
| | Returns the character name of player.
|
| |
| static FString | GetSteamName (AController *player_controller) |
| | Returns the steam name of player.
|
| |
| static bool | IsRidingDino (AShooterPlayerController *player_controller) |
| | Returns true if character is riding a dino, false otherwise.
|
| |
| static APrimalDinoCharacter * | GetRidingDino (AShooterPlayerController *player_controller) |
| | Returns the dino the character is riding.
|
| |
| static FVector | GetPosition (APlayerController *player_controller) |
| | Returns the position of a player.
|
| |
| static std::optional< FString > | TeleportToPlayer (AShooterPlayerController *me, AShooterPlayerController *him, bool check_for_dino, float max_dist) |
| | Teleport one player to another.
|
| |
| static bool | TeleportToPos (AShooterPlayerController *player_controller, const FVector &pos) |
| | Teleports player to the given position.
|
| |
| static int | GetInventoryItemCount (AShooterPlayerController *player_controller, const FString &item_name) |
| | Counts a specific items quantity.
|
| |
| static FString | GetIPAddress (AShooterPlayerController *player_controller) |
| | Returns IP address of player.
|
| |
| static FORCEINLINE FString | GetItemBlueprint (UPrimalItem *item) |
| | Returns blueprint from UPrimalItem.
|
| |
| static bool | IsPlayerDead (AShooterPlayerController *player) |
| | Returns true if player is dead, false otherwise.
|
| |
| static uint64 | GetPlayerID (APrimalCharacter *character) |
| |
| static uint64 | GetPlayerID (AController *controller) |
| |
| static FORCEINLINE FString | GetBlueprint (UObjectBase *object) |
| | Returns blueprint path from any UObject.
|
| |
| static FORCEINLINE FString | GetClassBlueprint (UClass *the_class) |
| | Returns blueprint path from any UClass.
|
| |
| static UShooterCheatManager * | GetCheatManagerByPC (AShooterPlayerController *SPC) |
| | Get UShooterCheatManager* of player controller.
|
| |
| static FORCEINLINE uint64 | GetSteamIdFromController (AController *controller) |
| | Returns Steam ID from player controller.
|
| |
| static FORCEINLINE FString | GetCharacterName (AShooterPlayerController *player_controller) |
| | Returns the character name of player.
|
| |
| static FORCEINLINE FString | GetSteamName (AController *player_controller) |
| | Returns the steam name of player.
|
| |
| static FORCEINLINE bool | IsRidingDino (AShooterPlayerController *player_controller) |
| | Returns true if character is riding a dino, false otherwise.
|
| |
| static FORCEINLINE APrimalDinoCharacter * | GetRidingDino (AShooterPlayerController *player_controller) |
| | Returns the dino the character is riding.
|
| |
| static FORCEINLINE FVector | GetPosition (APlayerController *player_controller) |
| | Returns the position of a player.
|
| |
| static FORCEINLINE std::optional< FString > | TeleportToPlayer (AShooterPlayerController *me, AShooterPlayerController *him, bool check_for_dino, float max_dist) |
| | Teleport one player to another.
|
| |
| static FORCEINLINE bool | TeleportToPos (AShooterPlayerController *player_controller, const FVector &pos) |
| | Teleports player to the given position.
|
| |
| static FORCEINLINE int | GetInventoryItemCount (AShooterPlayerController *player_controller, const FString &item_name) |
| | Counts a specific items quantity.
|
| |
| static FORCEINLINE FString | GetIPAddress (AShooterPlayerController *player) |
| | Returns IP address of player.
|
| |
| static FORCEINLINE FString | GetItemBlueprint (UPrimalItem *item) |
| | Returns blueprint from UPrimalItem.
|
| |
| static FORCEINLINE bool | IsPlayerDead (AShooterPlayerController *player) |
| | Returns true if player is dead, false otherwise.
|
| |
| static FORCEINLINE uint64 | GetPlayerID (APrimalCharacter *character) |
| |
| static FORCEINLINE uint64 | GetPlayerID (AController *controller) |
| |
| static FORCEINLINE FString | GetBlueprint (UObjectBase *object) |
| | Returns blueprint path from any UObject.
|
| |
| static FORCEINLINE FString | GetClassBlueprint (UClass *the_class) |
| | Returns blueprint path from any UClass.
|
| |
| static FORCEINLINE UShooterCheatManager * | GetCheatManagerByPC (AShooterPlayerController *SPC) |
| | Get UShooterCheatManager* of player controller.
|
| |
| static FORCEINLINE int | GetTribeID (AShooterPlayerController *player_controller) |
| | Get Tribe ID of player controller.
|
| |
| static FORCEINLINE int | GetTribeID (AShooterCharacter *player_character) |
| | Get Tribe ID of character.
|
| |