import { _decorator, Component, Node } from 'cc'; import { robot_ai_level, room_rival_type } from '../constant'; import { bagData } from './bagData'; import { emailData } from './emailData'; import { privacyData } from './privacyData'; import { roomData } from './roomData'; import { wearData } from './wearData'; const { ccclass, property } = _decorator; @ccclass('userData') /* { "user_id": 3, "user_name": "\u68cb\u53cb7754", "mobile": "13269917754", "introduction": "", "user_avatar": "", "wx_openid": "", "wx_name": "", "wx_avatar": "", "qcoin": 0, "status": 1, "is_register": 0, "login_type": 1, "action": "logon" } */ export class userData { public userid: number = null; public user_name: string = null; public mobile: string = null; public introduction: string = null; public user_avatar: string = null; public wx_openid: string = null; public wx_name: string = null; public wx_avatar: string = null; public qcoin: number = null; public status: number = null; public is_register: number = null; public login_type: number = null; public action: string = null; public cur_status:number = null; // 0.无 1.闲逛 ,2 对战 3.等待 public integral:number = null; //当前积分 public integral_level:number = null; //级别 public integral_level_name:string= null; //级别名称 room:roomData = null; public is_robot:number = room_rival_type.play; //1 是机器人,0不是 public robot_ai_lv:number = robot_ai_level.xiaobai; room_info:roomData = null; //登陆附带的房间信息 public privacy:privacyData = new privacyData(); //隐私配置 public wear:wearData = new wearData(); //佩戴物品 public bag:bagData = new bagData(); //背包 public tong_bi:number = 0; //铜币数量 public friend_list:userData[] =[]; //好友列表 public online_friend_list:userData[] =[]; //在线好友列表 public email_list:emailData[] =[]; //邮件列表 }