|
@@ -14,58 +14,58 @@ namespace loyalsoft;
|
|
|
* @author c'y'zhao
|
|
|
*/
|
|
|
class Info_Gates extends Object_ext {
|
|
|
+
|
|
|
/**
|
|
|
* 当前剧情选择的关卡
|
|
|
*/
|
|
|
public $CurrentGateId = 0;
|
|
|
+
|
|
|
/**
|
|
|
* 已解锁剧情关卡的最大id
|
|
|
* @var type
|
|
|
*/
|
|
|
- public $UnlockedGatesMaxId = 0;
|
|
|
+ public $UnlockedGatesMaxId = 0;
|
|
|
+
|
|
|
/**
|
|
|
* 章节列表
|
|
|
* @var Ins_GateInfo
|
|
|
*/
|
|
|
public $GateList = null;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
- *
|
|
|
+ *
|
|
|
* @var type
|
|
|
*/
|
|
|
public $GatesChallengeRecord = null;
|
|
|
-
|
|
|
- public function initialize() {
|
|
|
- $startId= 1;
|
|
|
+
|
|
|
+ public function initialize() {
|
|
|
+ $startId = 1;
|
|
|
$this->CurrentGateId = $startId;
|
|
|
$this->UnlockedGatesMaxId = $startId;
|
|
|
-
|
|
|
- $this->GateList = new \stdClass();
|
|
|
+
|
|
|
+ $this->GateList = new \stdClass();
|
|
|
$Ins_GateInfo = new Ins_GateInfo();
|
|
|
$Ins_GateInfo->GateId = $this->CurrentGateId;
|
|
|
- $this->GateList->$startId=$Ins_GateInfo;
|
|
|
-
|
|
|
+ $this->GateList->$startId = $Ins_GateInfo;
|
|
|
+
|
|
|
$this->GatesChallengeRecord = new \stdClass();
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public function __construct($arg = null) {
|
|
|
- if($tag == null){
|
|
|
- if($this->CurrentGateId == 0){
|
|
|
- $startId= 1;
|
|
|
+ if ($arg == null) {
|
|
|
+ if ($this->CurrentGateId == 0) {
|
|
|
+ $startId = 1;
|
|
|
$this->CurrentGateId = $startId;
|
|
|
$this->UnlockedGatesMaxId = $startId;
|
|
|
-
|
|
|
- $this->GateList = new \stdClass();
|
|
|
+
|
|
|
+ $this->GateList = new \stdClass();
|
|
|
$Ins_GateInfo = new Ins_GateInfo();
|
|
|
$Ins_GateInfo->GateId = $this->CurrentGateId;
|
|
|
- $this->GateList->$startId=$Ins_GateInfo;
|
|
|
-
|
|
|
-
|
|
|
+ $this->GateList->$startId = $Ins_GateInfo;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
$this->GatesChallengeRecord = new \stdClass();
|
|
|
-
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
parent::__construct($arg);
|
|
|
}
|
|
|
}
|