Browse Source

配置表生成代码修改

guodong 3 years ago
parent
commit
12221fd52c

+ 2 - 2
GameClient/Assets/Editor/Excel/ExcelConfig.cs

@@ -13,12 +13,12 @@ namespace GFGEditor
         /// <summary>
         /// <summary>
         /// 存放编辑器序列化文件的文件夹路径
         /// 存放编辑器序列化文件的文件夹路径
         /// </summary>
         /// </summary>
-        public const string configCodePath = "Assets/Game/HotUpdate/ExcelConfig/GenCode/Item/";
+        public const string configCodePath = "Assets/Game/CSShare/GFG/HotUpdate/ExcelConfig/GenCode/Item/";
 
 
         /// <summary>
         /// <summary>
         /// 存放编辑器序列化文件的文件夹路径
         /// 存放编辑器序列化文件的文件夹路径
         /// </summary>
         /// </summary>
-        public const string configArrayCodePath = "Assets/Game/HotUpdate/ExcelConfig/GenCode/Array/";
+        public const string configArrayCodePath = "Assets/Game/CSShare/GFG//HotUpdate/ExcelConfig/GenCode/Array/";
 
 
 
 
         /// <summary>
         /// <summary>

+ 5 - 1
GameClient/Assets/Editor/Excel/Template/Config.txt

@@ -1,4 +1,8 @@
-using Mono.Data.Sqlite;
+#if UNITY_2017_1_OR_NEWER
+    using Mono.Data.Sqlite;
+#else
+using Microsoft.Data.Sqlite;
+#endif
 
 
 namespace GFGGame
 namespace GFGGame
 {
 {

+ 2 - 2
GameClient/Assets/Editor/Excel/Template/ConfigArray.txt

@@ -26,7 +26,7 @@ namespace GFGGame
                 }
                 }
                 catch(System.Exception e)
                 catch(System.Exception e)
                 {
                 {
-                    throw (e);
+                    ET.Log.Error(e);
                 }
                 }
                 finally
                 finally
                 {
                 {
@@ -57,7 +57,7 @@ namespace GFGGame
                     }
                     }
                     catch(System.Exception e)
                     catch(System.Exception e)
                     {
                     {
-                        throw (e);
+                        ET.Log.Error(e);
                     }
                     }
                     finally
                     finally
                     {
                     {

+ 2 - 2
GameClient/Assets/Editor/Excel/Template/ConfigArray2.txt

@@ -26,7 +26,7 @@ namespace GFGGame
             }
             }
             catch(System.Exception e)
             catch(System.Exception e)
             {
             {
-                throw (e);
+                ET.Log.Error(e);
             }
             }
             finally
             finally
             {
             {
@@ -59,7 +59,7 @@ namespace GFGGame
                     }
                     }
                     catch(System.Exception e)
                     catch(System.Exception e)
                     {
                     {
-                        throw (e);
+                        ET.Log.Error(e);
                     }
                     }
                     finally
                     finally
                     {
                     {

+ 5 - 2
GameClient/Assets/Editor/ToolsMenu.cs

@@ -1,4 +1,5 @@
-using GFGGame;
+using ET;
+using GFGGame;
 using System;
 using System;
 using System.IO;
 using System.IO;
 using UnityEditor;
 using UnityEditor;
@@ -133,6 +134,8 @@ namespace GFGEditor
         [MenuItem("策划/其它/导入配置表", false, (int)TOOL_MENU_PRIORITY.ImportExcel)]
         [MenuItem("策划/其它/导入配置表", false, (int)TOOL_MENU_PRIORITY.ImportExcel)]
         public static void ImportExcel()
         public static void ImportExcel()
         {
         {
+            Log.ILog = new UnityLogger();
+            ET.Options.Instance = new ET.Options();
             EditorUtility.DisplayProgressBar("进度", "正在导入表格", 1);
             EditorUtility.DisplayProgressBar("进度", "正在导入表格", 1);
             SqliteController.Instance.dirPath = Path.Combine(Environment.CurrentDirectory, ResPathUtil.CONFIG_DIR_PATH);
             SqliteController.Instance.dirPath = Path.Combine(Environment.CurrentDirectory, ResPathUtil.CONFIG_DIR_PATH);
             SqliteController.Instance.Init(true, null);
             SqliteController.Instance.Init(true, null);
@@ -156,7 +159,7 @@ namespace GFGEditor
             }
             }
             catch (Exception e)
             catch (Exception e)
             {
             {
-                throw (e);
+                throw (e.InnerException);
             }
             }
             finally
             finally
             {
             {

+ 1 - 1
GameClient/Assets/Game/CSShare

@@ -1 +1 @@
-Subproject commit 828be86e826f150f3b837dd51a51193a6b7c431b
+Subproject commit ff9ea3fbe837ab301dbeebe8c62926733414412d