123 il y a 1 an
Parent
commit
415241b6c4
100 fichiers modifiés avec 1193 ajouts et 342 suppressions
  1. 45 4
      Assets/Editor/AssetBundle/CheckHotUpdateRes.cs
  2. 807 20
      Assets/OPS/Obfuscator/Log/iOS.txt
  3. 6 6
      Assets/OPS/Obfuscator/Settings/Obfuscator_Settings.json
  4. 0 1
      Assets/Src/Core/DownLoad/FileHelper.cs
  5. 1 1
      Assets/Src/GameLogic/LaunchLoadMgr.cs
  6. 1 1
      Assets/ToLua/BaseType/LuaInterface_EventObjectWrap.cs
  7. 2 2
      Assets/ToLua/BaseType/LuaInterface_LuaConstructorWrap.cs
  8. 2 2
      Assets/ToLua/BaseType/LuaInterface_LuaFieldWrap.cs
  9. 2 2
      Assets/ToLua/BaseType/LuaInterface_LuaMethodWrap.cs
  10. 2 2
      Assets/ToLua/BaseType/LuaInterface_LuaPropertyWrap.cs
  11. 2 2
      Assets/ToLua/BaseType/System_ArrayWrap.cs
  12. 1 1
      Assets/ToLua/BaseType/System_Collections_Generic_Dictionary_KeyCollectionWrap.cs
  13. 2 2
      Assets/ToLua/BaseType/System_Collections_IEnumeratorWrap.cs
  14. 2 2
      Assets/ToLua/BaseType/System_DelegateWrap.cs
  15. 2 2
      Assets/ToLua/BaseType/System_EnumWrap.cs
  16. 2 2
      Assets/ToLua/BaseType/System_NullObjectWrap.cs
  17. 2 2
      Assets/ToLua/BaseType/System_ObjectWrap.cs
  18. 2 2
      Assets/ToLua/BaseType/System_StringWrap.cs
  19. 2 2
      Assets/ToLua/BaseType/System_TypeWrap.cs
  20. 2 2
      Assets/ToLua/BaseType/UnityEngine_CoroutineWrap.cs
  21. 2 2
      Assets/ToLua/BaseType/UnityEngine_ObjectWrap.cs
  22. 14 1
      Assets/ToLua/Core/LuaState.cs
  23. 109 107
      Assets/ToLua/Misc/LuaLooper.cs
  24. 24 22
      Assets/ToLua/Misc/LuaProfiler.cs
  25. 7 0
      Assets/ToLua/Source/Generate--2.21.rar.meta
  26. 2 2
      Assets/ToLua/Source/Generate/ActorDataMgrWrap.cs
  27. 2 2
      Assets/ToLua/Source/Generate/ActorDataWrap.cs
  28. 2 2
      Assets/ToLua/Source/Generate/ActorParamWrap.cs
  29. 2 2
      Assets/ToLua/Source/Generate/AnimControlSkinWrap.cs
  30. 2 2
      Assets/ToLua/Source/Generate/AroundSphereMoveWrap.cs
  31. 2 2
      Assets/ToLua/Source/Generate/AvatarRTMgrWrap.cs
  32. 2 2
      Assets/ToLua/Source/Generate/BattleEndConditionWrap.cs
  33. 2 2
      Assets/ToLua/Source/Generate/BattleModeWrap.cs
  34. 2 2
      Assets/ToLua/Source/Generate/BattleStatisticsWrap.cs
  35. 2 2
      Assets/ToLua/Source/Generate/BattleSubModeWrap.cs
  36. 2 2
      Assets/ToLua/Source/Generate/BodyPartParamWrap.cs
  37. 2 2
      Assets/ToLua/Source/Generate/BuffParamWrap.cs
  38. 2 2
      Assets/ToLua/Source/Generate/ButtonTriggerAnimationWrap.cs
  39. 2 2
      Assets/ToLua/Source/Generate/CUIPolygonWrap.cs
  40. 2 2
      Assets/ToLua/Source/Generate/CameraMgrWrap.cs
  41. 2 2
      Assets/ToLua/Source/Generate/CastSkillDataWrap.cs
  42. 2 2
      Assets/ToLua/Source/Generate/ChannelTypeWrap.cs
  43. 2 2
      Assets/ToLua/Source/Generate/CheckInputLengthWrap.cs
  44. 2 2
      Assets/ToLua/Source/Generate/Cinemachine_CinemachineVirtualCameraBaseWrap.cs
  45. 2 2
      Assets/ToLua/Source/Generate/Cinemachine_CinemachineVirtualCameraWrap.cs
  46. 2 2
      Assets/ToLua/Source/Generate/DG_Tweening_DOTweenWrap.cs
  47. 2 2
      Assets/ToLua/Source/Generate/DG_Tweening_EaseWrap.cs
  48. 2 2
      Assets/ToLua/Source/Generate/DG_Tweening_LoopTypeWrap.cs
  49. 2 2
      Assets/ToLua/Source/Generate/DG_Tweening_PathModeWrap.cs
  50. 2 2
      Assets/ToLua/Source/Generate/DG_Tweening_PathTypeWrap.cs
  51. 2 2
      Assets/ToLua/Source/Generate/DG_Tweening_RotateModeWrap.cs
  52. 2 2
      Assets/ToLua/Source/Generate/DG_Tweening_SequenceWrap.cs
  53. 2 2
      Assets/ToLua/Source/Generate/DG_Tweening_TweenWrap.cs
  54. 2 2
      Assets/ToLua/Source/Generate/DG_Tweening_TweenerWrap.cs
  55. 2 2
      Assets/ToLua/Source/Generate/DateTimeUtilWrap.cs
  56. 2 2
      Assets/ToLua/Source/Generate/DebugHelperWrap.cs
  57. 2 2
      Assets/ToLua/Source/Generate/DeviceSystemDataWrap.cs
  58. 2 2
      Assets/ToLua/Source/Generate/DropDownHelperWrap.cs
  59. 2 2
      Assets/ToLua/Source/Generate/ECoreEventTypeWrap.cs
  60. 2 2
      Assets/ToLua/Source/Generate/ELoadTypeWrap.cs
  61. 2 2
      Assets/ToLua/Source/Generate/FashionParamWrap.cs
  62. 2 2
      Assets/ToLua/Source/Generate/FellowActorDataWrap.cs
  63. 2 2
      Assets/ToLua/Source/Generate/FighterStatisticsWrap.cs
  64. 2 2
      Assets/ToLua/Source/Generate/GameMgrWrap.cs
  65. 2 2
      Assets/ToLua/Source/Generate/GameRoleInfoWrap.cs
  66. 2 2
      Assets/ToLua/Source/Generate/GlobalConfigWrap.cs
  67. 2 2
      Assets/ToLua/Source/Generate/GuideMaskWrap.cs
  68. 2 2
      Assets/ToLua/Source/Generate/GvGMarkWrap.cs
  69. 2 2
      Assets/ToLua/Source/Generate/HairColorParamWrap.cs
  70. 2 2
      Assets/ToLua/Source/Generate/HeroActorDataWrap.cs
  71. 2 2
      Assets/ToLua/Source/Generate/I18NWrap.cs
  72. 2 2
      Assets/ToLua/Source/Generate/LoopScrollRectDragEventInheritWrap.cs
  73. 2 2
      Assets/ToLua/Source/Generate/LuaInterface_InjectTypeWrap.cs
  74. 2 2
      Assets/ToLua/Source/Generate/LuaInterface_LuaInjectionStationWrap.cs
  75. 2 2
      Assets/ToLua/Source/Generate/LuaUIBaseWrap.cs
  76. 2 2
      Assets/ToLua/Source/Generate/LuaUInt32Wrap.cs
  77. 2 2
      Assets/ToLua/Source/Generate/LuaUInt64Wrap.cs
  78. 2 2
      Assets/ToLua/Source/Generate/MirrorCameraWrap.cs
  79. 2 2
      Assets/ToLua/Source/Generate/ModelMgrWrap.cs
  80. 2 2
      Assets/ToLua/Source/Generate/MonoBaseWrap.cs
  81. 2 2
      Assets/ToLua/Source/Generate/MusicMgrWrap.cs
  82. 2 2
      Assets/ToLua/Source/Generate/NetworkMgrWrap.cs
  83. 2 2
      Assets/ToLua/Source/Generate/OutputInfoWrap.cs
  84. 2 2
      Assets/ToLua/Source/Generate/OutputTypeWrap.cs
  85. 2 2
      Assets/ToLua/Source/Generate/PetActorDataWrap.cs
  86. 2 2
      Assets/ToLua/Source/Generate/PreviewCameraEventWrap.cs
  87. 2 2
      Assets/ToLua/Source/Generate/ProfessionTypeWrap.cs
  88. 2 2
      Assets/ToLua/Source/Generate/RO_ReorderableListWrap.cs
  89. 2 2
      Assets/ToLua/Source/Generate/RO_ReorderableList_ReorderableListEventStructWrap.cs
  90. 2 2
      Assets/ToLua/Source/Generate/RO_ReorderableList_ReorderableListHandlerWrap.cs
  91. 2 2
      Assets/ToLua/Source/Generate/ResourceMgrWrap.cs
  92. 2 2
      Assets/ToLua/Source/Generate/RolRectTransformWrap.cs
  93. 2 2
      Assets/ToLua/Source/Generate/RollingNumberTextWrap.cs
  94. 2 2
      Assets/ToLua/Source/Generate/SBoolWrap.cs
  95. 2 2
      Assets/ToLua/Source/Generate/SDKMgrWrap.cs
  96. 2 2
      Assets/ToLua/Source/Generate/SDKModulTypeWrap.cs
  97. 2 2
      Assets/ToLua/Source/Generate/SDoubleWrap.cs
  98. 2 2
      Assets/ToLua/Source/Generate/SFloatWrap.cs
  99. 2 2
      Assets/ToLua/Source/Generate/SIntWrap.cs
  100. 2 2
      Assets/ToLua/Source/Generate/SLongWrap.cs

