Merge pull request 'update core plugin' (#23) from feature/update-plugin-core into develop

Reviewed-on: dev-tech/ts-table-game-template#23
Reviewed-by: Le Hoang Nam <nam.le@noreply.localhost>
This commit is contained in:
Le Hoang Nam 2025-06-16 12:50:23 +08:00
commit 8dca8456d6
3 changed files with 33 additions and 13 deletions

View File

@ -173,7 +173,24 @@ export type StateMachineKeys = {
EventManager: symbol;
StateMachine: symbol;
};
export declare const CONTROLLER_STATE_MACHINE: Record<string, StateMachineKeys>;
export declare const CONTROLLER_STATE_MACHINE: {
Game: {
StateMachine: symbol;
EventManager: symbol;
};
Bet: {
StateMachine: symbol;
EventManager: symbol;
};
BetOption: {
StateMachine: symbol;
EventManager: symbol;
};
Room: {
StateMachine: symbol;
EventManager: symbol;
};
};
export declare const STATE_CONTEXT: unique symbol;
export declare const DEFAULT_STATE: unique symbol;
export declare const LIST_STATE_TRANSITION_CREATOR: unique symbol;
@ -547,11 +564,10 @@ import { StateMachine } from "../../../../common/state/state-machine";
export declare class BetControllerStateMachine extends StateMachine<Core.State.BetControllerState> {
}
export declare class BetLimitController implements Core.Controller.BetLimitController {
private listRoomBetLimitModel;
private betLimitModel;
private betLimitGameView;
constructor(listRoomBetLimitModel: Core.Model.ListRoomBetLimitModel, betLimitModel: Core.Model.BetLimitModel, betLimitGameView: Core.View.GameView);
updateCurrentBetLimit(roomIndex: number): void;
constructor(betLimitModel: Core.Model.BetLimitModel, betLimitGameView: Core.View.GameView);
updateCurrentBetLimit(betLimitModel: Core.Model.BetLimitModel): void;
}
export declare class LoungeBetLimitController implements Core.Controller.LoungeBetLimitController {
private listRoomBetLimitModel;
@ -839,10 +855,14 @@ export declare class DefaultBetOptionProcessor extends ChainDataProcessor {
import { ChainDataProcessor } from "../../../common/service/chain-of-responsibility/chain-data-processor";
export declare class DefaultBetSettingProcessor extends ChainDataProcessor {
private betLimitController;
private listRoomBetLimitModel;
private roomIndexModel;
constructor(betLimitController: Core.Controller.BetLimitController, roomIndexModel: Core.Model.RoomIndexModel, nextDataProcessor?: Core.Network.DataProcessor);
constructor(betLimitController: Core.Controller.BetLimitController, listRoomBetLimitModel: Core.Model.ListRoomBetLimitModel, roomIndexModel: Core.Model.RoomIndexModel, nextDataProcessor?: Core.Network.DataProcessor);
process(data: any): void;
private getRoomIndex;
private getBetLimit;
private processRoomIndex;
private processBetLimit;
}
import { ChainDataProcessor } from "../../../common/service/chain-of-responsibility/chain-data-processor";
export declare class DefaultLoungeBetLimitProcessor extends ChainDataProcessor {

View File

@ -37,7 +37,7 @@ declare namespace Core.Controller {
}
declare namespace Core.Controller {
interface BetLimitController {
updateCurrentBetLimit(roomIndex: number): any;
updateCurrentBetLimit(betLimitModel: Model.BetLimitModel): any;
}
}
declare namespace Core.Controller {

File diff suppressed because one or more lines are too long