|
std::optional< std::string > | MeetsRequirementsToWork () override |
| Returns wether this messaging manager is able to work in the current session.
|
|
FORCEINLINE FString | SendNotificationPrettyToPlayer (APlayerController *PC, const FString &Text, const FLinearColor &BackgroundColor, const FLinearColor &TextColor, const double TextScale, const double Duration, const Position TextJustification, const Position ScreenPosition, const bool bAddToChat) |
|
FORCEINLINE FString | SendNotificationPrettyToPlayer (const FString &EOSid, const FString &Text, const FLinearColor &BackgroundColor, const FLinearColor &TextColor, const double TextScale, const double Duration, const Position TextJustification, const Position ScreenPosition, const bool bAddToChat) |
|
FORCEINLINE FString | SendNotificationPrettyToPlayers (TArray< APlayerController * > PCs, const FString &Text, const FLinearColor &BackgroundColor, const FLinearColor &TextColor, const double TextScale, const double Duration, const Position TextJustification, const Position ScreenPosition, const bool bAddToChat) |
|
FORCEINLINE FString | SendNotificationPrettyToPlayers (const TArray< FString > &IDs, const FString &Text, const FLinearColor &BackgroundColor, const FLinearColor &TextColor, const double TextScale, const double Duration, const Position TextJustification, const Position ScreenPosition, const bool bAddToChat) |
|
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.
|
|
void | SetWorldContext (UWorld *world_context) |
| Sets the world context. This is called by the API automatically.
|
|
std::optional< std::string > AsaApiUtilsMessagingManager::MeetsRequirementsToWork |
( |
| ) |
|
|
inlineoverridevirtual |
Returns wether this messaging manager is able to work in the current session.
The default one does not depend in any mod or external service so it always returns true.
Subclasses should redefine this function if they depend on any external service.
If it returns an error, it will be removed and the plugin will fall back to the default API messaging manager.
- Returns
- Empty optional if no error, or optional filled with error string.
Reimplemented from MessagingManager.
Definition at line 9 of file AsaApiUtilsMessagingManager.h.