Files
youle_cocos/cocoscreator_projects/YouleNexus/assets/games/erqiwang/ErqiwangRoomView.ts
T

15 lines
729 B
TypeScript

import {_decorator} from 'cc';
import {TemplateRoomView} from '../template/TemplateRoomView.ts';
import type {TemplateRoomActions} from '../template/template-game.ts';
import type {PlatformGameSnapshot} from '../../framework/sdk/contracts/index.ts';
const {ccclass}=_decorator;
/** Temporary room receipt surface for the create-room integration stage. */
@ccclass('ErqiwangRoomView')
export class ErqiwangRoomView extends TemplateRoomView {
render(snapshot:PlatformGameSnapshot,actions:TemplateRoomActions):void{
super.render(snapshot,actions);
if(this.roomLabel)this.roomLabel.string='二七王 房间号:'+snapshot.room.roomcode+'\n玩法尚未接入';
if(this.prepareButton)this.prepareButton.node.active=false;
}
}