Table of Contents

Class ArenaServerEvents

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Server-side hooks for the moments a match produces something: the end of a match, above all.

public static class ArenaServerEvents
Inheritance
ArenaServerEvents
Inherited Members

Remarks

This is the reward hook. Rewards themselves are not decided here — currency, items, titles and achievements are a later system's business — but everything they will need is on ArenaMatchResult, and two ways to react are wired now: this C# event, and the template-authored trigger lists (WinRewardTriggers, LossRewardTriggers, DrawRewardTriggers) the coordinator runs on each present character right after raising it. A reward system subscribes here or authors triggers; the coordinator does not change.

Raised on the scene server that hosted the match, on the main thread, after the result is decided and before the results screen is sent. Subscribers must not throw.

Methods

RaiseMatchCancelled(long, ArenaTemplate, string)

public static void RaiseMatchCancelled(long matchID, ArenaTemplate template, string reason)

Parameters

matchID long
template ArenaTemplate
reason string

RaiseMatchEnded(ArenaMatchResult)

public static void RaiseMatchEnded(ArenaMatchResult result)

Parameters

result ArenaMatchResult

Events

OnMatchCancelled

A match was cancelled before play. Match id, template, reason.

public static event Action<long, ArenaTemplate, string> OnMatchCancelled

Event Type

Action<long, ArenaTemplate, string>

OnMatchEnded

A match ended with a result. Forfeits and drops are included with Placement 0.

public static event Action<ArenaMatchResult> OnMatchEnded

Event Type

Action<ArenaMatchResult>