Browse Source

玩家数据结构上添加地图解锁信息

gwang 4 years ago
parent
commit
2a070b762f

+ 8 - 0
Gameserver/Amfphp/model/User/Data_UserGame.php

@@ -49,6 +49,13 @@ class Data_UserGame extends HashSaver {
      */
      */
     public $gates;
     public $gates;
 
 
+    /**
+     * 地图解锁信息
+     * @var Info_Map
+     */
+    public $map;
+
+
 //    /**
 //    /**
 //     * @var Info_UserTask 玩家任务数据
 //     * @var Info_UserTask 玩家任务数据
 //     */
 //     */
@@ -122,6 +129,7 @@ class Data_UserGame extends HashSaver {
             $this->heros = new Info_UserGameHero();                             # 英雄数据
             $this->heros = new Info_UserGameHero();                             # 英雄数据
 //            $this->heros->InitializeHero();                                     # 添加初始英雄
 //            $this->heros->InitializeHero();                                     # 添加初始英雄
             $this->gates = new Info_UserGateDifficulty();                            # 初始化关卡默认数据
             $this->gates = new Info_UserGateDifficulty();                            # 初始化关卡默认数据
+            $this->map = new Info_Map();                                        # 初始化地图解锁数据
 //            $this->heroManual = new HeroManualModel();                          # 初始化图鉴数据结构
 //            $this->heroManual = new HeroManualModel();                          # 初始化图鉴数据结构
             $this->NewbieGuide = ObjectInit();                                  # 初始化新手引导结构
             $this->NewbieGuide = ObjectInit();                                  # 初始化新手引导结构
 //            $this->pvp = new UserPVPModel();                                    # 初始化pvp模块
 //            $this->pvp = new UserPVPModel();                                    # 初始化pvp模块

+ 0 - 87
Gameserver/Amfphp/model/User/Info_Map.php

@@ -42,90 +42,3 @@ class Info_Map extends Object_ext {
     }
     }
 
 
 }
 }
-
-/**
- * 八大陆数据 extends Object
- * 困难难度不会垮大陆关联, 只在本大陆中同一个区域或者不同区域之间互相关联
- * @version
- *          2.0.0 改成八大陆数据 at 2021年3月2日14:37:51 -gwang  
- *          1.0.0 Created at 2017-2-14. by --gwang
- * @author gwang (mail@wanggangzero.cn)
- * @copyright ? 2017-2-14, SJZ LoyalSoft Corporation & gwang. All rights reserved.
- */
-class Ins_Mainland extends Object_ext {
-
-    /**
-     * @var int 当前大陆id
-     */
-    public $landId;
-
-    /**
-     * 普通关卡
-     */
-    public $normal;
-
-    /**
-     * 困难关卡
-     */
-    public $hard;
-
-    /**
-     * 精英关卡
-     */
-    public $elite;
-
-    function __construct($arg = null) {
-        if (null === $arg) {
-            $this->normal = new \stdClass();
-            $this->hard = new \stdClass();
-            $this->elite = new \stdClass;
-        } else {
-            parent::__construct($arg);
-        }
-    }
-
-}
-
-/**
- * 玩家关卡地图区域数据
- * @author gwang
- */
-class Ins_Mapzone extends Object_ext {
-
-    /**
-     * 当前区域id
-     * @var type
-     */
-    public $zoneid;
-
-    /**
-     * 最后一次挑战的关卡ID
-     * @var int
-     */
-    public $latest = 1;
-
-    /**
-     * 已挑战的最高关卡Id(用于限定解锁关卡)
-     * @var int
-     */
-    public $highest = 1;
-
-    /**
-     * 关卡具体数据()
-     * @var asoc_array/Ins_UGate dic<gateId,Ins_UGate>
-     */
-    public $gates;
-
-    /**
-     * 构造函数
-     * @param type $arg
-     */
-    function __construct($arg = null) {
-        if (null === $arg) {
-            $this->gates = ObjectInit();
-        } else {
-            parent::__construct($arg);
-        }
-    }
-
-}

+ 45 - 0
Gameserver/Amfphp/model/User/Ins_Mainland.php

@@ -0,0 +1,45 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * 八大陆数据 extends Object
+ * 困难难度不会垮大陆关联, 只在本大陆中同一个区域或者不同区域之间互相关联(此系采访策划后答复)
+ * @version
+ *          1.0.0 八大陆数据 at 2021年3月2日14:37:51 -gwang  
+ * @author gwang (mail@wanggangzero.cn)
+ * @copyright ? 2017-2-14, SJZ LoyalSoft Corporation & gwang. All rights reserved.
+ */
+class Ins_Mainland extends Object_ext {
+
+    /**
+     * @var int 当前大陆id
+     */
+    public $landId;
+
+    /**
+     * 普通关卡
+     */
+    public $normal;
+
+    /**
+     * 困难关卡
+     */
+    public $hard;
+
+    /**
+     * 精英关卡
+     */
+    public $elite;
+
+    function __construct($arg = null) {
+        if (null === $arg) {
+            $this->normal = new \stdClass();
+            $this->hard = new \stdClass();
+            $this->elite = new \stdClass;
+        } else {
+            parent::__construct($arg);
+        }
+    }
+
+}

+ 47 - 0
Gameserver/Amfphp/model/User/Ins_Mapzone.php

@@ -0,0 +1,47 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * 玩家关卡地图区域数据
+ * @author gwang
+ */
+class Ins_Mapzone extends Object_ext {
+
+    /**
+     * 当前区域id
+     * @var type
+     */
+    public $zoneid;
+
+    /**
+     * 最后一次挑战的关卡ID
+     * @var int
+     */
+    public $latest = 1;
+
+    /**
+     * 已挑战的最高关卡Id(用于限定解锁关卡)
+     * @var int
+     */
+    public $highest = 1;
+
+    /**
+     * 关卡具体数据()
+     * @var asoc_array/Ins_UGate dic<gateId,Ins_UGate>
+     */
+    public $gates;
+
+    /**
+     * 构造函数
+     * @param type $arg
+     */
+    function __construct($arg = null) {
+        if (null === $arg) {
+            $this->gates = ObjectInit();
+        } else {
+            parent::__construct($arg);
+        }
+    }
+
+}

+ 0 - 17
Gameserver/nbproject/private/private.xml

@@ -12,26 +12,9 @@
     </editor-bookmarks>
     </editor-bookmarks>
     <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
     <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
         <group>
         <group>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/process/FightProc/SweepGatesProc.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/Info_UserBase.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/Ins_UGate.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/base/CmdCode.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/Info_PublicState.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/Info_UserGameHero.php</file>
             <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/Info_PrivateState.php</file>
             <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/Info_PrivateState.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/Enum_EventType.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/Info_UserGateDifficulty.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/process/StoreProc.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/Ins_TaskCard.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/Ins_TaskStep.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/Info_TaskCard_Shop.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/process/UserProc.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/process/EventProc.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/main.php</file>
             <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/process/EventProc/NormalEventProc.php</file>
             <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/process/EventProc/NormalEventProc.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/Data_UserGame.php</file>
             <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/Info_Map.php</file>
             <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/model/User/Info_Map.php</file>
-            <file>file:/D:/local_svn/0_ylsj2019/ylsj2019Server/Gameserver/Amfphp/process/FightProc.php</file>
         </group>
         </group>
     </open-files>
     </open-files>
 </project-private>
 </project-private>