+ 45 - 4
Assets/Editor/AssetBundle/CheckHotUpdateRes.cs

@@ -189,7 +189,7 @@ public class CheckHotUpdateRes : EditorWindow
 
         if (GUILayout.Button("Tolua"))
         {
-            AddLuaWrapBenginClassType("");
+            ChangeLuaWrapCs();
         }
         GUILayout.Box("", GUILayout.Width(790));
         GUILayout.BeginHorizontal();
@@ -451,9 +451,27 @@ public class CheckHotUpdateRes : EditorWindow
         string datapath = $"{Application.dataPath}/Content/Icons/";
         FileHelper.CopyDir(datapath, info.OutputPath, "meta");
     }
+    private void ChangeLuaWrapCs()
+    {
+        //ChangeLuaWrapCs("ToLua/BaseType");
+        ChangeLuaWrapCs("ToLua/Source/Generate");
+    }
+    private void ChangeLuaWrapCs(string path)
+    {
+        string luapath = $"{Application.dataPath}/{path}";//ToLua/BaseType//ToLua/Source/Generate
+        string[] files1 = FileHelper.GetAllFileNmae(luapath, "meta");
+        int size = files1.Length;
+        string datapath = $"{luapath}/";
+        for (int i = 0; i < size; i++)
+        {
+
+            //AddLuaWrapBenginClassType(datapath + files1[i]);
+            AddLuaWrapBenginClassType(datapath + files1[i], "BeginEnum");
+        }
+    }
 
     //L.BeginClass(typeof(SingletonMono<LuaMgr>), typeof(MonoBase), \"SingletonMono_LuaMgr\");
-    private void AddLuaWrapBenginClassType(string path)
+    private void AddLuaWrapBenginClassType(string path,string ckStr = "BeginClass")
     {
         if (String.IsNullOrEmpty(path)) return;
         string[] fdatas = File.ReadAllLines(path); //new string[] { "L.BeginClass(typeof(SingletonMono<LuaMgr>), typeof(MonoBase), \"SingletonMono_LuaMgr\");" };//
@@ -461,18 +479,41 @@ public class CheckHotUpdateRes : EditorWindow
         string newstr = "";
         for (int i = 0; i < length; i++)
         {
-            if (fdatas[i].Contains("BeginClass"))
+            if (fdatas[i].Contains(ckStr))
             {
                 string[] strarr = fdatas[i].Split("typeof(",StringSplitOptions.RemoveEmptyEntries);
 
                 string classname = strarr[1].Substring(0, strarr[1].IndexOf(")"));
+                if (classname.Contains("."))
+                {
+                    int stid = classname.LastIndexOf('.');
+                    classname = classname.Substring(stid+1);
+                }
 
                 if (classname.Contains("<"))
                 {
                     string[] names = classname.Split(new char[]{ '<','>'},StringSplitOptions.RemoveEmptyEntries);
+                    if (names.Length == 1)
+                    {
+                        classname = names[0];
+                    }
+                    else if (names[1].Contains(','))
+                    {
+                        string[] subNames = names[1].Split(',',StringSplitOptions.RemoveEmptyEntries);
 
+                        classname = names[0];
 
-                    classname = $"{names[0]}_{names[1]}";
+                        foreach (var item in subNames)
+                        {
+                            classname = $"{classname}_{item}";
+                        }
+                    }
+                    else 
+                    {
+                        classname = $"{names[0]}_{names[1]}";
+                    }
+
+                  
                 }
                 Debug.Log($"Class Name = {classname}");
                 string nameStr = $"\"{classname}\"";

Fichier diff supprimé car celui-ci est trop grand
+ 807 - 20
Assets/OPS/Obfuscator/Log/iOS.txt


+ 6 - 6
Assets/OPS/Obfuscator/Settings/Obfuscator_Settings.json

@@ -173,37 +173,37 @@
         {
           "Type" : "Bool",
           "Key" : "Obfuscate_Class_MonoBehaviour",
-          "Value" : "True",
+          "Value" : "False",
           "Values" : null
         },
         {
           "Type" : "Bool",
           "Key" : "Obfuscate_Class_MonoBehaviour_Not_Obfuscatable",
-          "Value" : "True",
+          "Value" : "False",
           "Values" : null
         },
         {
           "Type" : "Bool",
           "Key" : "Obfuscate_Class_MonoBehaviour_Extern",
-          "Value" : "True",
+          "Value" : "False",
           "Values" : null
         },
         {
           "Type" : "Bool",
           "Key" : "Obfuscate_Class_MonoBehaviour_Not_Obfuscatable_Extern",
-          "Value" : "True",
+          "Value" : "False",
           "Values" : null
         },
         {
           "Type" : "Bool",
           "Key" : "Obfuscate_Class_ScriptableObject",
-          "Value" : "True",
+          "Value" : "False",
           "Values" : null
         },
         {
           "Type" : "Bool",
           "Key" : "Obfuscate_Class_Playable",
-          "Value" : "True",
+          "Value" : "False",
           "Values" : null
         }
       ]

+ 0 - 1
Assets/Src/Core/DownLoad/FileHelper.cs

@@ -346,6 +346,5 @@ public class FileHelper
             strs.Remove(res[i]);
         }
     }
-
 }
 

+ 1 - 1
Assets/Src/GameLogic/LaunchLoadMgr.cs

@@ -236,7 +236,7 @@ public class LaunchLoadMgr
 
         if (result)
         {
-            Debug.Log($"==================precent=={precent}=====================================");
+            
             EventMgr.RemoveEventListener<bool, float>(ECoreEventType.EID_LOAD_LUA_OK, OnLoadLuaOk);
             SetLoadDes("GameLogin17");
             NetworkMgr.CreateInstance();

+ 1 - 1
Assets/ToLua/BaseType/LuaInterface_EventObjectWrap.cs

@@ -6,7 +6,7 @@ public class LuaInterface_EventObjectWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(LuaInterface.EventObject), typeof(System.Object));
+		L.BeginClass(typeof(LuaInterface.EventObject), typeof(System.Object), "EventObject");
 		L.RegFunction("__add", op_Addition);
 		L.RegFunction("__sub", op_Subtraction);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/BaseType/LuaInterface_LuaConstructorWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class LuaInterface_LuaConstructorWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(LuaInterface.LuaConstructor), typeof(System.Object));
