Skip to content

Class: GameResultManager ​

csharp
public class GameResultManager : NetworkedManagerBase<GameResultManager>, ILogicUpdate

Fields ​

NameDeclarationDescription
ClientEvent_OnGameConcludedpublic SafeAction&lt;DewGameResult&gt; ClientEvent_OnGameConcludedCalled everywhere when server wraps up the game and results are sent to clients.This is not used for conceded (exited out) games.
currentpublic DewGameResult currentCurrently registered game result. The server gives this out to clients periodically, and when the game concludes.Available everywhere.
onUpdateGameResultpublic SafeAction&lt;DewGameResult&gt; onUpdateGameResultCalled on server when updating game result mid-game or when the game has concluded.You can use this to modify stats or add custom ones to the result, before it gets sent to clients.

Properties ​

NameDeclarationDescription
tracked`[SaveVar(SaveVarFlags.Default)]
public DewGameResult tracked { get; }`Only available on server.

Methods ​

OnStartClient() ​

csharp
public override void OnStartClient()

OnStartServer() ​

csharp
public override void OnStartServer()

StartTrackingPlayer(DewPlayer) ​

csharp
public void StartTrackingPlayer(DewPlayer p)

Parameters:

NameTypeDescription
pDewPlayer

UpdateAndSendMidGameResultToClients() ​

csharp
public void UpdateAndSendMidGameResultToClients()

WrapUp(ResultType) ​

Ends tracking and shows statistics to everyone.

csharp
public void WrapUp(DewGameResult.ResultType type)

Parameters:

NameTypeDescription
typeDewGameResult.ResultType

Maintained by the Shape of Dreams Modding Community