1262 lines
33 KiB
C#
1262 lines
33 KiB
C#
|
|
//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);
|
|||
|
|
L.BeginModule("UnityEngine");
|
|||
|
|
UnityEngine_ComponentWrap.Register(L);
|
|||
|
|
UnityEngine_TransformWrap.Register(L);
|
|||
|
|
UnityEngine_MaterialWrap.Register(L);
|
|||
|
|
UnityEngine_LightWrap.Register(L);
|
|||
|
|
UnityEngine_CameraWrap.Register(L);
|
|||
|
|
UnityEngine_AudioSourceWrap.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_QualitySettingsWrap.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_AudioBehaviourWrap.Register(L);
|
|||
|
|
UnityEngine_ScriptableObjectWrap.Register(L);
|
|||
|
|
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.EndModule();
|
|||
|
|
L.BeginModule("FairyGUI");
|
|||
|
|
FairyGUI_EventContextWrap.Register(L);
|
|||
|
|
FairyGUI_EventDispatcherWrap.Register(L);
|
|||
|
|
FairyGUI_EventListenerWrap.Register(L);
|
|||
|
|
FairyGUI_InputEventWrap.Register(L);
|
|||
|
|
FairyGUI_DisplayObjectWrap.Register(L);
|
|||
|
|
FairyGUI_ContainerWrap.Register(L);
|
|||
|
|
FairyGUI_StageWrap.Register(L);
|
|||
|
|
FairyGUI_ControllerWrap.Register(L);
|
|||
|
|
FairyGUI_GObjectWrap.Register(L);
|
|||
|
|
FairyGUI_GGraphWrap.Register(L);
|
|||
|
|
FairyGUI_GGroupWrap.Register(L);
|
|||
|
|
FairyGUI_GImageWrap.Register(L);
|
|||
|
|
FairyGUI_GLoaderWrap.Register(L);
|
|||
|
|
FairyGUI_GMovieClipWrap.Register(L);
|
|||
|
|
FairyGUI_TextFormatWrap.Register(L);
|
|||
|
|
FairyGUI_GTextFieldWrap.Register(L);
|
|||
|
|
FairyGUI_GRichTextFieldWrap.Register(L);
|
|||
|
|
FairyGUI_GTextInputWrap.Register(L);
|
|||
|
|
FairyGUI_GComponentWrap.Register(L);
|
|||
|
|
FairyGUI_GListWrap.Register(L);
|
|||
|
|
FairyGUI_GRootWrap.Register(L);
|
|||
|
|
FairyGUI_GLabelWrap.Register(L);
|
|||
|
|
FairyGUI_GButtonWrap.Register(L);
|
|||
|
|
FairyGUI_GComboBoxWrap.Register(L);
|
|||
|
|
FairyGUI_GProgressBarWrap.Register(L);
|
|||
|
|
FairyGUI_GSliderWrap.Register(L);
|
|||
|
|
FairyGUI_PopupMenuWrap.Register(L);
|
|||
|
|
FairyGUI_ScrollPaneWrap.Register(L);
|
|||
|
|
FairyGUI_TransitionWrap.Register(L);
|
|||
|
|
FairyGUI_UIPackageWrap.Register(L);
|
|||
|
|
FairyGUI_WindowWrap.Register(L);
|
|||
|
|
FairyGUI_GObjectPoolWrap.Register(L);
|
|||
|
|
FairyGUI_RelationsWrap.Register(L);
|
|||
|
|
FairyGUI_RelationTypeWrap.Register(L);
|
|||
|
|
FairyGUI_TimersWrap.Register(L);
|
|||
|
|
FairyGUI_NTextureWrap.Register(L);
|
|||
|
|
FairyGUI_NAudioClipWrap.Register(L);
|
|||
|
|
FairyGUI_UIObjectFactoryWrap.Register(L);
|
|||
|
|
FairyGUI_GoWrapperWrap.Register(L);
|
|||
|
|
FairyGUI_GearDisplayWrap.Register(L);
|
|||
|
|
FairyGUI_GearXYWrap.Register(L);
|
|||
|
|
FairyGUI_GearSizeWrap.Register(L);
|
|||
|
|
FairyGUI_GearLookWrap.Register(L);
|
|||
|
|
FairyGUI_GearColorWrap.Register(L);
|
|||
|
|
FairyGUI_GearAnimationWrap.Register(L);
|
|||
|
|
FairyGUI_GearTextWrap.Register(L);
|
|||
|
|
FairyGUI_GearIconWrap.Register(L);
|
|||
|
|
FairyGUI_UIConfigWrap.Register(L);
|
|||
|
|
FairyGUI_BlurFilterWrap.Register(L);
|
|||
|
|
FairyGUI_ColorFilterWrap.Register(L);
|
|||
|
|
FairyGUI_FontManagerWrap.Register(L);
|
|||
|
|
FairyGUI_DynamicFontWrap.Register(L);
|
|||
|
|
FairyGUI_GTweenerWrap.Register(L);
|
|||
|
|
FairyGUI_ImageWrap.Register(L);
|
|||
|
|
FairyGUI_TextFieldWrap.Register(L);
|
|||
|
|
FairyGUI_GearBaseWrap.Register(L);
|
|||
|
|
FairyGUI_BaseFontWrap.Register(L);
|
|||
|
|
L.RegFunction("GTweenCallback", FairyGUI_GTweenCallback);
|
|||
|
|
L.RegFunction("EventCallback1", FairyGUI_EventCallback1);
|
|||
|
|
L.RegFunction("EventCallback0", FairyGUI_EventCallback0);
|
|||
|
|
L.RegFunction("ListItemRenderer", FairyGUI_ListItemRenderer);
|
|||
|
|
L.RegFunction("ListItemProvider", FairyGUI_ListItemProvider);
|
|||
|
|
L.RegFunction("PlayCompleteCallback", FairyGUI_PlayCompleteCallback);
|
|||
|
|
L.RegFunction("TransitionHook", FairyGUI_TransitionHook);
|
|||
|
|
L.RegFunction("TimerCallback", FairyGUI_TimerCallback);
|
|||
|
|
L.RegFunction("GTweenCallback1", FairyGUI_GTweenCallback1);
|
|||
|
|
L.BeginModule("UIPackage");
|
|||
|
|
L.RegFunction("CreateObjectCallback", FairyGUI_UIPackage_CreateObjectCallback);
|
|||
|
|
L.EndModule();
|
|||
|
|
L.BeginModule("GObjectPool");
|
|||
|
|
L.RegFunction("InitCallbackDelegate", FairyGUI_GObjectPool_InitCallbackDelegate);
|
|||
|
|
L.EndModule();
|
|||
|
|
L.BeginModule("UIObjectFactory");
|
|||
|
|
L.RegFunction("GComponentCreator", FairyGUI_UIObjectFactory_GComponentCreator);
|
|||
|
|
L.RegFunction("GLoaderCreator", FairyGUI_UIObjectFactory_GLoaderCreator);
|
|||
|
|
L.EndModule();
|
|||
|
|
L.BeginModule("UIConfig");
|
|||
|
|
L.RegFunction("SoundLoader", FairyGUI_UIConfig_SoundLoader);
|
|||
|
|
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_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.MeshRenderer", LuaOpen_UnityEngine_MeshRenderer, typeof(UnityEngine.MeshRenderer));
|
|||
|
|
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_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 FairyGUI_GTweenCallback(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|||
|
|
|
|||
|
|
if (count == 1)
|
|||
|
|
{
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.GTweenCallback>.Create(func);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.GTweenCallback>.Create(func, self);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int FairyGUI_EventCallback1(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|||
|
|
|
|||
|
|
if (count == 1)
|
|||
|
|
{
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.EventCallback1>.Create(func);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.EventCallback1>.Create(func, self);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int FairyGUI_EventCallback0(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|||
|
|
|
|||
|
|
if (count == 1)
|
|||
|
|
{
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.EventCallback0>.Create(func);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.EventCallback0>.Create(func, self);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int FairyGUI_ListItemRenderer(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|||
|
|
|
|||
|
|
if (count == 1)
|
|||
|
|
{
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.ListItemRenderer>.Create(func);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.ListItemRenderer>.Create(func, self);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int FairyGUI_ListItemProvider(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|||
|
|
|
|||
|
|
if (count == 1)
|
|||
|
|
{
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.ListItemProvider>.Create(func);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.ListItemProvider>.Create(func, self);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int FairyGUI_PlayCompleteCallback(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|||
|
|
|
|||
|
|
if (count == 1)
|
|||
|
|
{
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.PlayCompleteCallback>.Create(func);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.PlayCompleteCallback>.Create(func, self);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int FairyGUI_TransitionHook(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|||
|
|
|
|||
|
|
if (count == 1)
|
|||
|
|
{
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.TransitionHook>.Create(func);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.TransitionHook>.Create(func, self);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int FairyGUI_TimerCallback(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|||
|
|
|
|||
|
|
if (count == 1)
|
|||
|
|
{
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.TimerCallback>.Create(func);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.TimerCallback>.Create(func, self);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int FairyGUI_GTweenCallback1(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|||
|
|
|
|||
|
|
if (count == 1)
|
|||
|
|
{
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.GTweenCallback1>.Create(func);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.GTweenCallback1>.Create(func, self);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int FairyGUI_UIPackage_CreateObjectCallback(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|||
|
|
|
|||
|
|
if (count == 1)
|
|||
|
|
{
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.UIPackage.CreateObjectCallback>.Create(func);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.UIPackage.CreateObjectCallback>.Create(func, self);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int FairyGUI_GObjectPool_InitCallbackDelegate(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|||
|
|
|
|||
|
|
if (count == 1)
|
|||
|
|
{
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.GObjectPool.InitCallbackDelegate>.Create(func);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.GObjectPool.InitCallbackDelegate>.Create(func, self);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int FairyGUI_UIObjectFactory_GComponentCreator(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|||
|
|
|
|||
|
|
if (count == 1)
|
|||
|
|
{
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.UIObjectFactory.GComponentCreator>.Create(func);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.UIObjectFactory.GComponentCreator>.Create(func, self);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int FairyGUI_UIObjectFactory_GLoaderCreator(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|||
|
|
|
|||
|
|
if (count == 1)
|
|||
|
|
{
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.UIObjectFactory.GLoaderCreator>.Create(func);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.UIObjectFactory.GLoaderCreator>.Create(func, self);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int FairyGUI_UIConfig_SoundLoader(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
|||
|
|
|
|||
|
|
if (count == 1)
|
|||
|
|
{
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.UIConfig.SoundLoader>.Create(func);
|
|||
|
|
ToLua.Push(L, arg1);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
|||
|
|
Delegate arg1 = DelegateTraits<FairyGUI.UIConfig.SoundLoader>.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_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_MeshRenderer(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
LuaState state = LuaState.Get(L);
|
|||
|
|
state.BeginPreModule("UnityEngine");
|
|||
|
|
UnityEngine_MeshRendererWrap.Register(state);
|
|||
|
|
int reference = state.GetMetaReference(typeof(UnityEngine.MeshRenderer));
|
|||
|
|
state.EndPreModule(L, reference);
|
|||
|
|
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);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|