+		L.BeginClass(typeof(LuaInterface.LuaConstructor), typeof(System.Object), "LuaConstructor");
 		L.RegFunction("Call", Call);
 		L.RegFunction("Destroy", Destroy);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/BaseType/LuaInterface_LuaFieldWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class LuaInterface_LuaFieldWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(LuaInterface.LuaField), typeof(System.Object));
+		L.BeginClass(typeof(LuaInterface.LuaField), typeof(System.Object), "LuaField");
 		L.RegFunction("Get", Get);
 		L.RegFunction("Set", Set);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/BaseType/LuaInterface_LuaMethodWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class LuaInterface_LuaMethodWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(LuaInterface.LuaMethod), typeof(System.Object));
+		L.BeginClass(typeof(LuaInterface.LuaMethod), typeof(System.Object), "LuaMethod");
 		L.RegFunction("Destroy", Destroy);
 		L.RegFunction("Call", Call);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/BaseType/LuaInterface_LuaPropertyWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class LuaInterface_LuaPropertyWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(LuaInterface.LuaProperty), typeof(System.Object));
+		L.BeginClass(typeof(LuaInterface.LuaProperty), typeof(System.Object), "LuaProperty");
 		L.RegFunction("Get", Get);
 		L.RegFunction("Set", Set);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/BaseType/System_ArrayWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 using UnityEngine;
@@ -7,7 +7,7 @@ public class System_ArrayWrap
 {
 	public static void Register(LuaState L)
 	{
-        L.BeginClass(typeof(Array), typeof(System.Object));
+        L.BeginClass(typeof(Array), typeof(System.Object), "Array");
         L.RegFunction(".geti", get_Item);
         L.RegFunction(".seti", set_Item);
         L.RegFunction("ToTable", ToTable);

+ 1 - 1
Assets/ToLua/BaseType/System_Collections_Generic_Dictionary_KeyCollectionWrap.cs

@@ -1,4 +1,4 @@
-using System;
+using System;
 using LuaInterface;
 using System.Collections.Generic;
 using System.Collections;

+ 2 - 2
Assets/ToLua/BaseType/System_Collections_IEnumeratorWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class System_Collections_IEnumeratorWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(System.Collections.IEnumerator), null);
+		L.BeginClass(typeof(System.Collections.IEnumerator), null, "IEnumerator");
 		L.RegFunction("MoveNext", MoveNext);
 		L.RegFunction("Reset", Reset);
 		L.RegVar("Current", get_Current, null);

+ 2 - 2
Assets/ToLua/BaseType/System_DelegateWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using System.Collections.Generic;
 using LuaInterface;
@@ -7,7 +7,7 @@ public class System_DelegateWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(System.Delegate), typeof(System.Object));
+		L.BeginClass(typeof(System.Delegate), typeof(System.Object), "Delegate");
 		L.RegFunction("CreateDelegate", CreateDelegate);
 		L.RegFunction("DynamicInvoke", DynamicInvoke);
 		L.RegFunction("Clone", Clone);

+ 2 - 2
Assets/ToLua/BaseType/System_EnumWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class System_EnumWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(System.Enum), null);
+		L.BeginClass(typeof(System.Enum), null, "Enum");
 		L.RegFunction("GetTypeCode", GetTypeCode);
 		L.RegFunction("GetValues", GetValues);
 		L.RegFunction("GetNames", GetNames);

+ 2 - 2
Assets/ToLua/BaseType/System_NullObjectWrap.cs

@@ -1,11 +1,11 @@
-using System;
+using System;
 using LuaInterface;
 
 public class System_NullObjectWrap
 {
     public static void Register(LuaState L)
     {
-        L.BeginClass(typeof(NullObject), null, "null");        
+        L.BeginClass(typeof(NullObject), null, "null");
         L.EndClass();
     }
 }

+ 2 - 2
Assets/ToLua/BaseType/System_ObjectWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class System_ObjectWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(System.Object), null);
+		L.BeginClass(typeof(System.Object), null, "Object");
 		L.RegFunction("Equals", Equals);
 		L.RegFunction("GetHashCode", GetHashCode);
 		L.RegFunction("GetType", GetType);

+ 2 - 2
Assets/ToLua/BaseType/System_StringWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class System_StringWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(System.String), typeof(System.Object));
+		L.BeginClass(typeof(System.String), typeof(System.Object), "String");
 		L.RegFunction("Equals", Equals);
 		L.RegFunction("Clone", Clone);
 		L.RegFunction("GetTypeCode", GetTypeCode);

+ 2 - 2
Assets/ToLua/BaseType/System_TypeWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class System_TypeWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(System.Type), typeof(System.Object));
+		L.BeginClass(typeof(System.Type), typeof(System.Object), "Type");
 		L.RegFunction("Equals", Equals);
 		L.RegFunction("GetType", GetType);
 		L.RegFunction("GetTypeArray", GetTypeArray);

+ 2 - 2
Assets/ToLua/BaseType/UnityEngine_CoroutineWrap.cs

@@ -1,11 +1,11 @@
-using System;
+using System;
 using LuaInterface;
 
 public class UnityEngine_CoroutineWrap
 {
     public static void Register(LuaState L)
     {
-        L.BeginClass(typeof(UnityEngine.Coroutine), null);
+        L.BeginClass(typeof(UnityEngine.Coroutine), null, "Coroutine");
         L.RegFunction("__tostring", ToLua.op_ToString);
         L.EndClass();
     }

+ 2 - 2
Assets/ToLua/BaseType/UnityEngine_ObjectWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class UnityEngine_ObjectWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(UnityEngine.Object), typeof(System.Object));
+		L.BeginClass(typeof(UnityEngine.Object), typeof(System.Object), "Object");
 		L.RegFunction("FindObjectsOfType", FindObjectsOfType);
 		L.RegFunction("DontDestroyOnLoad", DontDestroyOnLoad);
 		L.RegFunction("ToString", ToString);

+ 14 - 1
Assets/ToLua/Core/LuaState.cs

