12345678910111213141516171819202122232425262728 |
- import { _decorator, Component, Node } from 'cc';
- import { timeCountData } from './timeCountData';
- const { ccclass, property } = _decorator;
- @ccclass('setupData')
- export class setupData {
- public userid:number = 0; //悔棋方的id
- public src_pos:number = 0; //当前棋子老的位置
- public dec_pos:number = 0; //当前棋子新的位置
- public chess_whole:string = ""; //记录整个棋盘的布局
- public rund_number:number = 0; //当前回合数
- public des_who:string = ""; //描述
- public is_mate:number = 0; //没有绝杀,1 绝杀
- //和棋次数
- public heqi_number:number = 0;
- //悔棋次数
- public huiqi_number:number = 0;
-
- public huiqi_setup:number = 0;
- //0 是等待对方同意或拒绝悔棋 ,1 是等待对方同意或拒绝和棋
- //2 选择同意或拒绝悔棋 ,3 选择同意或拒绝和棋
- public wait_select_result:number = null;
- public pvp_time:timeCountData = null;
- public robot_data:setupData = null; //机器人数据
- }
|