feat: integrate erqiwang rooms and use spec-compliant Web compilation
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import type {Roomtype} from '../../framework/sdk/contracts/roomtype.ts';
|
||||
/** Source: 01_SubGame_modify.js. Options are presentation state, not a rule-array encoder. */
|
||||
export class TemplateRoomRules {
|
||||
readonly labels=['10局(房卡X1)','20局(房卡X2)','房主扣卡','每人扣卡'] as const;
|
||||
@@ -13,7 +14,7 @@ export class TemplateRoomRules {
|
||||
this.selected[group]=index;
|
||||
}
|
||||
build():unknown[]{return [1,4,1,2,2,[1,1,[1,2000,10],null,null,1],[1,0,5]];}
|
||||
seatCount(roomtype:readonly unknown[]):number{
|
||||
seatCount(roomtype: Roomtype):number{
|
||||
if(!Array.isArray(roomtype))throw Error('Template roomtype must be an array');
|
||||
// Desk.Create uses Game_Config.Max.PlayerCnt because the template defines no getMaxPlayerCount hook.
|
||||
return 10;
|
||||
|
||||
Reference in New Issue
Block a user