@@ -1,4 +1,4 @@
-/*
+/*
 Copyright (c) 2015-2017 topameng(topameng@qq.com)
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -427,6 +427,7 @@ namespace LuaInterface
             if (name == null)
             {
                 name = GetToLuaTypeName(t);
+                Debug.Log("name = " + name);
             }
 
             if (baseType != null && !metaMap.TryGetValue(baseType, out baseMetaRef))
@@ -468,6 +469,18 @@ namespace LuaInterface
             BindTypeRef(reference, t);
             return reference;
         }
+        public int BeginEnum(Type t,string name)
+        {
+            if (beginCount == 0)
+            {
+                throw new LuaException("must call BeginModule first");
+            }
+
+            int reference = LuaDLL.tolua_beginenum(L, name);
+            RegFunction("__gc", Collect);
+            BindTypeRef(reference, t);
+            return reference;
+        }
 
         public void EndEnum()
         {

+ 109 - 107
Assets/ToLua/Misc/LuaLooper.cs

@@ -22,150 +22,152 @@ SOFTWARE.
 using System;
 using UnityEngine;
 using LuaInterface;
-
-public class LuaLooper : MonoBehaviour 
-{    
-    public LuaBeatEvent UpdateEvent
+namespace LuaInterface
+{
+    public class LuaLooper : MonoBehaviour
     {
-        get;
-        private set;
-    }
-
-    public LuaBeatEvent LateUpdateEvent
-    {
-        get;
-        private set;
-    }
-
-    public LuaBeatEvent FixedUpdateEvent
-    {
-        get;
-        private set;
-    }
-
-    public LuaState luaState = null;
+        public LuaBeatEvent UpdateEvent
+        {
+            get;
+            private set;
+        }
 
-    void Start() 
-    {
-        try
+        public LuaBeatEvent LateUpdateEvent
         {
-            UpdateEvent = GetEvent("UpdateBeat");
-            LateUpdateEvent = GetEvent("LateUpdateBeat");
-            FixedUpdateEvent = GetEvent("FixedUpdateBeat");
+            get;
+            private set;
         }
-        catch (Exception e)
+
+        public LuaBeatEvent FixedUpdateEvent
         {
-            Destroy(this);
-            throw e;
-        }        
-	}
+            get;
+            private set;
+        }
 
-    LuaBeatEvent GetEvent(string name)
-    {
-        LuaTable table = luaState.GetTable(name);
+        public LuaState luaState = null;
 
-        if (table == null)
+        void Start()
         {
-            throw new LuaException(string.Format("Lua table {0} not exists", name));
+            try
+            {
+                UpdateEvent = GetEvent("UpdateBeat");
+                LateUpdateEvent = GetEvent("LateUpdateBeat");
+                FixedUpdateEvent = GetEvent("FixedUpdateBeat");
+            }
+            catch (Exception e)
+            {
+                Destroy(this);
+                throw e;
+            }
         }
 
-        LuaBeatEvent e = new LuaBeatEvent(table);
-        table.Dispose();
-        table = null;
-        return e;
-    }
+        LuaBeatEvent GetEvent(string name)
+        {
+            LuaTable table = luaState.GetTable(name);
 
-    void ThrowException()
-    {
-        string error = luaState.LuaToString(-1);
-        luaState.LuaPop(2);                
-        throw new LuaException(error, LuaException.GetLastError());
-    }
+            if (table == null)
+            {
+                throw new LuaException(string.Format("Lua table {0} not exists", name));
+            }
 
-    void Update()
-    {
-#if UNITY_EDITOR
-        if (luaState == null)
-        {
-            return;
+            LuaBeatEvent e = new LuaBeatEvent(table);
+            table.Dispose();
+            table = null;
+            return e;
         }
-#endif
-        if (luaState.LuaUpdate(Time.deltaTime, Time.unscaledDeltaTime) != 0)
+
+        void ThrowException()
         {
-            ThrowException();
+            string error = luaState.LuaToString(-1);
+            luaState.LuaPop(2);
+            throw new LuaException(error, LuaException.GetLastError());
         }
 
-        luaState.LuaPop(1);
-        luaState.Collect();
+        void Update()
+        {
 #if UNITY_EDITOR
-        luaState.CheckTop();
+            if (luaState == null)
+            {
+                return;
+            }
 #endif
-    }
+            if (luaState.LuaUpdate(Time.deltaTime, Time.unscaledDeltaTime) != 0)
+            {
+                ThrowException();
+            }
 
-    void LateUpdate()
-    {
+            luaState.LuaPop(1);
+            luaState.Collect();
 #if UNITY_EDITOR
-        if (luaState == null)
-        {
-            return;
-        }
+            luaState.CheckTop();
 #endif
-        if (luaState.LuaLateUpdate() != 0)
-        {
-            ThrowException();
         }
 
-        luaState.StepCollect();
-        luaState.LuaPop(1);
-    }
-
-    void FixedUpdate()
-    {
-#if UNITY_EDITOR
-        if (luaState == null)
+        void LateUpdate()
         {
-            return;
-        }
+#if UNITY_EDITOR
+            if (luaState == null)
+            {
+                return;
+            }
 #endif
-        if (luaState.LuaFixedUpdate(Time.fixedDeltaTime) != 0)
-        {
-            ThrowException();
-        }
+            if (luaState.LuaLateUpdate() != 0)
+            {
+                ThrowException();
+            }
 
-        luaState.LuaPop(1);
-    }
+            luaState.StepCollect();
+            luaState.LuaPop(1);
+        }
 
-    public void Destroy()
-    {
-        if (luaState != null)
+        void FixedUpdate()
         {
-            if (UpdateEvent != null)
+#if UNITY_EDITOR
+            if (luaState == null)
             {
-                UpdateEvent.Dispose();
-                UpdateEvent = null;
+                return;
             }
-
-            if (LateUpdateEvent != null)
+#endif
+            if (luaState.LuaFixedUpdate(Time.fixedDeltaTime) != 0)
             {
-                LateUpdateEvent.Dispose();
-                LateUpdateEvent = null;
+                ThrowException();
             }
 
-            if (FixedUpdateEvent != null)
+            luaState.LuaPop(1);
+        }
+
+        public void Destroy()
+        {
+            if (luaState != null)
             {
-                FixedUpdateEvent.Dispose();
-                FixedUpdateEvent = null;
+                if (UpdateEvent != null)
+                {
+                    UpdateEvent.Dispose();
+                    UpdateEvent = null;
+                }
+
+                if (LateUpdateEvent != null)
+                {
+                    LateUpdateEvent.Dispose();
+                    LateUpdateEvent = null;
+                }
+
+                if (FixedUpdateEvent != null)
+                {
+                    FixedUpdateEvent.Dispose();
+                    FixedUpdateEvent = null;
+                }
+
+                luaState = null;
             }
-
-            luaState = null;
         }
-    }
 
-    void OnDestroy()
-    {
-        if (luaState != null)
+        void OnDestroy()
         {
-            Destroy();
+            if (luaState != null)
+            {
+                Destroy();
+            }
         }
     }
-}
+}

+ 24 - 22
Assets/ToLua/Misc/LuaProfiler.cs

@@ -3,31 +3,33 @@ using UnityEngine;
 #if UNITY_5_5_OR_NEWER
 using UnityEngine.Profiling;
 #endif
-
-public static class LuaProfiler
+namespace LuaInterface
 {
-    public static List<string> list = new List<string>();
-
-    public static void Clear()
+    public static class LuaProfiler
     {
-        list.Clear();
-    }
+        public static List<string> list = new List<string>();
 
-    public static int GetID(string name)
-    {
-        int id = list.Count;
-        list.Add(name);
-        return id;
-    }
+        public static void Clear()
+        {
+            list.Clear();
+        }
 
-    public static void BeginSample(int id)
-    {
-        string name = list[id];
-        Profiler.BeginSample(name);
-    }
+        public static int GetID(string name)
+        {
+            int id = list.Count;
+            list.Add(name);
+            return id;
+        }
 
-    public static void EndSample()
-    {
-        Profiler.EndSample();
+        public static void BeginSample(int id)
+        {
+            string name = list[id];
+            Profiler.BeginSample(name);
+        }
+
+        public static void EndSample()
+        {
+            Profiler.EndSample();
+        }
     }
-}
+}

+ 7 - 0
Assets/ToLua/Source/Generate--2.21.rar.meta

@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 37c2b5928e4776b46b36a1da7a5e7860
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 2 - 2
Assets/ToLua/Source/Generate/ActorDataMgrWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class ActorDataMgrWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(ActorDataMgr), typeof(Singleton<ActorDataMgr>));
+		L.BeginClass(typeof(ActorDataMgr), typeof(Singleton<ActorDataMgr>), "ActorDataMgr");
 		L.RegFunction("Init", Init);
 		L.RegFunction("UnInit", UnInit);
 		L.RegFunction("Clear", Clear);

+ 2 - 2
Assets/ToLua/Source/Generate/ActorDataWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class ActorDataWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(ActorData), typeof(System.Object));
+		L.BeginClass(typeof(ActorData), typeof(System.Object), "ActorData");
 		L.RegFunction("GetuId", GetuId);
 		L.RegFunction("GetBaseId", GetBaseId);
 		L.RegFunction("RefreshSkills", RefreshSkills);

+ 2 - 2
Assets/ToLua/Source/Generate/ActorParamWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class ActorParamWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(ActorParam), typeof(System.Object));
+		L.BeginClass(typeof(ActorParam), typeof(System.Object), "ActorParam");
 		L.RegFunction("New", _CreateActorParam);
 		L.RegFunction("__tostring", ToLua.op_ToString);
 		L.RegVar("uid", get_uid, set_uid);

+ 2 - 2
Assets/ToLua/Source/Generate/AnimControlSkinWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class AnimControlSkinWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(AnimControlSkin), typeof(UnityEngine.MonoBehaviour));
+		L.BeginClass(typeof(AnimControlSkin), typeof(UnityEngine.MonoBehaviour), "AnimControlSkin");
 		L.RegFunction("SetBindLuaCallback", SetBindLuaCallback);
 		L.RegFunction("ChangeSkins", ChangeSkins);
 		L.RegFunction("__eq", op_Equality);

+ 2 - 2
Assets/ToLua/Source/Generate/AroundSphereMoveWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class AroundSphereMoveWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(AroundSphereMove), typeof(UnityEngine.MonoBehaviour));
+		L.BeginClass(typeof(AroundSphereMove), typeof(UnityEngine.MonoBehaviour), "AroundSphereMove");
 		L.RegFunction("__eq", op_Equality);
 		L.RegFunction("__tostring", ToLua.op_ToString);
 		L.RegVar("shakeDir", get_shakeDir, set_shakeDir);

+ 2 - 2
Assets/ToLua/Source/Generate/AvatarRTMgrWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class AvatarRTMgrWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(AvatarRTMgr), typeof(Singleton<AvatarRTMgr>));
+		L.BeginClass(typeof(AvatarRTMgr), typeof(Singleton<AvatarRTMgr>), "AvatarRTMgr");
 		L.RegFunction("Init", Init);
 		L.RegFunction("UnInit", UnInit);
 		L.RegFunction("LoadPreviewActors", LoadPreviewActors);

+ 2 - 2
Assets/ToLua/Source/Generate/BattleEndConditionWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class BattleEndConditionWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(BattleEndCondition), typeof(System.Object));
+		L.BeginClass(typeof(BattleEndCondition), typeof(System.Object), "BattleEndCondition");
 		L.RegFunction("New", _CreateBattleEndCondition);
 		L.RegFunction("__tostring", ToLua.op_ToString);
 		L.RegVar("endType", get_endType, set_endType);

+ 2 - 2
Assets/ToLua/Source/Generate/BattleModeWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class BattleModeWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginEnum(typeof(BattleMode));
+		L.BeginEnum(typeof(BattleMode), "BattleMode");
 		L.RegVar("None", get_None, null);
 		L.RegVar("Normal", get_Normal, null);
 		L.RegVar("Versus", get_Versus, null);

+ 2 - 2
Assets/ToLua/Source/Generate/BattleStatisticsWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class BattleStatisticsWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(BattleStatistics), typeof(System.Object));
+		L.BeginClass(typeof(BattleStatistics), typeof(System.Object), "BattleStatistics");
 		L.RegFunction("Start", Start);
 		L.RegFunction("End", End);
 		L.RegFunction("Clear", Clear);

+ 2 - 2
Assets/ToLua/Source/Generate/BattleSubModeWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class BattleSubModeWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginEnum(typeof(BattleSubMode));
+		L.BeginEnum(typeof(BattleSubMode), "BattleSubMode");
 		L.RegVar("None", get_None, null);
 		L.RegVar("WorldBoss", get_WorldBoss, null);
 		L.RegVar("NewbieBoss", get_NewbieBoss, null);

+ 2 - 2
Assets/ToLua/Source/Generate/BodyPartParamWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class BodyPartParamWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(BodyPartParam), null);
+		L.BeginClass(typeof(BodyPartParam), null, "BodyPartParam");
 		L.RegFunction("ToJson", ToJson);
 		L.RegFunction("New", _CreateBodyPartParam);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/Source/Generate/BuffParamWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class BuffParamWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(BuffParam), null);
+		L.BeginClass(typeof(BuffParam), null, "BuffParam");
 		L.RegFunction("ToJson", ToJson);
 		L.RegFunction("New", _CreateBuffParam);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/Source/Generate/ButtonTriggerAnimationWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class ButtonTriggerAnimationWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(ButtonTriggerAnimation), typeof(UnityEngine.MonoBehaviour));
+		L.BeginClass(typeof(ButtonTriggerAnimation), typeof(UnityEngine.MonoBehaviour), "ButtonTriggerAnimation");
 		L.RegFunction("OnClickPlayAnimation", OnClickPlayAnimation);
 		L.RegFunction("__eq", op_Equality);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/Source/Generate/CUIPolygonWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class CUIPolygonWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(CUIPolygon), typeof(UnityEngine.UI.Graphic));
+		L.BeginClass(typeof(CUIPolygon), typeof(UnityEngine.UI.Graphic), "CUIPolygon");
 		L.RegFunction("InitVertexsCount", InitVertexsCount);
 		L.RegFunction("RefreshPolygonVertexs", RefreshPolygonVertexs);
 		L.RegFunction("__eq", op_Equality);

+ 2 - 2
Assets/ToLua/Source/Generate/CameraMgrWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class CameraMgrWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(CameraMgr), typeof(SingletonMono<CameraMgr>));
+		L.BeginClass(typeof(CameraMgr), typeof(SingletonMono<CameraMgr>), "CameraMgr");
 		L.RegFunction("InitMgr", InitMgr);
 		L.RegFunction("__eq", op_Equality);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/Source/Generate/CastSkillDataWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class CastSkillDataWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(CastSkillData), typeof(System.Object));
+		L.BeginClass(typeof(CastSkillData), typeof(System.Object), "CastSkillData");
 		L.RegFunction("New", _CreateCastSkillData);
 		L.RegFunction("__tostring", ToLua.op_ToString);
 		L.RegVar("actorId", get_actorId, set_actorId);

+ 2 - 2
Assets/ToLua/Source/Generate/ChannelTypeWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class ChannelTypeWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginEnum(typeof(ChannelType));
+		L.BeginEnum(typeof(ChannelType), "ChannelType");
 		L.RegVar("WORLD", get_WORLD, null);
 		L.RegVar("GUILD", get_GUILD, null);
 		L.RegVar("GUILD_NOTICE", get_GUILD_NOTICE, null);

+ 2 - 2
Assets/ToLua/Source/Generate/CheckInputLengthWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class CheckInputLengthWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(CheckInputLength), typeof(UnityEngine.MonoBehaviour));
+		L.BeginClass(typeof(CheckInputLength), typeof(UnityEngine.MonoBehaviour), "CheckInputLength");
 		L.RegFunction("Check", Check);
 		L.RegFunction("GetSplitName", GetSplitName);
 		L.RegFunction("__eq", op_Equality);

+ 2 - 2
Assets/ToLua/Source/Generate/Cinemachine_CinemachineVirtualCameraBaseWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class Cinemachine_CinemachineVirtualCameraBaseWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(Cinemachine.CinemachineVirtualCameraBase), typeof(UnityEngine.MonoBehaviour));
+		L.BeginClass(typeof(Cinemachine.CinemachineVirtualCameraBase), typeof(UnityEngine.MonoBehaviour), "CinemachineVirtualCameraBase");
 		L.RegFunction("AddExtension", AddExtension);
 		L.RegFunction("RemoveExtension", RemoveExtension);
 		L.RegFunction("IsLiveChild", IsLiveChild);

+ 2 - 2
Assets/ToLua/Source/Generate/Cinemachine_CinemachineVirtualCameraWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class Cinemachine_CinemachineVirtualCameraWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(Cinemachine.CinemachineVirtualCamera), typeof(Cinemachine.CinemachineVirtualCameraBase));
+		L.BeginClass(typeof(Cinemachine.CinemachineVirtualCamera), typeof(Cinemachine.CinemachineVirtualCameraBase), "CinemachineVirtualCamera");
 		L.RegFunction("InternalUpdateCameraState", InternalUpdateCameraState);
 		L.RegFunction("InvalidateComponentPipeline", InvalidateComponentPipeline);
 		L.RegFunction("GetComponentOwner", GetComponentOwner);

+ 2 - 2
Assets/ToLua/Source/Generate/DG_Tweening_DOTweenWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class DG_Tweening_DOTweenWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(DG.Tweening.DOTween), typeof(System.Object));
+		L.BeginClass(typeof(DG.Tweening.DOTween), typeof(System.Object), "DOTween");
 		L.RegFunction("Init", Init);
 		L.RegFunction("SetTweensCapacity", SetTweensCapacity);
 		L.RegFunction("Clear", Clear);

+ 2 - 2
Assets/ToLua/Source/Generate/DG_Tweening_EaseWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class DG_Tweening_EaseWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginEnum(typeof(DG.Tweening.Ease));
+		L.BeginEnum(typeof(DG.Tweening.Ease), "Ease");
 		L.RegVar("Unset", get_Unset, null);
 		L.RegVar("Linear", get_Linear, null);
 		L.RegVar("InSine", get_InSine, null);

+ 2 - 2
Assets/ToLua/Source/Generate/DG_Tweening_LoopTypeWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class DG_Tweening_LoopTypeWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginEnum(typeof(DG.Tweening.LoopType));
+		L.BeginEnum(typeof(DG.Tweening.LoopType), "LoopType");
 		L.RegVar("Restart", get_Restart, null);
 		L.RegVar("Yoyo", get_Yoyo, null);
 		L.RegVar("Incremental", get_Incremental, null);

+ 2 - 2
Assets/ToLua/Source/Generate/DG_Tweening_PathModeWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class DG_Tweening_PathModeWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginEnum(typeof(DG.Tweening.PathMode));
+		L.BeginEnum(typeof(DG.Tweening.PathMode), "PathMode");
 		L.RegVar("Ignore", get_Ignore, null);
 		L.RegVar("Full3D", get_Full3D, null);
 		L.RegVar("TopDown2D", get_TopDown2D, null);

+ 2 - 2
Assets/ToLua/Source/Generate/DG_Tweening_PathTypeWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class DG_Tweening_PathTypeWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginEnum(typeof(DG.Tweening.PathType));
+		L.BeginEnum(typeof(DG.Tweening.PathType), "PathType");
 		L.RegVar("Linear", get_Linear, null);
 		L.RegVar("CatmullRom", get_CatmullRom, null);
 		L.RegVar("CubicBezier", get_CubicBezier, null);

+ 2 - 2
Assets/ToLua/Source/Generate/DG_Tweening_RotateModeWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class DG_Tweening_RotateModeWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginEnum(typeof(DG.Tweening.RotateMode));
+		L.BeginEnum(typeof(DG.Tweening.RotateMode), "RotateMode");
 		L.RegVar("Fast", get_Fast, null);
 		L.RegVar("FastBeyond360", get_FastBeyond360, null);
 		L.RegVar("WorldAxisAdd", get_WorldAxisAdd, null);

+ 2 - 2
Assets/ToLua/Source/Generate/DG_Tweening_SequenceWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using DG.Tweening;
 using LuaInterface;
@@ -7,7 +7,7 @@ public class DG_Tweening_SequenceWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(DG.Tweening.Sequence), typeof(DG.Tweening.Tween));
+		L.BeginClass(typeof(DG.Tweening.Sequence), typeof(DG.Tweening.Tween), "Sequence");
 		L.RegFunction("SetSpeedBased", SetSpeedBased);
 		L.RegFunction("SetRelative", SetRelative);
 		L.RegFunction("SetDelay", SetDelay);

+ 2 - 2
Assets/ToLua/Source/Generate/DG_Tweening_TweenWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using DG.Tweening;
 using LuaInterface;
@@ -7,7 +7,7 @@ public class DG_Tweening_TweenWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(DG.Tweening.Tween), typeof(System.Object));
+		L.BeginClass(typeof(DG.Tweening.Tween), typeof(System.Object), "Tween");
 		L.RegFunction("PathLength", PathLength);
 		L.RegFunction("PathGetDrawPoints", PathGetDrawPoints);
 		L.RegFunction("PathGetPoint", PathGetPoint);

+ 2 - 2
Assets/ToLua/Source/Generate/DG_Tweening_TweenerWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using DG.Tweening;
 using LuaInterface;
@@ -7,7 +7,7 @@ public class DG_Tweening_TweenerWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(DG.Tweening.Tweener), typeof(DG.Tweening.Tween));
+		L.BeginClass(typeof(DG.Tweening.Tweener), typeof(DG.Tweening.Tween), "Tweener");
 		L.RegFunction("ChangeStartValue", ChangeStartValue);
 		L.RegFunction("ChangeEndValue", ChangeEndValue);
 		L.RegFunction("ChangeValues", ChangeValues);

+ 2 - 2
Assets/ToLua/Source/Generate/DateTimeUtilWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class DateTimeUtilWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(DateTimeUtil), typeof(System.Object));
+		L.BeginClass(typeof(DateTimeUtil), typeof(System.Object), "DateTimeUtil");
 		L.RegFunction("toUTP", toUTP);
 		L.RegFunction("fromUTP", fromUTP);
 		L.RegFunction("ContainTime", ContainTime);

+ 2 - 2
Assets/ToLua/Source/Generate/DebugHelperWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class DebugHelperWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(DebugHelper), typeof(UnityEngine.MonoBehaviour));
+		L.BeginClass(typeof(DebugHelper), typeof(UnityEngine.MonoBehaviour), "DebugHelper");
 		L.RegFunction("AddLoggerWnd", AddLoggerWnd);
 		L.RegFunction("OpenLoger", OpenLoger);
 		L.RegFunction("CloseLoger", CloseLoger);

+ 2 - 2
Assets/ToLua/Source/Generate/DeviceSystemDataWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class DeviceSystemDataWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(DeviceSystemData), typeof(System.Object));
+		L.BeginClass(typeof(DeviceSystemData), typeof(System.Object), "DeviceSystemData");
 		L.RegFunction("New", _CreateDeviceSystemData);
 		L.RegFunction("__tostring", ToLua.op_ToString);
 		L.RegVar("deviceModel", get_deviceModel, set_deviceModel);

+ 2 - 2
Assets/ToLua/Source/Generate/DropDownHelperWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class DropDownHelperWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(DropDownHelper), typeof(System.Object));
+		L.BeginClass(typeof(DropDownHelper), typeof(System.Object), "DropDownHelper");
 		L.RegFunction("ClearDropDown", ClearDropDown);
 		L.RegFunction("SetDropDownItems", SetDropDownItems);
 		L.RegFunction("SetStartName", SetStartName);

+ 2 - 2
Assets/ToLua/Source/Generate/ECoreEventTypeWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class ECoreEventTypeWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(ECoreEventType), typeof(System.Object));
+		L.BeginClass(typeof(ECoreEventType), typeof(System.Object), "ECoreEventType");
 		L.RegFunction("New", _CreateECoreEventType);
 		L.RegFunction("__tostring", ToLua.op_ToString);
 		L.RegConstant("EID_ConfigMgrInit", 3);

+ 2 - 2
Assets/ToLua/Source/Generate/ELoadTypeWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class ELoadTypeWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginEnum(typeof(ELoadType));
+		L.BeginEnum(typeof(ELoadType), "ELoadType");
 		L.RegVar("OTHER", get_OTHER, null);
 		L.RegVar("UI", get_UI, null);
 		L.RegVar("ACTOR", get_ACTOR, null);

+ 2 - 2
Assets/ToLua/Source/Generate/FashionParamWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class FashionParamWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(FashionParam), null);
+		L.BeginClass(typeof(FashionParam), null, "FashionParam");
 		L.RegFunction("ToJson", ToJson);
 		L.RegFunction("New", _CreateFashionParam);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/Source/Generate/FellowActorDataWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class FellowActorDataWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(FellowActorData), typeof(ActorData));
+		L.BeginClass(typeof(FellowActorData), typeof(ActorData), "FellowActorData");
 		L.RegFunction("SetStep", SetStep);
 		L.RegFunction("Initialize", Initialize);
 		L.RegFunction("RefreshSkills", RefreshSkills);

+ 2 - 2
Assets/ToLua/Source/Generate/FighterStatisticsWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class FighterStatisticsWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(FighterStatistics), typeof(System.Object));
+		L.BeginClass(typeof(FighterStatistics), typeof(System.Object), "FighterStatistics");
 		L.RegFunction("StatHitInfo", StatHitInfo);
 		L.RegFunction("StatOtherDamage", StatOtherDamage);
 		L.RegFunction("StatReflectInfo", StatReflectInfo);

+ 2 - 2
Assets/ToLua/Source/Generate/GameMgrWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class GameMgrWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(GameMgr), typeof(SingletonMono<GameMgr>));
+		L.BeginClass(typeof(GameMgr), typeof(SingletonMono<GameMgr>), "GameMgr");
 		L.RegFunction("DoTaskByCorutine", DoTaskByCorutine);
 		L.RegFunction("StartDetector", StartDetector);
 		L.RegFunction("SetOnSceneLoadedLuaFunc", SetOnSceneLoadedLuaFunc);

+ 2 - 2
Assets/ToLua/Source/Generate/GameRoleInfoWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class GameRoleInfoWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(GameRoleInfo), typeof(System.Object));
+		L.BeginClass(typeof(GameRoleInfo), typeof(System.Object), "GameRoleInfo");
 		L.RegFunction("Valid", Valid);
 		L.RegFunction("New", _CreateGameRoleInfo);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/Source/Generate/GlobalConfigWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class GlobalConfigWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(GlobalConfig), typeof(Singleton<GlobalConfig>));
+		L.BeginClass(typeof(GlobalConfig), typeof(Singleton<GlobalConfig>), "GlobalConfig");
 		L.RegFunction("Init", Init);
 		L.RegFunction("UnInit", UnInit);
 		L.RegFunction("GetConfigIntValue", GetConfigIntValue);

+ 2 - 2
Assets/ToLua/Source/Generate/GuideMaskWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class GuideMaskWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(GuideMask), typeof(UnityEngine.MonoBehaviour));
+		L.BeginClass(typeof(GuideMask), typeof(UnityEngine.MonoBehaviour), "GuideMask");
 		L.RegFunction("Init", Init);
 		L.RegFunction("SetDefaultState", SetDefaultState);
 		L.RegFunction("SetTargetInfoClose", SetTargetInfoClose);

+ 2 - 2
Assets/ToLua/Source/Generate/GvGMarkWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class GvGMarkWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(GvGMark), typeof(System.Object));
+		L.BeginClass(typeof(GvGMark), typeof(System.Object), "GvGMark");
 		L.RegFunction("ToJson", ToJson);
 		L.RegFunction("New", _CreateGvGMark);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/Source/Generate/HairColorParamWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class HairColorParamWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(HairColorParam), null);
+		L.BeginClass(typeof(HairColorParam), null, "HairColorParam");
 		L.RegFunction("ToJson", ToJson);
 		L.RegFunction("New", _CreateHairColorParam);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/Source/Generate/HeroActorDataWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class HeroActorDataWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(HeroActorData), typeof(ActorData));
+		L.BeginClass(typeof(HeroActorData), typeof(ActorData), "HeroActorData");
 		L.RegFunction("Dispose", Dispose);
 		L.RegFunction("Initialize", Initialize);
 		L.RegFunction("SetLevel", SetLevel);

+ 2 - 2
Assets/ToLua/Source/Generate/I18NWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class I18NWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(I18N), typeof(System.Object));
+		L.BeginClass(typeof(I18N), typeof(System.Object), "I18N");
 		L.RegFunction("T", T);
 		L.RegFunction("SetLanguageValue", SetLanguageValue);
 		L.RegFunction("New", _CreateI18N);

+ 2 - 2
Assets/ToLua/Source/Generate/LoopScrollRectDragEventInheritWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class LoopScrollRectDragEventInheritWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(LoopScrollRectDragEventInherit), typeof(UnityEngine.MonoBehaviour));
+		L.BeginClass(typeof(LoopScrollRectDragEventInherit), typeof(UnityEngine.MonoBehaviour), "LoopScrollRectDragEventInherit");
 		L.RegFunction("GetInheritScrollRect", GetInheritScrollRect);
 		L.RegFunction("__eq", op_Equality);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/Source/Generate/LuaInterface_InjectTypeWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class LuaInterface_InjectTypeWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginEnum(typeof(LuaInterface.InjectType));
+		L.BeginEnum(typeof(LuaInterface.InjectType), "InjectType");
 		L.RegVar("None", get_None, null);
 		L.RegVar("After", get_After, null);
 		L.RegVar("Before", get_Before, null);

+ 2 - 2
Assets/ToLua/Source/Generate/LuaInterface_LuaInjectionStationWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class LuaInterface_LuaInjectionStationWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(LuaInterface.LuaInjectionStation), typeof(System.Object));
+		L.BeginClass(typeof(LuaInterface.LuaInjectionStation), typeof(System.Object), "LuaInjectionStation");
 		L.RegFunction("CacheInjectFunction", CacheInjectFunction);
 		L.RegFunction("Clear", Clear);
 		L.RegFunction("New", _CreateLuaInterface_LuaInjectionStation);

+ 2 - 2
Assets/ToLua/Source/Generate/LuaUIBaseWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class LuaUIBaseWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(LuaUIBase), typeof(UIBase));
+		L.BeginClass(typeof(LuaUIBase), typeof(UIBase), "LuaUIBase");
 		L.RegFunction("OnSubCloseAnimEnd", OnSubCloseAnimEnd);
 		L.RegFunction("__eq", op_Equality);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/Source/Generate/LuaUInt32Wrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class LuaUInt32Wrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(LuaUInt32), typeof(System.Object));
+		L.BeginClass(typeof(LuaUInt32), typeof(System.Object), "LuaUInt32");
 		L.RegFunction("FromString", FromString);
 		L.RegFunction("BytesToUInt32", BytesToUInt32);
 		L.RegFunction("New", _CreateLuaUInt32);

+ 2 - 2
Assets/ToLua/Source/Generate/LuaUInt64Wrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class LuaUInt64Wrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(LuaUInt64), typeof(System.Object));
+		L.BeginClass(typeof(LuaUInt64), typeof(System.Object), "LuaUInt64");
 		L.RegFunction("Make", Make);
 		L.RegFunction("FromString", FromString);
 		L.RegFunction("And", And);

+ 2 - 2
Assets/ToLua/Source/Generate/MirrorCameraWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class MirrorCameraWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(MirrorCamera), typeof(UnityEngine.MonoBehaviour));
+		L.BeginClass(typeof(MirrorCamera), typeof(UnityEngine.MonoBehaviour), "MirrorCamera");
 		L.RegFunction("ResetCamera", ResetCamera);
 		L.RegFunction("__eq", op_Equality);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/Source/Generate/ModelMgrWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class ModelMgrWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(ModelMgr), typeof(SingletonMono<ModelMgr>));
+		L.BeginClass(typeof(ModelMgr), typeof(SingletonMono<ModelMgr>), "ModelMgr");
 		L.RegFunction("InitMgr", InitMgr);
 		L.RegFunction("CreateModel", CreateModel);
 		L.RegFunction("__eq", op_Equality);

+ 2 - 2
Assets/ToLua/Source/Generate/MonoBaseWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class MonoBaseWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(MonoBase), typeof(UnityEngine.MonoBehaviour));
+		L.BeginClass(typeof(MonoBase), typeof(UnityEngine.MonoBehaviour), "MonoBase");
 		L.RegFunction("__eq", op_Equality);
 		L.RegFunction("__tostring", ToLua.op_ToString);
 		L.EndClass();

+ 2 - 2
Assets/ToLua/Source/Generate/MusicMgrWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class MusicMgrWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(MusicMgr), typeof(SingletonMono<MusicMgr>));
+		L.BeginClass(typeof(MusicMgr), typeof(SingletonMono<MusicMgr>), "MusicMgr");
 		L.RegFunction("InitMgr", InitMgr);
 		L.RegFunction("PreloadFightSound", PreloadFightSound);
 		L.RegFunction("PreloadUISound", PreloadUISound);

+ 2 - 2
Assets/ToLua/Source/Generate/NetworkMgrWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class NetworkMgrWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(NetworkMgr), typeof(Singleton<NetworkMgr>));
+		L.BeginClass(typeof(NetworkMgr), typeof(Singleton<NetworkMgr>), "NetworkMgr");
 		L.RegFunction("Init", Init);
 		L.RegFunction("SetGameServerConnectedLuaFunc", SetGameServerConnectedLuaFunc);
 		L.RegFunction("ConnectServer", ConnectServer);

+ 2 - 2
Assets/ToLua/Source/Generate/OutputInfoWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class OutputInfoWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(OutputInfo), null);
+		L.BeginClass(typeof(OutputInfo), null, "OutputInfo");
 		L.RegFunction("New", _CreateOutputInfo);
 		L.RegFunction("__tostring", ToLua.op_ToString);
 		L.RegVar("type", get_type, set_type);

+ 2 - 2
Assets/ToLua/Source/Generate/OutputTypeWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class OutputTypeWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginEnum(typeof(OutputType));
+		L.BeginEnum(typeof(OutputType), "OutputType");
 		L.RegVar("BeginFighting", get_BeginFighting, null);
 		L.RegVar("EndFighting", get_EndFighting, null);
 		L.RegVar("Dead", get_Dead, null);

+ 2 - 2
Assets/ToLua/Source/Generate/PetActorDataWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class PetActorDataWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(PetActorData), typeof(ActorData));
+		L.BeginClass(typeof(PetActorData), typeof(ActorData), "PetActorData");
 		L.RegFunction("Initialize", Initialize);
 		L.RegFunction("RefreshSkills", RefreshSkills);
 		L.RegFunction("SetStep", SetStep);

+ 2 - 2
Assets/ToLua/Source/Generate/PreviewCameraEventWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class PreviewCameraEventWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(PreviewCameraEvent), typeof(UnityEngine.MonoBehaviour));
+		L.BeginClass(typeof(PreviewCameraEvent), typeof(UnityEngine.MonoBehaviour), "PreviewCameraEvent");
 		L.RegFunction("SetBindEvent", SetBindEvent);
 		L.RegFunction("__eq", op_Equality);
 		L.RegFunction("__tostring", ToLua.op_ToString);

+ 2 - 2
Assets/ToLua/Source/Generate/ProfessionTypeWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class ProfessionTypeWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginEnum(typeof(ProfessionType));
+		L.BeginEnum(typeof(ProfessionType), "ProfessionType");
 		L.RegVar("Pro_Type_0", get_Pro_Type_0, null);
 		L.RegVar("Pro_Type_Sword", get_Pro_Type_Sword, null);
 		L.RegVar("Pro_Type_Thief", get_Pro_Type_Thief, null);

+ 2 - 2
Assets/ToLua/Source/Generate/RO_ReorderableListWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class RO_ReorderableListWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(RO.ReorderableList), typeof(UnityEngine.MonoBehaviour));
+		L.BeginClass(typeof(RO.ReorderableList), typeof(UnityEngine.MonoBehaviour), "ReorderableList");
 		L.RegFunction("GetCanvas", GetCanvas);
 		L.RegFunction("TestReOrderableListTarget", TestReOrderableListTarget);
 		L.RegFunction("__eq", op_Equality);

+ 2 - 2
Assets/ToLua/Source/Generate/RO_ReorderableList_ReorderableListEventStructWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class RO_ReorderableList_ReorderableListEventStructWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(RO.ReorderableList.ReorderableListEventStruct), null);
+		L.BeginClass(typeof(RO.ReorderableList.ReorderableListEventStruct), null, "ReorderableListEventStruct");
 		L.RegFunction("New", _CreateRO_ReorderableList_ReorderableListEventStruct);
 		L.RegFunction("__tostring", ToLua.op_ToString);
 		L.RegVar("DroppedObject", get_DroppedObject, set_DroppedObject);

+ 2 - 2
Assets/ToLua/Source/Generate/RO_ReorderableList_ReorderableListHandlerWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class RO_ReorderableList_ReorderableListHandlerWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(RO.ReorderableList.ReorderableListHandler), typeof(UnityEngine.Events.UnityEvent<RO.ReorderableList.ReorderableListEventStruct>));
+		L.BeginClass(typeof(RO.ReorderableList.ReorderableListHandler), typeof(UnityEngine.Events.UnityEvent<RO.ReorderableList.ReorderableListEventStruct>), "ReorderableListHandler");
 		L.RegFunction("New", _CreateRO_ReorderableList_ReorderableListHandler);
 		L.RegFunction("__tostring", ToLua.op_ToString);
 		L.EndClass();

+ 2 - 2
Assets/ToLua/Source/Generate/ResourceMgrWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class ResourceMgrWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(ResourceMgr), typeof(Singleton<ResourceMgr>));
+		L.BeginClass(typeof(ResourceMgr), typeof(Singleton<ResourceMgr>), "ResourceMgr");
 		L.RegFunction("LoadAssetSprite", LoadAssetSprite);
 		L.RegFunction("LoadAssetSprites", LoadAssetSprites);
 		L.RegFunction("LoadAssetSpriteWithUserData", LoadAssetSpriteWithUserData);

+ 2 - 2
Assets/ToLua/Source/Generate/RolRectTransformWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class RolRectTransformWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(RolRectTransform), typeof(UnityEngine.MonoBehaviour));
+		L.BeginClass(typeof(RolRectTransform), typeof(UnityEngine.MonoBehaviour), "RolRectTransform");
 		L.RegFunction("SetMaxSpeed", SetMaxSpeed);
 		L.RegFunction("ClearNewRangeSpeed", ClearNewRangeSpeed);
 		L.RegFunction("AddNewRangeSpeed", AddNewRangeSpeed);

+ 2 - 2
Assets/ToLua/Source/Generate/RollingNumberTextWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class RollingNumberTextWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(RollingNumberText), typeof(UnityEngine.MonoBehaviour));
+		L.BeginClass(typeof(RollingNumberText), typeof(UnityEngine.MonoBehaviour), "RollingNumberText");
 		L.RegFunction("Change", Change);
 		L.RegFunction("RollingNumberOver", RollingNumberOver);
 		L.RegFunction("__eq", op_Equality);

+ 2 - 2
Assets/ToLua/Source/Generate/SBoolWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class SBoolWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(SBool), null);
+		L.BeginClass(typeof(SBool), null, "SBool");
 		L.RegFunction("Encrypt", Encrypt);
 		L.RegFunction("Decrypt", Decrypt);
 		L.RegFunction("Equals", Equals);

+ 2 - 2
Assets/ToLua/Source/Generate/SDKMgrWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class SDKMgrWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(SDKMgr), typeof(UnityEngine.MonoBehaviour));
+		L.BeginClass(typeof(SDKMgr), typeof(UnityEngine.MonoBehaviour), "SDKMgr");
 		L.RegFunction("SetHttpCheckUrl", SetHttpCheckUrl);
 		L.RegFunction("Init", Init);
 		L.RegFunction("Login", Login);

+ 2 - 2
Assets/ToLua/Source/Generate/SDKModulTypeWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class SDKModulTypeWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginEnum(typeof(SDKModulType));
+		L.BeginEnum(typeof(SDKModulType), "SDKModulType");
 		L.RegVar("USERMANAGER", get_USERMANAGER, null);
 		L.RegVar("EXIT_VIEW", get_EXIT_VIEW, null);
 		L.RegFunction("IntToEnum", IntToEnum);

+ 2 - 2
Assets/ToLua/Source/Generate/SDoubleWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class SDoubleWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(SDouble), null);
+		L.BeginClass(typeof(SDouble), null, "SDouble");
 		L.RegFunction("Convert", Convert);
 		L.RegFunction("Encrypt", Encrypt);
 		L.RegFunction("Decrypt", Decrypt);

+ 2 - 2
Assets/ToLua/Source/Generate/SFloatWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class SFloatWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(SFloat), null);
+		L.BeginClass(typeof(SFloat), null, "SFloat");
 		L.RegFunction("Convert", Convert);
 		L.RegFunction("InvConvert", InvConvert);
 		L.RegFunction("Encrypt", Encrypt);

+ 2 - 2
Assets/ToLua/Source/Generate/SIntWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class SIntWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(SInt), null);
+		L.BeginClass(typeof(SInt), null, "SInt");
 		L.RegFunction("Convert", Convert);
 		L.RegFunction("InvConvert", InvConvert);
 		L.RegFunction("Encrypt", Encrypt);

+ 2 - 2
Assets/ToLua/Source/Generate/SLongWrap.cs

@@ -1,4 +1,4 @@
-//this source code was auto-generated by tolua#, do not modify it
+//this source code was auto-generated by tolua#, do not modify it
 using System;
 using LuaInterface;
 
@@ -6,7 +6,7 @@ public class SLongWrap
 {
 	public static void Register(LuaState L)
 	{
-		L.BeginClass(typeof(SLong), null);
+		L.BeginClass(typeof(SLong), null, "SLong");
 		L.RegFunction("Encrypt", Encrypt);
 		L.RegFunction("Decrypt", Decrypt);
 		L.RegFunction("Equals", Equals);

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff