#include <ICommands.h>
|
virtual | ~ICommands ()=default |
|
virtual void | AddChatCommand (const FString &command, const std::function< void(AShooterPlayerController *, FString *, int, int)> &callback)=0 |
| Adds a chat command.
|
|
virtual void | AddConsoleCommand (const FString &command, const std::function< void(APlayerController *, FString *, bool)> &callback)=0 |
| Adds a console command.
|
|
virtual void | AddRconCommand (const FString &command, const std::function< void(RCONClientConnection *, RCONPacket *, UWorld *)> &callback)=0 |
| Adds a rcon command.
|
|
virtual void | AddOnTickCallback (const FString &id, const std::function< void(float)> &callback)=0 |
| Added function will be called every frame.
|
|
virtual void | AddOnTimerCallback (const FString &id, const std::function< void()> &callback)=0 |
| Added function will be called every second.
|
|
virtual void | AddOnChatMessageCallback (const FString &id, const std::function< bool(AShooterPlayerController *, FString *, int, int, bool, bool)> &callback)=0 |
| Added function will be called for AShooterPlayerController->ServerSendChatMessage events.
|
|
virtual bool | RemoveChatCommand (const FString &command)=0 |
| Removes a chat command.
|
|
virtual bool | RemoveConsoleCommand (const FString &command)=0 |
| Removes a console command.
|
|
virtual bool | RemoveRconCommand (const FString &command)=0 |
| Removes a rcon command.
|
|
virtual bool | RemoveOnTickCallback (const FString &id)=0 |
| Removes a on-tick callback.
|
|
virtual bool | RemoveOnTimerCallback (const FString &id)=0 |
| Removes an on-timer callback.
|
|
virtual bool | RemoveOnChatMessageCallback (const FString &id)=0 |
| Removes an on-chat-message callback.
|
|
Definition at line 9 of file ICommands.h.
◆ ~ICommands()
virtual AsaApi::ICommands::~ICommands |
( |
| ) |
|
|
virtualdefault |
◆ AddChatCommand()
Adds a chat command.
- Parameters
-
command | Command name |
callback | Callback function |
Implemented in AsaApi::Commands.
◆ AddConsoleCommand()
Adds a console command.
- Parameters
-
command | Command name |
callback | Callback function |
Implemented in AsaApi::Commands.
◆ AddOnChatMessageCallback()
Added function will be called for AShooterPlayerController->ServerSendChatMessage events.
- Parameters
-
id | Unique ID |
callback | Callback function |
Implemented in AsaApi::Commands.
◆ AddOnTickCallback()
Added function will be called every frame.
- Parameters
-
id | Unique ID |
callback | Callback function |
Implemented in AsaApi::Commands.
◆ AddOnTimerCallback()
Added function will be called every second.
- Parameters
-
id | Unique ID |
callback | Callback function |
Implemented in AsaApi::Commands.
◆ AddRconCommand()
Adds a rcon command.
- Parameters
-
command | Command name |
callback | Callback function |
Implemented in AsaApi::Commands.
◆ RemoveChatCommand()
Removes a chat command.
- Parameters
-
- Returns
- true if success, false otherwise
Implemented in AsaApi::Commands.
◆ RemoveConsoleCommand()
Removes a console command.
- Parameters
-
- Returns
- true if success, false otherwise
Implemented in AsaApi::Commands.
◆ RemoveOnChatMessageCallback()
Removes an on-chat-message callback.
- Parameters
-
- Returns
- true if success, false otherwise
Implemented in AsaApi::Commands.
◆ RemoveOnTickCallback()
Removes a on-tick callback.
- Parameters
-
- Returns
- true if success, false otherwise
Implemented in AsaApi::Commands.
◆ RemoveOnTimerCallback()
Removes an on-timer callback.
- Parameters
-
- Returns
- true if success, false otherwise
Implemented in AsaApi::Commands.
◆ RemoveRconCommand()
Removes a rcon command.
- Parameters
-
- Returns
- true if success, false otherwise
Implemented in AsaApi::Commands.
The documentation for this class was generated from the following file:
- C:/Users/lachl/Downloads/ArkServerAPI_NEW/ASA/AsaApi/AsaApi/Core/Public/ICommands.h