1 sharedlibrarycoreinterfacesevents IGameEventSubscriptions
RaidMax edited this page 2023-05-20 22:09:21 -05:00

IGameEventSubscriptions Public interface

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph SharedLibraryCore.Interfaces.Events
  SharedLibraryCore.Interfaces.Events.IGameEventSubscriptions[[IGameEventSubscriptions]]
  class SharedLibraryCore.Interfaces.Events.IGameEventSubscriptions interfaceStyle;
  end

Members

Methods

Public Static methods

Returns Name
void ClearEventInvocations()
Task InvokeEventAsync(CoreEvent coreEvent, CancellationToken token)

Details

Methods

InvokeEventAsync

Source code

public static Task InvokeEventAsync(CoreEvent coreEvent, CancellationToken token)
Arguments
Type Name Description
CoreEvent coreEvent
CancellationToken token

ClearEventInvocations

Source code

public static void ClearEventInvocations()

Events

MatchStarted

public static event Func<MatchStartEvent, CancellationToken, Task> MatchStarted
Summary

Raised when game log prints that match has started InitGame MatchStartEvent

MatchEnded

public static event Func<MatchEndEvent, CancellationToken, Task> MatchEnded
Summary

Raised when game log prints that match has ended ShutdownGame: MatchEndEvent

ClientEnteredMatch

public static event Func<ClientEnterMatchEvent, CancellationToken, Task> ClientEnteredMatch
Summary

Raised when game log printed that client has entered the match J;clientNetworkId;clientSlotNumber;clientName J;110000100000000;0;bot ClientEnterMatchEvent

ClientExitedMatch

public static event Func<ClientExitMatchEvent, CancellationToken, Task> ClientExitedMatch
Summary

Raised when game log prints that client has exited the match Q;clientNetworkId;clientSlotNumber;clientName Q;110000100000000;0;bot ClientExitMatchEvent

ClientJoinedTeam

public static event Func<ClientJoinTeamEvent, CancellationToken, Task> ClientJoinedTeam
Summary

Raised when game log prints that client has joined a team JT;clientNetworkId;clientSlotNumber;clientTeam;clientName JT;110000100000000;0;axis;bot ClientJoinTeamEvent

ClientDamaged

public static event Func<ClientDamageEvent, CancellationToken, Task> ClientDamaged
Summary

Raised when game log prints that client has been damaged D;victimNetworkId;victimSlotNumber;victimTeam;victimName;attackerNetworkId;attackerSlotNumber;attackerTeam;attackerName;weapon;damage;meansOfDeath;hitLocation D;110000100000000;17;axis;bot_0;110000100000001;4;allies;bot_1;scar_mp;38;MOD_HEAD_SHOT;head ClientDamageEvent

ClientKilled

public static event Func<ClientKillEvent, CancellationToken, Task> ClientKilled
Summary

Raised when game log prints that client has been killed K;victimNetworkId;victimSlotNumber;victimTeam;victimName;attackerNetworkId;attackerSlotNumber;attackerTeam;attackerName;weapon;damage;meansOfDeath;hitLocation K;110000100000000;17;axis;bot_0;110000100000001;4;allies;bot_1;scar_mp;100;MOD_HEAD_SHOT;head ClientKillEvent

ClientMessaged

public static event Func<ClientMessageEvent, CancellationToken, Task> ClientMessaged
Summary

Raised when game log prints that client entered a chat message say;clientNetworkId;clientSlotNumber;clientName;message say;110000100000000;0;bot;hello world! ClientMessageEvent

ClientEnteredCommand

public static event Func<ClientCommandEvent, CancellationToken, Task> ClientEnteredCommand
Summary

Raised when game log prints that client entered a command (chat message prefixed with command character(s)) say;clientNetworkId;clientSlotNumber;clientName;command say;110000100000000;0;bot;!command ClientCommandEvent

ScriptEventTriggered

public static event Func<GameScriptEvent, CancellationToken, Task> ScriptEventTriggered
Summary

Raised when game log prints user generated script event GSE;data GSE;loadBank=1 GameScriptEvent

Generated with ModularDoc