StoreModel.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. namespace loyalsoft;
  3. /**
  4. * Description of StoreModel
  5. * 玩家背包/仓库数据模型
  6. * @author gwang
  7. */
  8. class StoreModel extends Object_ext {
  9. /**
  10. * 其他道具
  11. * @var array
  12. */
  13. public $items;
  14. /**
  15. * 已获得英雄卡牌道具,不叠加
  16. * @var array
  17. */
  18. public $cards;
  19. /**
  20. * 装备, 待定
  21. * @var type
  22. */
  23. public $equipment;
  24. /**
  25. * 宝箱
  26. * @var array
  27. */
  28. public $boxes;
  29. /**
  30. * 英雄碎片,叠加
  31. * @var object
  32. * @deprecated since version 0
  33. */
  34. public $segement;
  35. /**
  36. * 七宗罪元素(炼金元素)
  37. * @var object
  38. * @deprecated since version 0
  39. */
  40. public $element;
  41. /**
  42. * 石头,叠加
  43. * @var object
  44. * @deprecated since version 0
  45. */
  46. public $stones;
  47. /**
  48. * 玩家注册时初始化
  49. */
  50. public function initialize() {
  51. $this->boxes = GameConfig::primordial_data()->User_Store_boxes;
  52. //array('701001' => 0, '702002' => 0, '703003' => 0, '704004' => 0);
  53. $this->cards = ArrayInit();
  54. $this->items = GameConfig::primordial_data()->User_Store_items; # 初始含有一张黄金通知书
  55. $this->equipment = ObjectInit();
  56. $this->segement = GameConfig::primordial_data()->User_Store_segment; # 碎片
  57. $this->stones = ObjectInit();
  58. $this->element = GameConfig::primordial_data()->User_Store_element;
  59. //array('388001' => 0, '388002' => 0, '388003' => 0, '388004' => 0, '388005' => 0, '388006' => 0, '388007' => 0);
  60. }
  61. }