Package host.anzo.anticheat.server.api
Class AEpicOnlineService
java.lang.Object
host.anzo.anticheat.server.api.AEpicOnlineService
- All Implemented Interfaces:
host.anzo.commons.interfaces.startup.IShutdownable
public abstract class AEpicOnlineService
extends Object
implements host.anzo.commons.interfaces.startup.IShutdownable
- Since:
- 9/20/2023
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IAntiCheatNetworkClientgetClient(int connectionId) protected voidvoidonClientConnected(IAntiCheatNetworkClient gameClient) Event must be called when a new client connected to servervoidonClientDisconnected(@NotNull IAntiCheatNetworkClient gameClient) Event must be called when a client disconnected from game servervoidonClientMessage(IAntiCheatNetworkClient gameClient, byte[] data) Event must be called when need to send an EAC message from the client to servervoidprotected abstract voidsendEacMessageToClient(IAntiCheatNetworkClient gameClient, host.anzo.eossdk.eos.sdk.anticheat.common.callbackresults.EOS_AntiCheatCommon_OnMessageToClientCallbackInfo callbackInfo) Send an anti-cheat message from EOS to clientprotected abstract voidsendMessageToClient(IAntiCheatNetworkClient networkClient, String message) Send a specified message to the network client
-
Constructor Details
-
AEpicOnlineService
public AEpicOnlineService()
-
-
Method Details
-
initialize
protected void initialize() -
getClient
- Parameters:
connectionId- network client connection ID- Returns:
- network client by specified connection ID
-
sendMessageToClient
Send a specified message to the network client- Parameters:
networkClient- network clientmessage- message text to send
-
sendEacMessageToClient
protected abstract void sendEacMessageToClient(IAntiCheatNetworkClient gameClient, host.anzo.eossdk.eos.sdk.anticheat.common.callbackresults.EOS_AntiCheatCommon_OnMessageToClientCallbackInfo callbackInfo) Send an anti-cheat message from EOS to client- Parameters:
gameClient- network clientcallbackInfo- anti-cheat message to send
-
onClientConnected
Event must be called when a new client connected to server- Parameters:
gameClient- game client
-
onClientMessage
Event must be called when need to send an EAC message from the client to server- Parameters:
gameClient- game clientdata- received bytes
-
onClientDisconnected
Event must be called when a client disconnected from game server- Parameters:
gameClient- WebSocket session
-
onShutdown
public void onShutdown()- Specified by:
onShutdownin interfacehost.anzo.commons.interfaces.startup.IShutdownable
-