IAntiCheatService
One anti-cheat integration. The engine ships only this seam: a vendor integration (Easy Anti-Cheat, BattlEye) or a managed server-authority implementation lives in a feature and registers through FAntiCheatServices. Every capability has a safe default so a service implements only what its product offers; with no service registered every client counts as trusted and the connection gate is inert.
- Module
- Networking
- Header
#include "Networking/AntiCheat/AntiCheatService.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
virtual ~IAntiCheatService() = default | ~IAntiCheatService |
Public functions
| Returns | Name | Description |
|---|---|---|
const char* | Name | |
bool | Initialize | |
void | Update | |
void | Shutdown | |
bool | IsAvailable | |
bool | RegisterClient | Server: a peer joined or left the session. |
void | UnregisterClient | |
void | OnMessageFromClient | Integrity messages. |
void | OnMessageFromServer | |
EAntiCheatClientStatus | GetClientStatus | |
bool | IsClientTrusted |
Function details
~IAntiCheatService
virtual ~IAntiCheatService() = defaultName
virtual const char* Name() const = 0Initialize
virtual bool Initialize(const FAntiCheatInitParams& params, const FAntiCheatCallbacks& callbacks) = 0Update
virtual void Update(float deltaSeconds)Shutdown
virtual void Shutdown()IsAvailable
virtual bool IsAvailable() constRegisterClient
virtual bool RegisterClient(FAntiCheatClientId client, const FAntiCheatClientInfo& info)Server: a peer joined or left the session. RegisterClient may answer false to refuse the peer outright (it is then rejected like an untrusted one); the verdict otherwise arrives later through ClientStatusChanged.
UnregisterClient
virtual void UnregisterClient(FAntiCheatClientId client)OnMessageFromClient
virtual void OnMessageFromClient(FAntiCheatClientId client, const uint8_t* data, size_t size)Integrity messages. The server hands each tagged frame a peer sent to OnMessageFromClient; a client hands the ones the server sent to OnMessageFromServer.
OnMessageFromServer
virtual void OnMessageFromServer(const uint8_t* data, size_t size)GetClientStatus
virtual EAntiCheatClientStatus GetClientStatus(FAntiCheatClientId client) constIsClientTrusted
virtual bool IsClientTrusted(FAntiCheatClientId client) const