|
| | 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.
|
| |
| 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 (ServerStatus status) |
| |
| void | SetCheatManager (UShooterCheatManager *cheatmanager) |
| |
| AShooterPlayerController * | FindPlayerFromEOSID_Internal (const FString &eos_id) const override |
| |
| void | SetPlayerController (AShooterPlayerController *player_controller) |
| |
| void | RemovePlayerController (AShooterPlayerController *player_controller) |
| |
| std::shared_ptr< MessagingManager > | GetMessagingManagerInternal (const FString &forPlugin) const override |
| |
| void | SetMessagingManagerInternal (const FString &forPlugin, std::shared_ptr< MessagingManager > manager) override |
| |
| void | RemoveMessagingManagerInternal (const FString &forPlugin) |
| |
| void | CheckMessagingManagersRequirements () |
| |
| 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 * | FindPlayerFromPlatformName (const FString &steam_name) const |
| | Finds player from the given platform name (can be steam, Playstation, Xbox, etc...)
|
| |
| 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 * | FindPlayerFromEOSID (const FString &eos_id) const |
| | Finds player from the given eos 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 const FString | GetEOSIDForPlayerID (int player_id) |
| |
| 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 const FString | GetAttackerEOSID (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) |
| | Runs a command that is not logged anywhere.
|
| |
| FORCEINLINE std::shared_ptr< MessagingManager > | GetMessagingManager () const |
| | Gets the current messaging manager for the plugin, without casting.
|
| |
| template<class T > |
| FORCEINLINE std::shared_ptr< T > | GetMessagingManagerCasted () const |
| | Gets the current messaging manager for the plugin.
|
| |
| template<class T > |
| void | SetMessagingManager () |
| | Sets the messaging manager for the current plugin.
|
| |
Definition at line 7 of file ApiUtils.h.