2025-12-17 21:08:27 +08:00
|
|
|
|
//this source code was auto-generated by tolua#, do not modify it
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
using LuaInterface;
|
|
|
|
|
|
|
|
|
|
|
|
public static class LuaBinder
|
|
|
|
|
|
{
|
|
|
|
|
|
public static void Bind(LuaState L)
|
|
|
|
|
|
{
|
|
|
|
|
|
float t = Time.realtimeSinceStartup;
|
|
|
|
|
|
L.BeginModule(null);
|
|
|
|
|
|
DSAnimationCurveWrap.Register(L);
|
|
|
|
|
|
TakeScreenShotWrap.Register(L);
|
|
|
|
|
|
QRCodePictureWrap.Register(L);
|
|
|
|
|
|
GameApplicationWrap.Register(L);
|
|
|
|
|
|
VersionWrap.Register(L);
|
|
|
|
|
|
HotupdateWrap.Register(L);
|
|
|
|
|
|
VoiceWrap.Register(L);
|
|
|
|
|
|
LuaUIHelperWrap.Register(L);
|
|
|
|
|
|
LuaUIHelperSpriteWrap.Register(L);
|
|
|
|
|
|
LuaUIHelperTextWrap.Register(L);
|
|
|
|
|
|
PageSliderManagerWrap.Register(L);
|
|
|
|
|
|
L.BeginModule("UnityEngine");
|
|
|
|
|
|
UnityEngine_ComponentWrap.Register(L);
|
|
|
|
|
|
UnityEngine_TransformWrap.Register(L);
|
|
|
|
|
|
UnityEngine_MaterialWrap.Register(L);
|
|
|
|
|
|
UnityEngine_LightWrap.Register(L);
|
|
|
|
|
|
UnityEngine_CameraWrap.Register(L);
|
|
|
|
|
|
UnityEngine_BehaviourWrap.Register(L);
|
|
|
|
|
|
UnityEngine_MonoBehaviourWrap.Register(L);
|
|
|
|
|
|
UnityEngine_GameObjectWrap.Register(L);
|
|
|
|
|
|
UnityEngine_TrackedReferenceWrap.Register(L);
|
|
|
|
|
|
UnityEngine_ApplicationWrap.Register(L);
|
|
|
|
|
|
UnityEngine_PhysicsWrap.Register(L);
|
|
|
|
|
|
UnityEngine_ColliderWrap.Register(L);
|
|
|
|
|
|
UnityEngine_TimeWrap.Register(L);
|
|
|
|
|
|
UnityEngine_TextureWrap.Register(L);
|
|
|
|
|
|
UnityEngine_Texture2DWrap.Register(L);
|
|
|
|
|
|
UnityEngine_ShaderWrap.Register(L);
|
|
|
|
|
|
UnityEngine_RendererWrap.Register(L);
|
|
|
|
|
|
UnityEngine_WWWWrap.Register(L);
|
|
|
|
|
|
UnityEngine_ScreenWrap.Register(L);
|
|
|
|
|
|
UnityEngine_CameraClearFlagsWrap.Register(L);
|
|
|
|
|
|
UnityEngine_AudioClipWrap.Register(L);
|
|
|
|
|
|
UnityEngine_AssetBundleWrap.Register(L);
|
|
|
|
|
|
UnityEngine_ParticleSystemWrap.Register(L);
|
|
|
|
|
|
UnityEngine_AsyncOperationWrap.Register(L);
|
|
|
|
|
|
UnityEngine_LightTypeWrap.Register(L);
|
|
|
|
|
|
UnityEngine_SleepTimeoutWrap.Register(L);
|
|
|
|
|
|
UnityEngine_AnimatorWrap.Register(L);
|
|
|
|
|
|
UnityEngine_InputWrap.Register(L);
|
|
|
|
|
|
UnityEngine_KeyCodeWrap.Register(L);
|
|
|
|
|
|
UnityEngine_SkinnedMeshRendererWrap.Register(L);
|
|
|
|
|
|
UnityEngine_SpaceWrap.Register(L);
|
|
|
|
|
|
UnityEngine_AnimationBlendModeWrap.Register(L);
|
|
|
|
|
|
UnityEngine_QueueModeWrap.Register(L);
|
|
|
|
|
|
UnityEngine_PlayModeWrap.Register(L);
|
|
|
|
|
|
UnityEngine_WrapModeWrap.Register(L);
|
|
|
|
|
|
UnityEngine_RenderSettingsWrap.Register(L);
|
|
|
|
|
|
UnityEngine_ResourcesWrap.Register(L);
|
|
|
|
|
|
UnityEngine_PlayerPrefsWrap.Register(L);
|
|
|
|
|
|
UnityEngine_RuntimePlatformWrap.Register(L);
|
|
|
|
|
|
UnityEngine_NetworkReachabilityWrap.Register(L);
|
|
|
|
|
|
UnityEngine_SystemInfoWrap.Register(L);
|
|
|
|
|
|
UnityEngine_SpriteWrap.Register(L);
|
|
|
|
|
|
UnityEngine_RectTransformWrap.Register(L);
|
|
|
|
|
|
UnityEngine_TextAssetWrap.Register(L);
|
|
|
|
|
|
UnityEngine_ScriptableObjectWrap.Register(L);
|
|
|
|
|
|
L.BeginModule("UI");
|
|
|
|
|
|
UnityEngine_UI_TextWrap.Register(L);
|
|
|
|
|
|
UnityEngine_UI_ButtonWrap.Register(L);
|
|
|
|
|
|
UnityEngine_UI_ImageWrap.Register(L);
|
|
|
|
|
|
UnityEngine_UI_SliderWrap.Register(L);
|
|
|
|
|
|
UnityEngine_UI_ScrollbarWrap.Register(L);
|
|
|
|
|
|
UnityEngine_UI_ScrollRectWrap.Register(L);
|
|
|
|
|
|
UnityEngine_UI_InputFieldWrap.Register(L);
|
|
|
|
|
|
UnityEngine_UI_RawImageWrap.Register(L);
|
2025-12-19 20:03:24 +08:00
|
|
|
|
UnityEngine_UI_GridLayoutGroupWrap.Register(L);
|
2025-12-17 21:08:27 +08:00
|
|
|
|
UnityEngine_UI_MaskableGraphicWrap.Register(L);
|
|
|
|
|
|
UnityEngine_UI_GraphicWrap.Register(L);
|
|
|
|
|
|
UnityEngine_UI_SelectableWrap.Register(L);
|
2025-12-19 20:03:24 +08:00
|
|
|
|
UnityEngine_UI_LayoutGroupWrap.Register(L);
|
2025-12-17 21:08:27 +08:00
|
|
|
|
L.BeginModule("InputField");
|
|
|
|
|
|
L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput);
|
|
|
|
|
|
L.EndModule();
|
|
|
|
|
|
L.EndModule();
|
|
|
|
|
|
L.BeginModule("EventSystems");
|
|
|
|
|
|
UnityEngine_EventSystems_UIBehaviourWrap.Register(L);
|
|
|
|
|
|
L.EndModule();
|
|
|
|
|
|
L.BeginModule("Events");
|
|
|
|
|
|
L.RegFunction("UnityAction", UnityEngine_Events_UnityAction);
|
|
|
|
|
|
L.EndModule();
|
|
|
|
|
|
L.BeginModule("Camera");
|
|
|
|
|
|
L.RegFunction("CameraCallback", UnityEngine_Camera_CameraCallback);
|
|
|
|
|
|
L.EndModule();
|
|
|
|
|
|
L.BeginModule("Application");
|
|
|
|
|
|
L.RegFunction("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback);
|
|
|
|
|
|
L.RegFunction("LowMemoryCallback", UnityEngine_Application_LowMemoryCallback);
|
|
|
|
|
|
L.RegFunction("LogCallback", UnityEngine_Application_LogCallback);
|
|
|
|
|
|
L.EndModule();
|
|
|
|
|
|
L.BeginModule("AudioClip");
|
|
|
|
|
|
L.RegFunction("PCMReaderCallback", UnityEngine_AudioClip_PCMReaderCallback);
|
|
|
|
|
|
L.RegFunction("PCMSetPositionCallback", UnityEngine_AudioClip_PCMSetPositionCallback);
|
|
|
|
|
|
L.EndModule();
|
|
|
|
|
|
L.BeginModule("RectTransform");
|
|
|
|
|
|
L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties);
|
|
|
|
|
|
L.EndModule();
|
|
|
|
|
|
L.EndModule();
|
|
|
|
|
|
L.BeginModule("taurus");
|
|
|
|
|
|
L.BeginModule("client");
|
|
|
|
|
|
taurus_client_NetManagerWrap.Register(L);
|
|
|
|
|
|
L.EndModule();
|
|
|
|
|
|
L.BeginModule("unity");
|
|
|
|
|
|
taurus_unity_LuaNetClientWrap.Register(L);
|
|
|
|
|
|
taurus_unity_ResourcesManagerWrap.Register(L);
|
|
|
|
|
|
L.EndModule();
|
|
|
|
|
|
L.EndModule();
|
|
|
|
|
|
L.BeginModule("Game");
|
|
|
|
|
|
Game_UtilsWrap.Register(L);
|
|
|
|
|
|
L.EndModule();
|
|
|
|
|
|
L.BeginModule("System");
|
|
|
|
|
|
L.RegFunction("Action", System_Action);
|
|
|
|
|
|
L.RegFunction("Predicate_int", System_Predicate_int);
|
|
|
|
|
|
L.RegFunction("Action_int", System_Action_int);
|
|
|
|
|
|
L.RegFunction("Comparison_int", System_Comparison_int);
|
|
|
|
|
|
L.RegFunction("Func_int_int", System_Func_int_int);
|
|
|
|
|
|
L.RegFunction("Action_bool", System_Action_bool);
|
|
|
|
|
|
L.RegFunction("Action_string", System_Action_string);
|
|
|
|
|
|
L.RegFunction("Func_bool", System_Func_bool);
|
|
|
|
|
|
L.RegFunction("Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair", System_Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair);
|
|
|
|
|
|
L.RegFunction("Action_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation);
|
|
|
|
|
|
L.RegFunction("Action_string_System_Action", System_Action_string_System_Action);
|
|
|
|
|
|
L.BeginModule("IO");
|
|
|
|
|
|
System_IO_FileWrap.Register(L);
|
|
|
|
|
|
System_IO_DirectoryWrap.Register(L);
|
|
|
|
|
|
L.EndModule();
|
|
|
|
|
|
L.EndModule();
|
|
|
|
|
|
L.EndModule();
|
|
|
|
|
|
L.BeginPreLoad();
|
|
|
|
|
|
L.AddPreLoad("UnityEngine.BoxCollider", LuaOpen_UnityEngine_BoxCollider, typeof(UnityEngine.BoxCollider));
|
|
|
|
|
|
L.AddPreLoad("UnityEngine.MeshCollider", LuaOpen_UnityEngine_MeshCollider, typeof(UnityEngine.MeshCollider));
|
|
|
|
|
|
L.AddPreLoad("UnityEngine.SphereCollider", LuaOpen_UnityEngine_SphereCollider, typeof(UnityEngine.SphereCollider));
|
|
|
|
|
|
L.AddPreLoad("UnityEngine.CharacterController", LuaOpen_UnityEngine_CharacterController, typeof(UnityEngine.CharacterController));
|
|
|
|
|
|
L.AddPreLoad("UnityEngine.CapsuleCollider", LuaOpen_UnityEngine_CapsuleCollider, typeof(UnityEngine.CapsuleCollider));
|
|
|
|
|
|
L.AddPreLoad("UnityEngine.Animation", LuaOpen_UnityEngine_Animation, typeof(UnityEngine.Animation));
|
|
|
|
|
|
L.AddPreLoad("UnityEngine.AnimationClip", LuaOpen_UnityEngine_AnimationClip, typeof(UnityEngine.AnimationClip));
|
|
|
|
|
|
L.AddPreLoad("UnityEngine.AnimationState", LuaOpen_UnityEngine_AnimationState, typeof(UnityEngine.AnimationState));
|
|
|
|
|
|
L.AddPreLoad("UnityEngine.SkinWeights", LuaOpen_UnityEngine_SkinWeights, typeof(UnityEngine.SkinWeights));
|
|
|
|
|
|
L.AddPreLoad("UnityEngine.RenderTexture", LuaOpen_UnityEngine_RenderTexture, typeof(UnityEngine.RenderTexture));
|
|
|
|
|
|
L.AddPreLoad("UnityEngine.Rigidbody", LuaOpen_UnityEngine_Rigidbody, typeof(UnityEngine.Rigidbody));
|
|
|
|
|
|
L.EndPreLoad();
|
|
|
|
|
|
Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int UnityEngine_UI_InputField_OnValidateInput(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.UI.InputField.OnValidateInput>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.UI.InputField.OnValidateInput>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int UnityEngine_Events_UnityAction(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.Events.UnityAction>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.Events.UnityAction>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int UnityEngine_Camera_CameraCallback(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.Camera.CameraCallback>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.Camera.CameraCallback>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int UnityEngine_Application_AdvertisingIdentifierCallback(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.Application.AdvertisingIdentifierCallback>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.Application.AdvertisingIdentifierCallback>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int UnityEngine_Application_LowMemoryCallback(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.Application.LowMemoryCallback>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.Application.LowMemoryCallback>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int UnityEngine_Application_LogCallback(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.Application.LogCallback>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.Application.LogCallback>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int UnityEngine_AudioClip_PCMReaderCallback(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.AudioClip.PCMReaderCallback>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.AudioClip.PCMReaderCallback>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int UnityEngine_AudioClip_PCMSetPositionCallback(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.AudioClip.PCMSetPositionCallback>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.AudioClip.PCMSetPositionCallback>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int UnityEngine_RectTransform_ReapplyDrivenProperties(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.RectTransform.ReapplyDrivenProperties>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<UnityEngine.RectTransform.ReapplyDrivenProperties>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int System_Action(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Action>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Action>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int System_Predicate_int(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Predicate<int>>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Predicate<int>>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int System_Action_int(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Action<int>>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Action<int>>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int System_Comparison_int(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Comparison<int>>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Comparison<int>>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int System_Func_int_int(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Func<int,int>>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Func<int,int>>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int System_Action_bool(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Action<bool>>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Action<bool>>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int System_Action_string(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Action<string>>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Action<string>>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int System_Func_bool(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Func<bool>>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Func<bool>>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int System_Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Action<UnityEngine.PhysicsScene,Unity.Collections.NativeArray<UnityEngine.ModifiableContactPair>>>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Action<UnityEngine.PhysicsScene,Unity.Collections.NativeArray<UnityEngine.ModifiableContactPair>>>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int System_Action_UnityEngine_AsyncOperation(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Action<UnityEngine.AsyncOperation>>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Action<UnityEngine.AsyncOperation>>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int System_Action_string_System_Action(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Action<string,System.Action>>.Create(func);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|
|
|
|
|
Delegate arg1 = DelegateTraits<System.Action<string,System.Action>>.Create(func, self);
|
|
|
|
|
|
ToLua.Push(L, arg1);
|
|
|
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int LuaOpen_UnityEngine_BoxCollider(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaState state = LuaState.Get(L);
|
|
|
|
|
|
state.BeginPreModule("UnityEngine");
|
|
|
|
|
|
UnityEngine_BoxColliderWrap.Register(state);
|
|
|
|
|
|
int reference = state.GetMetaReference(typeof(UnityEngine.BoxCollider));
|
|
|
|
|
|
state.EndPreModule(L, reference);
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int LuaOpen_UnityEngine_MeshCollider(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaState state = LuaState.Get(L);
|
|
|
|
|
|
state.BeginPreModule("UnityEngine");
|
|
|
|
|
|
UnityEngine_MeshColliderWrap.Register(state);
|
|
|
|
|
|
int reference = state.GetMetaReference(typeof(UnityEngine.MeshCollider));
|
|
|
|
|
|
state.EndPreModule(L, reference);
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int LuaOpen_UnityEngine_SphereCollider(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaState state = LuaState.Get(L);
|
|
|
|
|
|
state.BeginPreModule("UnityEngine");
|
|
|
|
|
|
UnityEngine_SphereColliderWrap.Register(state);
|
|
|
|
|
|
int reference = state.GetMetaReference(typeof(UnityEngine.SphereCollider));
|
|
|
|
|
|
state.EndPreModule(L, reference);
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int LuaOpen_UnityEngine_CharacterController(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaState state = LuaState.Get(L);
|
|
|
|
|
|
state.BeginPreModule("UnityEngine");
|
|
|
|
|
|
UnityEngine_CharacterControllerWrap.Register(state);
|
|
|
|
|
|
int reference = state.GetMetaReference(typeof(UnityEngine.CharacterController));
|
|
|
|
|
|
state.EndPreModule(L, reference);
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int LuaOpen_UnityEngine_CapsuleCollider(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaState state = LuaState.Get(L);
|
|
|
|
|
|
state.BeginPreModule("UnityEngine");
|
|
|
|
|
|
UnityEngine_CapsuleColliderWrap.Register(state);
|
|
|
|
|
|
int reference = state.GetMetaReference(typeof(UnityEngine.CapsuleCollider));
|
|
|
|
|
|
state.EndPreModule(L, reference);
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int LuaOpen_UnityEngine_Animation(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaState state = LuaState.Get(L);
|
|
|
|
|
|
state.BeginPreModule("UnityEngine");
|
|
|
|
|
|
UnityEngine_AnimationWrap.Register(state);
|
|
|
|
|
|
int reference = state.GetMetaReference(typeof(UnityEngine.Animation));
|
|
|
|
|
|
state.EndPreModule(L, reference);
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int LuaOpen_UnityEngine_AnimationClip(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaState state = LuaState.Get(L);
|
|
|
|
|
|
state.BeginPreModule("UnityEngine");
|
|
|
|
|
|
UnityEngine_AnimationClipWrap.Register(state);
|
|
|
|
|
|
int reference = state.GetMetaReference(typeof(UnityEngine.AnimationClip));
|
|
|
|
|
|
state.EndPreModule(L, reference);
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int LuaOpen_UnityEngine_AnimationState(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaState state = LuaState.Get(L);
|
|
|
|
|
|
state.BeginPreModule("UnityEngine");
|
|
|
|
|
|
UnityEngine_AnimationStateWrap.Register(state);
|
|
|
|
|
|
int reference = state.GetMetaReference(typeof(UnityEngine.AnimationState));
|
|
|
|
|
|
state.EndPreModule(L, reference);
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int LuaOpen_UnityEngine_SkinWeights(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaState state = LuaState.Get(L);
|
|
|
|
|
|
state.BeginPreModule("UnityEngine");
|
|
|
|
|
|
UnityEngine_SkinWeightsWrap.Register(state);
|
|
|
|
|
|
int reference = state.GetMetaReference(typeof(UnityEngine.SkinWeights));
|
|
|
|
|
|
state.EndPreModule(L, reference);
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int LuaOpen_UnityEngine_RenderTexture(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaState state = LuaState.Get(L);
|
|
|
|
|
|
state.BeginPreModule("UnityEngine");
|
|
|
|
|
|
UnityEngine_RenderTextureWrap.Register(state);
|
|
|
|
|
|
int reference = state.GetMetaReference(typeof(UnityEngine.RenderTexture));
|
|
|
|
|
|
state.EndPreModule(L, reference);
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
|
|
|
static int LuaOpen_UnityEngine_Rigidbody(IntPtr L)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
LuaState state = LuaState.Get(L);
|
|
|
|
|
|
state.BeginPreModule("UnityEngine");
|
|
|
|
|
|
UnityEngine_RigidbodyWrap.Register(state);
|
|
|
|
|
|
int reference = state.GetMetaReference(typeof(UnityEngine.Rigidbody));
|
|
|
|
|
|
state.EndPreModule(L, reference);
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|