Browse Source

添加挑战模式已选择技能列表记忆

王刚 1 year ago
parent
commit
201eba3225

+ 1 - 1
Gameserver/App/model/Const/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-05-16 11:12:43
+ // 日期: 2024-05-16 15:25:06
 ////////////////////
 
 /**

+ 1 - 1
Gameserver/App/model/Const/sm_gate.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-05-16 11:06:33
+ // 日期: 2024-05-16 15:05:28
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_plots.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-05-16 10:23:42
+ // 日期: 2024-05-16 11:40:50
 ////////////////////
 
 

+ 5 - 3
Gameserver/App/model/User/Info_Gates.php

@@ -77,7 +77,7 @@ class Info_Gates extends Object_ext {
 
     /**
      * 挑战关卡信息
-     * @var Ins_TowerGateInfo 
+     * @var Ins_TowerGateInfo
      */
     public $TowerGate;
 
@@ -112,15 +112,17 @@ class Info_Gates extends Object_ext {
 
             $this->xunluo_StartTs = now();
             $this->TowerGate = new Ins_TowerGateInfo();
-            $this->TowerGate->CurLayer = 1;//默认从1层开始
+            $this->TowerGate->CurLayer = 1; //默认从1层开始
         } else {
             parent::__construct($arg);
+
+            $this->TowerGateInfo()->fixArray();
         }
     }
 
     /**
      * 挑战关卡数据结构
-     * @return Ins_TowerGateInfo 
+     * @return Ins_TowerGateInfo
      */
     public function TowerGateInfo() {
         $this->TowerGate = new Ins_TowerGateInfo($this->TowerGate);

+ 28 - 1
Gameserver/App/model/User/Ins_TowerGateInfo.php

@@ -6,7 +6,7 @@ namespace loyalsoft;
  * 挑战关卡数据结构
  * @author gwang
  */
-class Ins_TowerGateInfo {
+class Ins_TowerGateInfo extends Object_ext {
 
     /**
      * @var int 当前层数
@@ -22,4 +22,31 @@ class Ins_TowerGateInfo {
      * @var int 当天刷新技能次数
      */
     public $RefreshSkillTimes = 0;
+
+    /**
+     * @var int[] 选择的主动技能
+     */
+    #[ArrayType]
+    public $skill_zhudong;
+
+    /**
+     *
+     * @var int[] 选择的被动技能
+     */
+    #[ArrayType]
+    public $skill_beidong;
+
+    /**
+     *
+     * @var int[] 挑战模式 对应主动技的锁的id
+     */
+    #[ArrayType]
+    public $skill_zhudong_lockState;
+
+    /**
+     *
+     * @var int 挑战模式 对应被动技的锁的id
+     */
+    #[ArrayType]
+    public $skill_beidong_lockState;
 }

+ 6 - 8
Gameserver/App/process/EmailProc.php

@@ -23,7 +23,7 @@ class enum_Mail_Type extends Enum {
 
     /** 公会邮件 */
     const GuildNoticeMail = 8;
-    
+
     /**
      * 商城邮件
      */
@@ -133,7 +133,7 @@ class EmailProc {
         $mail = self::getMail($zoneid, $uid, $mailId);
         $mail->readts = now();
         self::updateMail($zoneid, $uid, $mail);                                 # 更新邮件数据
-        self::logMailReaded(array($mailId), $uid, $zoneid);                     # 更新数据库中邮件的read记录              
+        self::logMailReaded(array($mailId), $uid, $zoneid);                     # 更新数据库中邮件的read记录
         return Resp::ok(array());
     }
 
@@ -527,8 +527,7 @@ class EmailProc {
 
 // </editor-fold>
 //
-
-// <editor-fold defaultstate="collapsed" desc="   商城邮件   
+// <editor-fold defaultstate="collapsed" desc="   商城邮件
 // ">
 
     /**
@@ -538,15 +537,14 @@ class EmailProc {
      * @param type $title
      * @param type $content
      */
-    public static function SendMonthCardRewardMail($zoneid, $uid,$reward) {
+    public static function SendMonthCardRewardMail($zoneid, $uid, $reward) {
         $mail = new Ins_Email(null, enum_Mail_Type::ShopMail, "资源月卡每日奖励", #
                 "资源月卡每日奖励!", $reward);
         self::InsertMail($zoneid, $uid, $mail);
     }
-   
-// </editor-fold>
-//    
 
+// </editor-fold>
+//
 // <editor-fold defaultstate="collapsed" desc="    辅助方法    ">
 
     /**