Table of Contents

Class BlackjackGame

Namespace
S1API.Casino
Assembly
S1API.dll

Read-only managed view of a native blackjack table.

public sealed class BlackjackGame : CasinoGameTable
Inheritance
BlackjackGame
Inherited Members
Extension Methods

Properties

DealerHand

Gets an immutable snapshot of the dealer's current hand.

public IReadOnlyList<CasinoCardSnapshot> DealerHand { get; }

Property Value

IReadOnlyList<CasinoCardSnapshot>

DealerScore

Gets the current dealer score visible to this peer.

public int DealerScore { get; }

Property Value

int

IsLocalPlayerBlackjack

Gets whether the local player has a natural blackjack.

public bool IsLocalPlayerBlackjack { get; }

Property Value

bool

IsLocalPlayerBust

Gets whether the local player is bust.

public bool IsLocalPlayerBust { get; }

Property Value

bool

IsLocalPlayerInRound

Gets whether the local player belongs to the active round.

public bool IsLocalPlayerInRound { get; }

Property Value

bool

LocalPlayerScore

Gets the current local-player score.

public int LocalPlayerScore { get; }

Property Value

int

ReadyPlayerCount

Gets the number of seated players currently marked ready.

public int ReadyPlayerCount { get; }

Property Value

int

Stage

Gets the current round stage.

public BlackjackStage Stage { get; }

Property Value

BlackjackStage

Methods

GetPlayerHand(int)

Gets an immutable snapshot of a seated player's current hand.

public IReadOnlyList<CasinoCardSnapshot> GetPlayerHand(int seatIndex)

Parameters

seatIndex int

The zero-based seat index.

Returns

IReadOnlyList<CasinoCardSnapshot>

Events

RoundEnded

Raised when the table returns to its waiting stage.

public event Action? RoundEnded

Event Type

Action

RoundStarted

Raised when the table enters the dealing stage.

public event Action? RoundStarted

Event Type

Action

StageChanged

Raised after the native blackjack stage changes.

public event Action<BlackjackStage, BlackjackStage>? StageChanged

Event Type

Action<BlackjackStage, BlackjackStage>