|
@@ -20,44 +20,43 @@ class Info_Store extends Object_ext {
|
|
|
* @var \stdClass()
|
|
|
*/
|
|
|
public $items;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 宝石在背包库的唯一id
|
|
|
* @var type
|
|
|
*/
|
|
|
- public $gemLength = 0;
|
|
|
-
|
|
|
+ public $gemLength = 0;
|
|
|
|
|
|
/**
|
|
|
* 宝石背包
|
|
|
* \stdClass()
|
|
|
*/
|
|
|
public $gemStore;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 装备界面默认页
|
|
|
* @var int
|
|
|
*/
|
|
|
- public $equipPag =1;
|
|
|
+ public $equipPag = 1;
|
|
|
|
|
|
/**
|
|
|
* 装备背包数据
|
|
|
* @var \stdClass()
|
|
|
*/
|
|
|
public $equip;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 装备部位--废弃
|
|
|
* @var \stdClass()
|
|
|
*/
|
|
|
public $equipPosition;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 6个装备部位
|
|
|
* @var type
|
|
|
*/
|
|
|
public $equipLocation;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 宝石装备的信息--废弃
|
|
|
* @var \stdClass()
|
|
@@ -69,9 +68,14 @@ class Info_Store extends Object_ext {
|
|
|
* @var type
|
|
|
*/
|
|
|
//public $equipPosition = null;
|
|
|
-
|
|
|
+
|
|
|
public $gemComposeNum = 0;
|
|
|
-
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @var int current UID
|
|
|
+ */
|
|
|
+ public $cuid = 10000;
|
|
|
+
|
|
|
public function initialize() {
|
|
|
|
|
|
}
|
|
@@ -82,24 +86,22 @@ class Info_Store extends Object_ext {
|
|
|
$this->gemStore = new \stdClass();
|
|
|
$this->equip = new \stdClass();
|
|
|
$this->equipLocation = new \stdClass();
|
|
|
-
|
|
|
+
|
|
|
$this->equipPosition = new \stdClass();
|
|
|
- for ($i = 1; $i <=6; $i++) {
|
|
|
- $equip = new Ins_EquipPosition();
|
|
|
+ for ($i = 1; $i <= 6; $i++) {
|
|
|
+ $equip = new Ins_EquipPosition();
|
|
|
$equip->typeId = $i;
|
|
|
$this->equipPosition->$i = $equip;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
$this->gemEquip = new \stdClass();
|
|
|
- for ($k = 1; $k <=3; $k++) {
|
|
|
+ for ($k = 1; $k <= 3; $k++) {
|
|
|
$item = new \stdClass();
|
|
|
for ($j = 1; $j <= 6; $j++) {
|
|
|
$item->$j = new \stdClass();
|
|
|
}
|
|
|
- $this->gemEquip->$k =$item;
|
|
|
+ $this->gemEquip->$k = $item;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
} else {
|
|
|
parent::__construct($arg);
|
|
|
}
|
|
@@ -113,4 +115,11 @@ class Info_Store extends Object_ext {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return 产生下一个唯一ID
|
|
|
+ */
|
|
|
+ public function nextUID() {
|
|
|
+ return $this->cuid++;
|
|
|
+ }
|
|
|
}
|