Table of Contents

Class CasinoGameRegistry

Namespace
S1API.Casino
Assembly
S1API.dll

Discovers native casino games and publishes their synchronized lifecycle transitions.

public static class CasinoGameRegistry
Inheritance
CasinoGameRegistry
Inherited Members

Remarks

This first-version API is intentionally read-only. It does not expose native RPCs, payout replacement, game authoring, or methods that mutate bets and round state.

Methods

FindNearestSlotMachine(Vector3, float)

Finds the active slot machine nearest to a world position.

public static SlotMachine? FindNearestSlotMachine(Vector3 position, float maxDistance)

Parameters

position Vector3

The world position to search from.

maxDistance float

The maximum search distance.

Returns

SlotMachine

The nearest managed slot-machine wrapper, or null when none is in range.

GetBlackjackGames()

Gets a read-only snapshot of all active blackjack tables.

public static IReadOnlyList<BlackjackGame> GetBlackjackGames()

Returns

IReadOnlyList<BlackjackGame>

GetRideTheBusGames()

Gets a read-only snapshot of all active Ride the Bus tables.

public static IReadOnlyList<RideTheBusGame> GetRideTheBusGames()

Returns

IReadOnlyList<RideTheBusGame>

GetSlotMachines()

Gets a read-only snapshot of all active native slot machines.

public static IReadOnlyList<SlotMachine> GetSlotMachines()

Returns

IReadOnlyList<SlotMachine>

GetTables()

Gets a read-only snapshot of all active blackjack and Ride the Bus tables.

public static IReadOnlyList<CasinoGameTable> GetTables()

Returns

IReadOnlyList<CasinoGameTable>

Events

BlackjackRoundEnded

Raised when a blackjack table returns to the waiting stage.

public static event Action<BlackjackGame>? BlackjackRoundEnded

Event Type

Action<BlackjackGame>

BlackjackRoundStarted

Raised when a blackjack table enters the dealing stage.

public static event Action<BlackjackGame>? BlackjackRoundStarted

Event Type

Action<BlackjackGame>

BlackjackStageChanged

Raised after a blackjack table changes stage.

public static event Action<BlackjackGame, BlackjackStage, BlackjackStage>? BlackjackStageChanged

Event Type

Action<BlackjackGame, BlackjackStage, BlackjackStage>

RideTheBusRoundEnded

Raised when a Ride the Bus table returns to the waiting stage.

public static event Action<RideTheBusGame>? RideTheBusRoundEnded

Event Type

Action<RideTheBusGame>

RideTheBusRoundStarted

Raised when a Ride the Bus table begins its first question.

public static event Action<RideTheBusGame>? RideTheBusRoundStarted

Event Type

Action<RideTheBusGame>

RideTheBusStageChanged

Raised after the Ride the Bus table changes stage.

public static event Action<RideTheBusGame, RideTheBusStage, RideTheBusStage>? RideTheBusStageChanged

Event Type

Action<RideTheBusGame, RideTheBusStage, RideTheBusStage>

SlotSpinCompleted

Raised when a slot machine displays a synchronized spin outcome.

public static event Action<SlotMachine, SlotSpinSnapshot>? SlotSpinCompleted

Event Type

Action<SlotMachine, SlotSpinSnapshot>

SlotSpinStarted

Raised when a slot machine begins a synchronized spin.

public static event Action<SlotMachine, SlotSpinSnapshot>? SlotSpinStarted

Event Type

Action<SlotMachine, SlotSpinSnapshot>