setupData.ts 1016 B

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