Struct ResultsState
Immutable snapshot of the results screen state.
Represents what the results screen should display after a session ends.
Assembly: Serenity.GameUi.Domain.dll
Syntax
public readonly struct ResultsState : IEquatable<ResultsState>
Constructors
ResultsState(bool, bool, float)
Creates a new ResultsState with the specified values.
Declaration
public ResultsState(bool isVisible, bool isVictory, float finalTime)
Parameters
| Type |
Name |
Description |
| bool |
isVisible |
Whether the results screen is visible.
|
| bool |
isVictory |
Whether the session was a victory.
|
| float |
finalTime |
The final elapsed time in seconds.
|
Fields
FinalTime
The final elapsed time in seconds.
Declaration
public readonly float FinalTime
Field Value
IsVictory
Whether the session was completed successfully.
Declaration
public readonly bool IsVictory
Field Value
IsVisible
Whether the results screen is currently visible.
Declaration
public readonly bool IsVisible
Field Value
Properties
Hidden
A default hidden results state.
Declaration
public static ResultsState Hidden { get; }
Property Value
Methods
Equals(ResultsState)
Declaration
public bool Equals(ResultsState other)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(ResultsState, ResultsState)
Declaration
public static bool operator ==(ResultsState left, ResultsState right)
Parameters
Returns
operator !=(ResultsState, ResultsState)
Declaration
public static bool operator !=(ResultsState left, ResultsState right)
Parameters
Returns
Implements