data.ts 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. import { Enum, Vec3 } from "cc";
  2. export class model_item_data{
  3. public id:number = 0
  4. public name:string = "123"
  5. public width:number = 1080
  6. public height:number = 1000
  7. public list:model_content_item_data[] = [];
  8. }
  9. export class model_content_item_data{
  10. public x:number = 0;
  11. public y:number = 0;
  12. public w:number = 0;
  13. public h:number = 0;
  14. public buff_type:number = -1;
  15. public item_type:number = -1;
  16. public pos:Vec3 = null
  17. }
  18. export class settingData{
  19. public isOpenYinYue:boolean = true; //是否开启音乐
  20. public isOpenYinXiao:boolean = true; //是否开启音效
  21. public isOpenZhendong:boolean = true; //是否开启震动
  22. }
  23. export class level_data{
  24. public content:level_item_data[] = []
  25. }
  26. export class level_item_data{
  27. public content:string = ""
  28. }
  29. export class userInfo{
  30. public avatarUrl:string = ""
  31. public nickName:string = ""
  32. public gender:number = 0
  33. public city:string = ""
  34. public province:string = ""
  35. public country:string = ""
  36. public language:string = ""
  37. }
  38. export class userData{
  39. public id:number = 0
  40. public openid:string = ""
  41. public avatarUrl:string = ""
  42. public avatar_id:number = 0 //头像框id
  43. public photo_frame_img:string = "" //头像框地址
  44. public nickName:string = ""
  45. public unionid:string = ""
  46. public region_pid:number = 0
  47. public region_id:number = 0
  48. public license_plate:string = ""
  49. public ip:string = ""
  50. public platform:string = ""
  51. public create_at:string = ""
  52. public license_code:string = ""
  53. public token:string = ""
  54. public province_name:string = ""
  55. public city_name:string = ""
  56. public update_region_status:number = 1 //1:本周已经设置 0:本周未设置
  57. public tt_sidebar_reward_status:number = 0 //1:已经领取 0:未领取
  58. public free_game_number:number = 0 //今日免费玩游戏次数
  59. public share_number:number = 0 //今日分享次数
  60. }
  61. export class rankData{
  62. public score:number = 0 //最大积分
  63. public number:number = 0 //排名 0 没有分数和排名
  64. public ranking_desc:string = "" // 排名描述
  65. public user_id:number = 0 // 用户id
  66. public avatarUrl:string = "" // 头像
  67. public avatar_id:number = 0 //头像框id
  68. public photo_frame_img:string = ""//头像框地址
  69. public nickName:string = "" //昵称
  70. public license_code:string = "" //车牌号
  71. public car_id:number = 1 // 当前汽车图片id
  72. public car_url:string = "" // 当前汽车图片
  73. public car_name:string = "" // 当前汽车名字
  74. public province_code:string = "" //省简称
  75. public province_name:string = ""//省名字
  76. public city_name:string = ""//市名字
  77. public city_badge_status:number = 0 //城市徽章状态 1展示 0不展示
  78. public province_badge_status:number = 0 //省级徽章状态 1展示 0不展示
  79. public nationwide_badge_status:number = 0 //全国徽章状态 1展示 0不展示
  80. public quarter_rank_id:number = 0 //赛季排行id
  81. }
  82. export class guangboData{
  83. public title:string = ""
  84. }
  85. export class user_car_list{
  86. public car_list:number[] = [] // 汽车列表
  87. public default_car_id:number = 0 // 默认车辆
  88. public max_integral:number = 0 // 最高分
  89. }
  90. export class user_results{
  91. public unlock_car_list:number[] = [] //所有汽车列表
  92. public default_car_id:number = 0 // 默认车辆
  93. public obtain_list:number[] = [] //
  94. public ratio:string = ""
  95. public max_integral:number = 0 //最高分
  96. public city_badge_status:number = 0 //城市徽章状态 1展示 0不展示
  97. public province_badge_status:number = 0 //省级徽章状态 1展示 0不展示
  98. public nationwide_badge_status:number = 0 //全国徽章状态 1展示 0不展示
  99. }
  100. export class sysConfig{
  101. public bulletin_img:string = "" //公告
  102. public game_introduction_img:string = ""//游戏介绍
  103. public free_ads_number:number = 0 //免费广告数量
  104. public free_game_time:number = 0 //免费游戏时间,单位s
  105. public free_game_number:number = 0 //今日免费玩游戏次数
  106. public share_number:number = 0 //今日分享次数
  107. public share_des:string = '' //分享描述
  108. public game_end_prompt:string[] = [] //游戏结束提示
  109. }
  110. export class user_free_ads_data{
  111. public look_video_count:number = 0
  112. public start_date_time:number = 0
  113. public is_free:boolean = false
  114. public is_look_video_infinite_count_reward:boolean = false //是否看广告的无限次数奖励
  115. }
  116. export enum car_type {
  117. score = 0,
  118. suipian = 1,
  119. }
  120. export class car_item_data{
  121. public id:number = 0;
  122. public name:string = "";
  123. public unlock_points:number = 0;
  124. public cover:string = "";
  125. public home_cover:string = "";
  126. public ranking_cover:string = "";
  127. public stype:number = car_type.score; // 0:分数车 1:碎片兑换
  128. public attribute:car_item_attribute_data = new car_item_attribute_data() //属性
  129. public background_cover:string = "";
  130. public temp_bag_list_item_data:bag_list_item_data = null //临时-背包列表数据(车库背包碎片)
  131. }
  132. export class car_item_attribute_data {
  133. public k_oil_number:number = 0 // 开局血量
  134. public k_sprint_cd:number = 0 // 开局冲刺(秒)
  135. public n_shield_cd:number = 0 // 游戏中护盾(秒)
  136. public n_star_cd:number = 0 // 游戏中星星(秒)
  137. public n_magnet_cd:number = 0 // 游戏中磁铁(秒)
  138. }
  139. export class mail_item_data {
  140. public id:number = 0
  141. public title:string = ''
  142. public create_at:string = ''
  143. public user_id:number = 0
  144. public state:number = 0 // 状态 0:未领取 1:已经领取
  145. public content:string = ''
  146. public rewards_list:mail_rewards_item_data[] = [] // 奖励列表
  147. }
  148. export class mail_rewards_item_data {
  149. public name:string = ''
  150. public icon:string = ''
  151. public quantity:number = 0 //数量
  152. }
  153. export class bag_type_item_data {
  154. public id:number = 0
  155. public name:string = ''
  156. }
  157. export enum bag_type {
  158. car_suipian = 1,
  159. xiangkuang = 2,
  160. daoju = 3,
  161. }
  162. export class bag_list_item_data {
  163. public id:number = 0 //背包id
  164. public item_id:number = 0 //物品id
  165. public name:string = '' //名称
  166. public stype:bag_type = bag_type.car_suipian //物品类型,1=兑换汽车碎片 2=相框 3=道具
  167. public description:string = '' //描述
  168. public icon:string = '' //图标
  169. public base_type:number = 0 //物品基础类型,1表示兑换物品,2表示游戏内使用物品
  170. public car_id:number = 0 //汽车id
  171. public quantity:number = 0 //数量
  172. public usage_status:number = 0 //使用状态,1:已经使用
  173. public user_id:number = 0 //用户id
  174. }
  175. export class sign_reward_data {
  176. public index:number = 0 //下标 签到时候使用
  177. public item_id:number = 0
  178. public name:string = '' //名字
  179. public icon:string = '' //图标
  180. public quantity:number = 0 //数量
  181. public current_sign_status:number = 0 //当前签到状态 1:表示当前签到位置
  182. public receive_status:number = 0 //领取状态 0:未领取 1:已经领取
  183. public repair_sign_status:number = 0//补签状态 0:不可以补签 1:可以补签
  184. }
  185. export class sign_total_reward_data{
  186. public index:number = 0 //下标 签到时候使用
  187. public item_id:number = 0
  188. public name:string = '' //名字
  189. public icon:string = '' //图标
  190. public quantity:number = 0 //数量
  191. public day_number:number = 0 //天数
  192. public is_receive_status:number = 0 //是否可以领取
  193. public receive_status:number = 0 //领取状态 0:未领取 1:已经领取
  194. }
  195. export class quarter_rank_item_data {
  196. public ranking_number:string = ''
  197. public quarter_rank_id:number = 0
  198. public items_id:number = 0
  199. public icon:string = ''
  200. public name:string = ''
  201. }
  202. export class edit_game_config_data{
  203. public box_list:box_random_data[] = []
  204. public scores:box_random_data = null
  205. public car_init_num:number = 3;
  206. public buff_xing:number = 10;
  207. public buff_xi:number = 10;
  208. public buff_dun:number = 10;
  209. public buff_xi_range:number = 10;
  210. //
  211. public car_origin_speed:number = 700;
  212. public car_add_speed_time:number = 1;
  213. public car_add_speed_num:number = 0;
  214. public car_add_speed_max:number = 0;
  215. //
  216. public buff_xi_add_speed:number = 0;
  217. public buff_dun_add_speed:number = 0;
  218. public buff_xing_add_speed:number = 0;
  219. }
  220. export class box_random_data{
  221. public min:number = 0;
  222. public max:number = 0;
  223. public type:number = 0;
  224. }
  225. export class area_item_data{
  226. public id:number = -1;
  227. public name:string = '';
  228. public pid:number = -1;
  229. public list:area_item_data[] = []
  230. }
  231. export enum DirType{
  232. LEFT,
  233. RIGHT,
  234. NONE,
  235. }