Class GameResultManager
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
GameResultManager
Implements
Inherited Members
Namespace: Global
Assembly: Dew.Core.dll
Syntax
public class GameResultManager : NetworkedManagerBase<GameResultManager>, ILogicUpdate
Fields
ClientEvent_OnGameConcluded
Called everywhere when server wraps up the game and results are sent to clients.
This is not used for conceded (exited out) games.
Declaration
public SafeAction<DewGameResult> ClientEvent_OnGameConcluded
Field Value
| Type | Description |
|---|---|
| SafeAction<DewGameResult> |
current
Currently registered game result. The server gives this out to clients periodically, and when the game concludes.
Available everywhere.
Declaration
public DewGameResult current
Field Value
| Type | Description |
|---|---|
| DewGameResult |
onUpdateGameResult
Called 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.
Declaration
public SafeAction<DewGameResult> onUpdateGameResult
Field Value
| Type | Description |
|---|---|
| SafeAction<DewGameResult> |
Properties
tracked
Only available on server.
Declaration
[SaveVar(SaveVarFlags.Default)]
public DewGameResult tracked { get; }
Property Value
| Type | Description |
|---|---|
| DewGameResult |
Methods
OnStartClient()
Declaration
public override void OnStartClient()
Overrides
NetworkedManagerBase<GameResultManager>.OnStartClient()
OnStartServer()
Declaration
public override void OnStartServer()
Overrides
StartTrackingPlayer(DewPlayer)
Declaration
public void StartTrackingPlayer(DewPlayer p)
Parameters
| Type | Name | Description |
|---|---|---|
| DewPlayer | p |
UpdateAndSendMidGameResultToClients()
Declaration
public void UpdateAndSendMidGameResultToClients()
WrapUp(ResultType)
Ends tracking and shows statistics to everyone.
Declaration
public void WrapUp(DewGameResult.ResultType type)
Parameters
| Type | Name | Description |
|---|---|---|
| DewGameResult.ResultType | type |