Browse Source

add: 玩家挑战关卡数据结构

王刚 1 year ago
parent
commit
26d9f23074

+ 20 - 4
Gameserver/App/model/User/Info_Gates.php

@@ -56,25 +56,31 @@ class Info_Gates extends Object_ext {
      * @var int
      */
     public $xunluo_quick_buyRecord = 0;
-    
+
     /**
      * 进化左边解锁最大值得记录
      * @var type
      */
     public $evolveMaxId_left = 0;
-    
+
     /**
      * 进化右边解锁最大值得记录
      * @var type
      */
     public $evolveMaxId_right = 0;
-    
+
     /**
      * 扫荡
      * @var type
      */
     public $fightSweepNum = 0;
 
+    /**
+     * 挑战关卡信息
+     * @var Ins_TowerGateInfo 
+     */
+    public $TowerGate;
+
     public function initialize() {
         $startId = 110011001;
         $this->CurrentGateId = $startId;
@@ -103,13 +109,23 @@ class Info_Gates extends Object_ext {
             }
 
             $this->GatesChallengeRecord = new \stdClass();
-          
+
             $this->xunluo_StartTs = now();
+            $this->TowerGate = new Ins_TowerGateInfo();
         } else {
             parent::__construct($arg);
         }
     }
 
+    /**
+     * 挑战关卡数据结构
+     * @return Ins_TowerGateInfo 
+     */
+    public function TowerGateInfo() {
+        $this->TowerGate = new Ins_TowerGateInfo($this->TowerGate);
+        return $this->TowerGate;
+    }
+
     /**
      * 当前关卡信息
      * @return Ins_GateInfo

+ 20 - 0
Gameserver/App/model/User/Ins_TowerGateInfo.php

@@ -0,0 +1,20 @@
+<?php
+ 
+
+namespace loyalsoft;
+
+/**
+ * 挑战关卡数据结构
+ * @author gwang
+ */
+class Ins_TowerGateInfo {
+   /**
+    * @var int 当前层数
+    */
+   public $CurLayer = 0;
+
+   /**
+    * @var type 当天挑战次数
+    */
+   public $TodayChanNum = 0;
+}