Преглед на файлове

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

王刚 преди 1 година
родител
ревизия
26d9f23074
променени са 2 файла, в които са добавени 40 реда и са изтрити 4 реда
  1. 20 4
      Gameserver/App/model/User/Info_Gates.php
  2. 20 0
      Gameserver/App/model/User/Ins_TowerGateInfo.php

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

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