From 89721f0c58ec6d16ecdf0dbea7059854eac42fd9 Mon Sep 17 00:00:00 2001
From: dabaoji <364453445@qq.com>
Date: 星期一, 11 十一月 2024 15:03:50 +0800
Subject: [PATCH] 1111 btgotq打包配置

---
 Assets/Editor/Tool/CreateLuaClassFile.cs |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/Assets/Editor/Tool/CreateLuaClassFile.cs b/Assets/Editor/Tool/CreateLuaClassFile.cs
index d0ae8ef..4137846 100644
--- a/Assets/Editor/Tool/CreateLuaClassFile.cs
+++ b/Assets/Editor/Tool/CreateLuaClassFile.cs
@@ -197,10 +197,18 @@
         {
             return string.Format("subTable.{0} = stringArray_to_numberArray(Split(contents[{1}], '|'))", _field, _index);
         }
+        else if (_type.Contains("Int2[]"))
+        {
+            return string.Format("subTable.{0} = stringArray_to_Int2Array(Split(contents[{1}], '|'))", _field, _index);
+        }
         else if (_type.Contains("string[]"))
         {
             return string.Format("subTable.{0} = Split(contents[{1}], '|')", _field, _index);
         }
+        else if (_type.Contains("Int2"))
+        {
+            return string.Format("subTable.{0} = toInt2(Split(contents[{1}], '|'))", _field, _index);
+        }
         else if (_type.Contains("int") || _type.Contains("float"))
         {
             return string.Format("subTable.{0} = tonumber(contents[{1}])", _field, _index);

--
Gitblit v1.8.0