Table of Contents

Struct SessionResult

Namespace
PopcorningGuineaPig.Engine.Gameplay
Assembly
PopcorningGuineaPig.Engine.dll
public readonly record struct SessionResult : IEquatable<SessionResult>
Implements
Inherited Members

Constructors

SessionResult(SessionError)

public SessionResult(SessionError Error)

Parameters

Error SessionError

Properties

Error

public SessionError Error { get; init; }

Property Value

SessionError

Ok

public static SessionResult Ok { get; }

Property Value

SessionResult

Pending

public bool Pending { get; init; }

Property Value

bool

Succeeded

public bool Succeeded { get; }

Property Value

bool

Waiting

public static SessionResult Waiting { get; }

Property Value

SessionResult

Methods

Fail(SessionError)

public static SessionResult Fail(SessionError error)

Parameters

error SessionError

Returns

SessionResult