Ark Server API (ASA) - Wiki
|
#include <Commands.h>
Classes | |
struct | Command |
Private Types | |
using | ChatCommand = Command<void(AShooterPlayerController*, FString*, int, int)> |
using | ConsoleCommand = Command<void(APlayerController*, FString*, bool)> |
using | RconCommand = Command<void(RCONClientConnection*, RCONPacket*, UWorld*)> |
using | OnTickCallback = Command<void(float)> |
using | OnTimerCallback = Command<void()> |
using | OnChatMessageCallback = Command<bool(AShooterPlayerController*, FString*, int, int, bool, bool)> |
Private Member Functions | |
template<typename T > | |
bool | RemoveCommand (const FString &command, std::vector< std::shared_ptr< T > > &commands) |
template<typename T , typename... Args> | |
bool | CheckCommands (const FString &message, const std::vector< std::shared_ptr< T > > &commands, Args &&... args) |
Private Attributes | |
std::vector< std::shared_ptr< ChatCommand > > | chat_commands_ |
std::vector< std::shared_ptr< ConsoleCommand > > | console_commands_ |
std::vector< std::shared_ptr< RconCommand > > | rcon_commands_ |
std::vector< std::shared_ptr< OnTickCallback > > | on_tick_callbacks_ |
std::vector< std::shared_ptr< OnTimerCallback > > | on_timer_callbacks_ |
std::vector< std::shared_ptr< OnChatMessageCallback > > | on_chat_message_callbacks_ |
Definition at line 12 of file Commands.h.
|
private |
Definition at line 61 of file Commands.h.
|
private |
Definition at line 62 of file Commands.h.
|
private |
Definition at line 67 of file Commands.h.
|
private |
Definition at line 65 of file Commands.h.
|
private |
Definition at line 66 of file Commands.h.
|
private |
Definition at line 63 of file Commands.h.
|
default |
|
delete |
|
overridedefault |
|
overridevirtual |
Adds a chat command.
command | Command name |
callback | Callback function |
Implements AsaApi::ICommands.
Definition at line 7 of file Commands.cpp.
|
overridevirtual |
Adds a console command.
command | Command name |
callback | Callback function |
Implements AsaApi::ICommands.
Definition at line 13 of file Commands.cpp.
|
overridevirtual |
Added function will be called for AShooterPlayerController->ServerSendChatMessage events.
id | Unique ID |
callback | Callback function |
Implements AsaApi::ICommands.
Definition at line 34 of file Commands.cpp.
|
overridevirtual |
Added function will be called every frame.
id | Unique ID |
callback | Callback function |
Implements AsaApi::ICommands.
Definition at line 24 of file Commands.cpp.
|
overridevirtual |
Added function will be called every second.
id | Unique ID |
callback | Callback function |
Implements AsaApi::ICommands.
Definition at line 29 of file Commands.cpp.
|
overridevirtual |
Adds a rcon command.
command | Command name |
callback | Callback function |
Implements AsaApi::ICommands.
Definition at line 19 of file Commands.cpp.
bool AsaApi::Commands::CheckChatCommands | ( | AShooterPlayerController * | shooter_player_controller, |
FString * | message, | ||
int | mode, | ||
int | platform ) |
Definition at line 69 of file Commands.cpp.
|
inlineprivate |
Definition at line 89 of file Commands.h.
bool AsaApi::Commands::CheckConsoleCommands | ( | APlayerController * | a_player_controller, |
FString * | cmd, | ||
bool | write_to_log ) |
Definition at line 74 of file Commands.cpp.
bool AsaApi::Commands::CheckOnChatMessageCallbacks | ( | AShooterPlayerController * | player_controller, |
FString * | message, | ||
int | mode, | ||
int | platform, | ||
bool | spam_check, | ||
bool | command_executed ) |
Definition at line 110 of file Commands.cpp.
void AsaApi::Commands::CheckOnTimerCallbacks | ( | ) |
bool AsaApi::Commands::CheckRconCommands | ( | RCONClientConnection * | rcon_client_connection, |
RCONPacket * | rcon_packet, | ||
UWorld * | u_world ) |
Definition at line 79 of file Commands.cpp.
Removes a chat command.
command | Command name |
Implements AsaApi::ICommands.
Definition at line 39 of file Commands.cpp.
|
inlineprivate |
Definition at line 70 of file Commands.h.
Removes a console command.
command | Command name |
Implements AsaApi::ICommands.
Definition at line 44 of file Commands.cpp.
Removes an on-chat-message callback.
id | Callback ID |
Implements AsaApi::ICommands.
Definition at line 64 of file Commands.cpp.
Removes a on-tick callback.
id | Callback ID |
Implements AsaApi::ICommands.
Definition at line 54 of file Commands.cpp.
Removes an on-timer callback.
id | Callback ID |
Implements AsaApi::ICommands.
Definition at line 59 of file Commands.cpp.
Removes a rcon command.
command | Command name |
Implements AsaApi::ICommands.
Definition at line 49 of file Commands.cpp.
|
private |
Definition at line 114 of file Commands.h.
|
private |
Definition at line 115 of file Commands.h.
|
private |
Definition at line 120 of file Commands.h.
|
private |
Definition at line 118 of file Commands.h.
|
private |
Definition at line 119 of file Commands.h.
|
private |
Definition at line 116 of file Commands.h.