public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); LuaProfilerWrap.Register(L); ViewWrap.Register(L); BaseWrap.Register(L); ManagerWrap.Register(L); L.BeginModule("LuaInterface"); LuaInterface_LuaInjectionStationWrap.Register(L); LuaInterface_InjectTypeWrap.Register(L); L.EndModule(); 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_RectTransformWrap.Register(L); L.BeginModule("Experimental"); L.BeginModule("Director"); UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("UI"); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); 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("LogCallback", UnityEngine_Application_LogCallback); L.RegFunction("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback); 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("LuaFramework"); LuaFramework_UtilWrap.Register(L); LuaFramework_AppConstWrap.Register(L); LuaFramework_LuaHelperWrap.Register(L); LuaFramework_ByteBufferWrap.Register(L); LuaFramework_LuaBehaviourWrap.Register(L); LuaFramework_GameManagerWrap.Register(L); LuaFramework_LuaManagerWrap.Register(L); LuaFramework_PanelManagerWrap.Register(L); LuaFramework_SoundManagerWrap.Register(L); LuaFramework_TimerManagerWrap.Register(L); LuaFramework_ThreadManagerWrap.Register(L); LuaFramework_NetworkManagerWrap.Register(L); LuaFramework_ResourceManagerWrap.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_NotiData", System_Action_NotiData); L.RegFunction("Action_UnityEngine_Objects", System_Action_UnityEngine_Objects); 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.BlendWeights", LuaOpen_UnityEngine_BlendWeights, typeof(UnityEngine.BlendWeights)); 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); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); DebuggerWrap.Register(L); XPageWrap.Register(L); XPageMgrWrap.Register(L); EPageTypeWrap.Register(L); EPageModeWrap.Register(L); EventTriggerListenerWrap.Register(L); ViewWrap.Register(L); BaseWrap.Register(L); ManagerWrap.Register(L); L.BeginModule("UnityEngine"); UnityEngine_ComponentWrap.Register(L); UnityEngine_TransformWrap.Register(L); UnityEngine_MaterialWrap.Register(L); UnityEngine_LightWrap.Register(L); UnityEngine_RigidbodyWrap.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_MeshRendererWrap.Register(L); UnityEngine_ParticleEmitterWrap.Register(L); UnityEngine_ParticleRendererWrap.Register(L); UnityEngine_ParticleAnimatorWrap.Register(L); UnityEngine_BoxColliderWrap.Register(L); UnityEngine_MeshColliderWrap.Register(L); UnityEngine_SphereColliderWrap.Register(L); UnityEngine_CharacterControllerWrap.Register(L); UnityEngine_CapsuleColliderWrap.Register(L); UnityEngine_AnimationWrap.Register(L); UnityEngine_AnimationClipWrap.Register(L); UnityEngine_AnimationStateWrap.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_BlendWeightsWrap.Register(L); UnityEngine_RenderTextureWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); UnityEngine_EventSystems_EventTriggerWrap.Register(L); L.EndModule(); L.BeginModule("Events"); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.EndModule(); L.EndModule(); L.BeginModule("LuaFramework"); LuaFramework_UtilWrap.Register(L); LuaFramework_AppConstWrap.Register(L); LuaFramework_LuaHelperWrap.Register(L); LuaFramework_ByteBufferWrap.Register(L); LuaFramework_LuaBehaviourWrap.Register(L); LuaFramework_LuaManagerWrap.Register(L); LuaFramework_PanelManagerWrap.Register(L); LuaFramework_SoundManagerWrap.Register(L); LuaFramework_TimerManagerWrap.Register(L); LuaFramework_ThreadManagerWrap.Register(L); LuaFramework_NetworkManagerWrap.Register(L); LuaFramework_ResourceManagerWrap.Register(L); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.RegFunction("Action_UnityEngine_GameObject", System_Action_UnityEngine_GameObject); L.RegFunction("Action_NotiData", System_Action_NotiData); L.RegFunction("Action_UnityEngine_Objects", System_Action_UnityEngine_Objects); L.RegFunction("Action_UnityEngine_Object", System_Action_UnityEngine_Object); L.RegFunction("Func_string_UnityEngine_Object", System_Func_string_UnityEngine_Object); L.RegFunction("Action_string_System_Action_UnityEngine_Object", System_Action_string_System_Action_UnityEngine_Object); L.EndModule(); L.EndModule(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); LuaProfilerWrap.Register(L); TestUtilsWrap.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_YieldInstructionWrap.Register(L); UnityEngine_WaitForEndOfFrameWrap.Register(L); UnityEngine_WaitForFixedUpdateWrap.Register(L); UnityEngine_WaitForSecondsWrap.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_AudioBehaviourWrap.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("LowMemoryCallback", UnityEngine_Application_LowMemoryCallback); L.RegFunction("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback); 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("CSharpLua"); CSharpLua_BridgeMonoBehaviourWrap.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("Func_bool", System_Func_bool); L.RegFunction("Action_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation); 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.BlendWeights", LuaOpen_UnityEngine_BlendWeights, typeof(UnityEngine.BlendWeights)); 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); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); DebuggerWrap.Register(L); L.BeginModule("UnityEngine"); UnityEngine_ComponentWrap.Register(L); UnityEngine_BehaviourWrap.Register(L); UnityEngine_MonoBehaviourWrap.Register(L); UnityEngine_GameObjectWrap.Register(L); UnityEngine_TransformWrap.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_MaterialWrap.Register(L); UnityEngine_RendererWrap.Register(L); UnityEngine_WWWWrap.Register(L); UnityEngine_ScreenWrap.Register(L); UnityEngine_CameraWrap.Register(L); UnityEngine_CameraClearFlagsWrap.Register(L); UnityEngine_AudioClipWrap.Register(L); UnityEngine_AudioSourceWrap.Register(L); UnityEngine_AssetBundleWrap.Register(L); UnityEngine_ParticleSystemWrap.Register(L); UnityEngine_AsyncOperationWrap.Register(L); UnityEngine_LightWrap.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); L.BeginModule("Experimental"); L.BeginModule("Director"); UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("Events"); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.EndModule(); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.EndModule(); L.EndModule(); L.BeginPreLoad(); L.AddPreLoad("UnityEngine.MeshRenderer", LuaOpen_UnityEngine_MeshRenderer, typeof(UnityEngine.MeshRenderer)); L.AddPreLoad("UnityEngine.ParticleEmitter", LuaOpen_UnityEngine_ParticleEmitter, typeof(UnityEngine.ParticleEmitter)); L.AddPreLoad("UnityEngine.ParticleRenderer", LuaOpen_UnityEngine_ParticleRenderer, typeof(UnityEngine.ParticleRenderer)); L.AddPreLoad("UnityEngine.ParticleAnimator", LuaOpen_UnityEngine_ParticleAnimator, typeof(UnityEngine.ParticleAnimator)); 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.BlendWeights", LuaOpen_UnityEngine_BlendWeights, typeof(UnityEngine.BlendWeights)); 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); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); L.BeginModule("LaoHan"); L.BeginModule("Control"); LaoHan_Control_lhControlNetworkWrap.Register(L); L.EndModule(); L.BeginModule("Infrastruture"); LaoHan_Infrastruture_lhDebugWrap.Register(L); LaoHan_Infrastruture_lhResourcesWrap.Register(L); LaoHan_Infrastruture_lhObjectManagerWrap.Register(L); LaoHan_Infrastruture_EPoolTypeWrap.Register(L); LaoHan_Infrastruture_lhSceneManagerWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("UnityEngine"); UnityEngine_DebugWrap.Register(L); UnityEngine_ComponentWrap.Register(L); UnityEngine_MonoBehaviourWrap.Register(L); UnityEngine_GameObjectWrap.Register(L); UnityEngine_TransformWrap.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_MaterialWrap.Register(L); UnityEngine_RendererWrap.Register(L); UnityEngine_WWWWrap.Register(L); UnityEngine_ScreenWrap.Register(L); UnityEngine_CameraWrap.Register(L); UnityEngine_CameraClearFlagsWrap.Register(L); UnityEngine_AudioClipWrap.Register(L); UnityEngine_AudioSourceWrap.Register(L); UnityEngine_AssetBundleWrap.Register(L); UnityEngine_ParticleSystemWrap.Register(L); UnityEngine_AsyncOperationWrap.Register(L); UnityEngine_LightWrap.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_TextAssetWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); L.BeginModule("SceneManagement"); UnityEngine_SceneManagement_LoadSceneModeWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.RegFunction("Action_bool", System_Action_bool); L.RegFunction("Action_int_string_UnityEngine_Object", System_Action_int_string_UnityEngine_Object); L.RegFunction("Action_UnityEngine_Object", System_Action_UnityEngine_Object); L.RegFunction("Action_UnityEngine_GameObject", System_Action_UnityEngine_GameObject); L.RegFunction("Action_float", System_Action_float); L.EndModule(); L.EndModule(); L.BeginPreLoad(); L.AddPreLoad("UnityEngine.MeshRenderer", LuaOpen_UnityEngine_MeshRendererWrap, typeof(UnityEngine.MeshRenderer)); L.AddPreLoad("UnityEngine.ParticleEmitter", LuaOpen_UnityEngine_ParticleEmitterWrap, typeof(UnityEngine.ParticleEmitter)); L.AddPreLoad("UnityEngine.ParticleAnimator", LuaOpen_UnityEngine_ParticleAnimatorWrap, typeof(UnityEngine.ParticleAnimator)); L.AddPreLoad("UnityEngine.BoxCollider", LuaOpen_UnityEngine_BoxColliderWrap, typeof(UnityEngine.BoxCollider)); L.AddPreLoad("UnityEngine.MeshCollider", LuaOpen_UnityEngine_MeshColliderWrap, typeof(UnityEngine.MeshCollider)); L.AddPreLoad("UnityEngine.SphereCollider", LuaOpen_UnityEngine_SphereColliderWrap, typeof(UnityEngine.SphereCollider)); L.AddPreLoad("UnityEngine.CapsuleCollider", LuaOpen_UnityEngine_CapsuleColliderWrap, typeof(UnityEngine.CapsuleCollider)); L.AddPreLoad("UnityEngine.Animation", LuaOpen_UnityEngine_AnimationWrap, typeof(UnityEngine.Animation)); L.AddPreLoad("UnityEngine.AnimationClip", LuaOpen_UnityEngine_AnimationClipWrap, typeof(UnityEngine.AnimationClip)); L.AddPreLoad("UnityEngine.AnimationState", LuaOpen_UnityEngine_AnimationStateWrap, typeof(UnityEngine.AnimationState)); L.AddPreLoad("UnityEngine.RenderTexture", LuaOpen_UnityEngine_RenderTextureWrap, typeof(UnityEngine.RenderTexture)); L.AddPreLoad("UnityEngine.Rigidbody", LuaOpen_UnityEngine_RigidbodyWrap, typeof(UnityEngine.Rigidbody)); L.EndPreLoad(); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); LuaProfilerWrap.Register(L); UIPanelWrap.Register(L); UILabelWrap.Register(L); UIGridWrap.Register(L); TestWrap.Register(L); UIRectWrap.Register(L); UIWidgetWrap.Register(L); UIWidgetContainerWrap.Register(L); BaseWrap.Register(L); ManagerWrap.Register(L); L.BeginModule("LuaInterface"); LuaInterface_LuaInjectionStationWrap.Register(L); LuaInterface_InjectTypeWrap.Register(L); L.EndModule(); 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); 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("LowMemoryCallback", UnityEngine_Application_LowMemoryCallback); L.RegFunction("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback); 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("LuaFramework"); LuaFramework_UtilWrap.Register(L); LuaFramework_WrapGridWrap.Register(L); LuaFramework_AppConstWrap.Register(L); LuaFramework_LuaHelperWrap.Register(L); LuaFramework_ByteBufferWrap.Register(L); LuaFramework_LuaBehaviourWrap.Register(L); LuaFramework_GameManagerWrap.Register(L); LuaFramework_LuaManagerWrap.Register(L); LuaFramework_PanelManagerWrap.Register(L); LuaFramework_SoundManagerWrap.Register(L); LuaFramework_TimerManagerWrap.Register(L); LuaFramework_ThreadManagerWrap.Register(L); LuaFramework_NetworkManagerWrap.Register(L); LuaFramework_ResourceManagerWrap.Register(L); L.EndModule(); L.BeginModule("DigiSky"); L.BeginModule("AssetBundleKit"); DigiSky_AssetBundleKit_AbMgrWrap.Register(L); DigiSky_AssetBundleKit_ImgeMgrWrap.Register(L); L.EndModule(); 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_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation); L.RegFunction("Comparison_UnityEngine_Transform", System_Comparison_UnityEngine_Transform); L.RegFunction("Action_NotiData", System_Action_NotiData); L.EndModule(); L.BeginModule("UIPanel"); L.RegFunction("OnGeometryUpdated", UIPanel_OnGeometryUpdated); L.RegFunction("OnClippingMoved", UIPanel_OnClippingMoved); L.EndModule(); L.BeginModule("UIWidget"); L.RegFunction("OnDimensionsChanged", UIWidget_OnDimensionsChanged); L.RegFunction("OnPostFillCallback", UIWidget_OnPostFillCallback); L.RegFunction("HitCheck", UIWidget_HitCheck); L.EndModule(); L.BeginModule("UIDrawCall"); L.RegFunction("OnRenderCallback", UIDrawCall_OnRenderCallback); L.EndModule(); L.BeginModule("UIGrid"); L.RegFunction("OnReposition", UIGrid_OnReposition); 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.BlendWeights", LuaOpen_UnityEngine_BlendWeights, typeof(UnityEngine.BlendWeights)); 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); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); ToolsWrap.Register(L); NotiConstWrap.Register(L); ViewWrap.Register(L); BaseWrap.Register(L); L.BeginModule("UnityEngine"); UnityEngine_ComponentWrap.Register(L); UnityEngine_TransformWrap.Register(L); UnityEngine_MaterialWrap.Register(L); UnityEngine_LightWrap.Register(L); UnityEngine_RigidbodyWrap.Register(L); UnityEngine_CameraWrap.Register(L); UnityEngine_AudioSourceWrap.Register(L); UnityEngine_RectWrap.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); L.BeginModule("Experimental"); L.BeginModule("Director"); UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L); L.EndModule(); 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("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("LuaFramework"); LuaFramework_UtilWrap.Register(L); LuaFramework_AppConstWrap.Register(L); LuaFramework_LuaBehaviourWrap.Register(L); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.RegFunction("Func_string_bool", System_Func_string_bool); L.EndModule(); L.EndModule(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); UISpriteWrap.Register(L); UILabelWrap.Register(L); UIButtonWrap.Register(L); UIPanelWrap.Register(L); UIInputWrap.Register(L); UIToggleWrap.Register(L); UITableWrap.Register(L); UIGridWrap.Register(L); EventDelegateWrap.Register(L); UIEventListenerWrap.Register(L); UIBasicSpriteWrap.Register(L); UIWidgetWrap.Register(L); UIRectWrap.Register(L); UIButtonColorWrap.Register(L); UIWidgetContainerWrap.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); L.BeginModule("Experimental"); L.BeginModule("Director"); UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L); L.EndModule(); 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("LogCallback", UnityEngine_Application_LogCallback); L.RegFunction("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback); L.EndModule(); L.BeginModule("AudioClip"); L.RegFunction("PCMReaderCallback", UnityEngine_AudioClip_PCMReaderCallback); L.RegFunction("PCMSetPositionCallback", UnityEngine_AudioClip_PCMSetPositionCallback); L.EndModule(); L.EndModule(); L.BeginModule("LuaFramework"); LuaFramework_LuaBehaviourWrap.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("Comparison_UnityEngine_Transform", System_Comparison_UnityEngine_Transform); L.EndModule(); L.BeginModule("UIWidget"); L.RegFunction("OnDimensionsChanged", UIWidget_OnDimensionsChanged); L.RegFunction("OnPostFillCallback", UIWidget_OnPostFillCallback); L.RegFunction("HitCheck", UIWidget_HitCheck); L.EndModule(); L.BeginModule("UIDrawCall"); L.RegFunction("OnRenderCallback", UIDrawCall_OnRenderCallback); L.EndModule(); L.BeginModule("UIPanel"); L.RegFunction("OnGeometryUpdated", UIPanel_OnGeometryUpdated); L.RegFunction("OnClippingMoved", UIPanel_OnClippingMoved); L.EndModule(); L.BeginModule("UIInput"); L.RegFunction("OnValidate", UIInput_OnValidate); L.EndModule(); L.BeginModule("UIToggle"); L.RegFunction("Validate", UIToggle_Validate); L.EndModule(); L.BeginModule("UITable"); L.RegFunction("OnReposition", UITable_OnReposition); L.EndModule(); L.BeginModule("UIGrid"); L.RegFunction("OnReposition", UIGrid_OnReposition); L.EndModule(); L.BeginModule("EventDelegate"); L.RegFunction("Callback", EventDelegate_Callback); L.EndModule(); L.BeginModule("UIEventListener"); L.RegFunction("VoidDelegate", UIEventListener_VoidDelegate); L.RegFunction("BoolDelegate", UIEventListener_BoolDelegate); L.RegFunction("FloatDelegate", UIEventListener_FloatDelegate); L.RegFunction("VectorDelegate", UIEventListener_VectorDelegate); L.RegFunction("ObjectDelegate", UIEventListener_ObjectDelegate); L.RegFunction("KeyCodeDelegate", UIEventListener_KeyCodeDelegate); L.EndModule(); L.EndModule(); L.BeginPreLoad(); L.AddPreLoad("UnityEngine.MeshRenderer", LuaOpen_UnityEngine_MeshRenderer, typeof(UnityEngine.MeshRenderer)); L.AddPreLoad("UnityEngine.ParticleEmitter", LuaOpen_UnityEngine_ParticleEmitter, typeof(UnityEngine.ParticleEmitter)); L.AddPreLoad("UnityEngine.ParticleRenderer", LuaOpen_UnityEngine_ParticleRenderer, typeof(UnityEngine.ParticleRenderer)); L.AddPreLoad("UnityEngine.ParticleAnimator", LuaOpen_UnityEngine_ParticleAnimator, typeof(UnityEngine.ParticleAnimator)); 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.BlendWeights", LuaOpen_UnityEngine_BlendWeights, typeof(UnityEngine.BlendWeights)); 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); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); DebuggerWrap.Register(L); UIPanelWrap.Register(L); UILabelWrap.Register(L); UIGridWrap.Register(L); SpringPanelWrap.Register(L); UIScrollViewWrap.Register(L); UIScrollBarWrap.Register(L); UICenterOnChildWrap.Register(L); UIInputWrap.Register(L); UISpriteWrap.Register(L); TweenAlphaWrap.Register(L); TweenPositionWrap.Register(L); TweenScaleWrap.Register(L); UITextureWrap.Register(L); LoadingManagerWrap.Register(L); LuaUtilityManagerWrap.Register(L); UIRectWrap.Register(L); UIWidgetWrap.Register(L); UIWidgetContainerWrap.Register(L); UISliderWrap.Register(L); UIProgressBarWrap.Register(L); UIBasicSpriteWrap.Register(L); UITweenerWrap.Register(L); BaseWrap.Register(L); ManagerWrap.Register(L); L.BeginModule("UnityEngine"); UnityEngine_ComponentWrap.Register(L); UnityEngine_BehaviourWrap.Register(L); UnityEngine_MonoBehaviourWrap.Register(L); UnityEngine_GameObjectWrap.Register(L); UnityEngine_TransformWrap.Register(L); UnityEngine_SpaceWrap.Register(L); UnityEngine_CameraWrap.Register(L); UnityEngine_CameraClearFlagsWrap.Register(L); UnityEngine_MaterialWrap.Register(L); UnityEngine_RendererWrap.Register(L); UnityEngine_MeshRendererWrap.Register(L); UnityEngine_SkinnedMeshRendererWrap.Register(L); UnityEngine_LightWrap.Register(L); UnityEngine_LightTypeWrap.Register(L); UnityEngine_ParticleEmitterWrap.Register(L); UnityEngine_ParticleRendererWrap.Register(L); UnityEngine_ParticleAnimatorWrap.Register(L); UnityEngine_ParticleSystemWrap.Register(L); UnityEngine_PhysicsWrap.Register(L); UnityEngine_ColliderWrap.Register(L); UnityEngine_BoxColliderWrap.Register(L); UnityEngine_MeshColliderWrap.Register(L); UnityEngine_SphereColliderWrap.Register(L); UnityEngine_CharacterControllerWrap.Register(L); UnityEngine_AnimationWrap.Register(L); UnityEngine_AnimationClipWrap.Register(L); UnityEngine_TrackedReferenceWrap.Register(L); UnityEngine_AnimationStateWrap.Register(L); UnityEngine_QueueModeWrap.Register(L); UnityEngine_PlayModeWrap.Register(L); UnityEngine_AudioClipWrap.Register(L); UnityEngine_AudioSourceWrap.Register(L); UnityEngine_ApplicationWrap.Register(L); UnityEngine_InputWrap.Register(L); UnityEngine_KeyCodeWrap.Register(L); UnityEngine_ScreenWrap.Register(L); UnityEngine_TimeWrap.Register(L); UnityEngine_RenderSettingsWrap.Register(L); UnityEngine_SleepTimeoutWrap.Register(L); UnityEngine_AsyncOperationWrap.Register(L); UnityEngine_AssetBundleWrap.Register(L); UnityEngine_BlendWeightsWrap.Register(L); UnityEngine_QualitySettingsWrap.Register(L); UnityEngine_AnimationBlendModeWrap.Register(L); UnityEngine_RenderTextureWrap.Register(L); UnityEngine_RigidbodyWrap.Register(L); UnityEngine_CapsuleColliderWrap.Register(L); UnityEngine_WrapModeWrap.Register(L); UnityEngine_TextureWrap.Register(L); UnityEngine_ShaderWrap.Register(L); UnityEngine_Texture2DWrap.Register(L); UnityEngine_WWWWrap.Register(L); L.BeginModule("Events"); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.EndModule(); L.EndModule(); L.BeginModule("MyFrameWork"); MyFrameWork_UtilWrap.Register(L); MyFrameWork_AppConstWrap.Register(L); MyFrameWork_LuaHelperWrap.Register(L); MyFrameWork_ByteBufferWrap.Register(L); MyFrameWork_LuaBehaviourWrap.Register(L); MyFrameWork_LuaDragWrap.Register(L); MyFrameWork_EventDispatcherWrap.Register(L); MyFrameWork_GameManagerWrap.Register(L); MyFrameWork_LuaManagerWrap.Register(L); MyFrameWork_UIMgrWrap.Register(L); MyFrameWork_BaseUIWrap.Register(L); MyFrameWork_MusicManagerWrap.Register(L); MyFrameWork_TimerManagerWrap.Register(L); MyFrameWork_ThreadManagerWrap.Register(L); MyFrameWork_NetworkManagerWrap.Register(L); MyFrameWork_FightDataManagerWrap.Register(L); MyFrameWork_ResourceMgrWrap.Register(L); MyFrameWork_E_UIStyleWrap.Register(L); MyFrameWork_E_UITypeWrap.Register(L); MyFrameWork_E_UIMaskStyleWrap.Register(L); MyFrameWork_E_LayerTypeWrap.Register(L); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.EndModule(); L.EndModule(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); LuaProfilerWrap.Register(L); TweenUtilsWrap.Register(L); ViewWrap.Register(L); BaseWrap.Register(L); ManagerWrap.Register(L); L.BeginModule("UnityEngine"); UnityEngine_ComponentWrap.Register(L); UnityEngine_TransformWrap.Register(L); UnityEngine_MaterialWrap.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_RenderSettingsWrap.Register(L); UnityEngine_ResourcesWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_AudioBehaviourWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); 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("LuaFramework"); LuaFramework_UtilWrap.Register(L); LuaFramework_AppConstWrap.Register(L); LuaFramework_LuaHelperWrap.Register(L); LuaFramework_ByteBufferWrap.Register(L); LuaFramework_LuaBehaviourWrap.Register(L); LuaFramework_GameManagerWrap.Register(L); LuaFramework_LuaManagerWrap.Register(L); LuaFramework_PanelManagerWrap.Register(L); LuaFramework_SoundManagerWrap.Register(L); LuaFramework_TimerManagerWrap.Register(L); LuaFramework_ThreadManagerWrap.Register(L); LuaFramework_NetworkManagerWrap.Register(L); LuaFramework_ResourceManagerWrap.Register(L); 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_LuaUIHelperWrap.Register(L); FairyGUI_GLuaComponentWrap.Register(L); FairyGUI_GLuaLabelWrap.Register(L); FairyGUI_GLuaButtonWrap.Register(L); FairyGUI_GLuaProgressBarWrap.Register(L); FairyGUI_GLuaSliderWrap.Register(L); FairyGUI_GLuaComboBoxWrap.Register(L); FairyGUI_LuaWindowWrap.Register(L); 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.BeginModule("UIPackage"); L.RegFunction("LoadResource", FairyGUI_UIPackage_LoadResource); L.RegFunction("CreateObjectCallback", FairyGUI_UIPackage_CreateObjectCallback); L.EndModule(); L.BeginModule("GObjectPool"); L.RegFunction("InitCallbackDelegate", FairyGUI_GObjectPool_InitCallbackDelegate); L.EndModule(); 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("Func_bool", System_Func_bool); L.RegFunction("Action_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation); L.RegFunction("Action_NotiData", System_Action_NotiData); 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.BlendWeights", LuaOpen_UnityEngine_BlendWeights, typeof(UnityEngine.BlendWeights)); 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); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); DebuggerWrap.Register(L); GameManagerWrap.Register(L); UIManagerWrap.Register(L); ResManagerWrap.Register(L); NetworkManagerWrap.Register(L); LogWrap.Register(L); LuaBehaviourWrap.Register(L); ByteBufferWrap.Register(L); UtilWrap.Register(L); L.BeginModule("UnityEngine"); UnityEngine_ComponentWrap.Register(L); UnityEngine_TransformWrap.Register(L); UnityEngine_MaterialWrap.Register(L); UnityEngine_LightWrap.Register(L); UnityEngine_RigidbodyWrap.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_MeshRendererWrap.Register(L); UnityEngine_ParticleEmitterWrap.Register(L); UnityEngine_ParticleRendererWrap.Register(L); UnityEngine_ParticleAnimatorWrap.Register(L); UnityEngine_BoxColliderWrap.Register(L); UnityEngine_MeshColliderWrap.Register(L); UnityEngine_SphereColliderWrap.Register(L); UnityEngine_CharacterControllerWrap.Register(L); UnityEngine_CapsuleColliderWrap.Register(L); UnityEngine_AnimationWrap.Register(L); UnityEngine_AnimationClipWrap.Register(L); UnityEngine_AnimationStateWrap.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_BlendWeightsWrap.Register(L); UnityEngine_RenderTextureWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); L.EndModule(); L.BeginModule("Experimental"); L.BeginModule("Director"); UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L); 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.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.RegFunction("Action_System_IO_Stream", System_Action_System_IO_Stream); L.EndModule(); L.EndModule(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); DebuggerWrap.Register(L); L.BeginModule("UnityEngine"); UnityEngine_ComponentWrap.Register(L); UnityEngine_BehaviourWrap.Register(L); UnityEngine_MonoBehaviourWrap.Register(L); UnityEngine_GameObjectWrap.Register(L); UnityEngine_TransformWrap.Register(L); UnityEngine_SpaceWrap.Register(L); UnityEngine_CameraWrap.Register(L); UnityEngine_CameraClearFlagsWrap.Register(L); UnityEngine_MaterialWrap.Register(L); UnityEngine_RendererWrap.Register(L); UnityEngine_MeshRendererWrap.Register(L); UnityEngine_SkinnedMeshRendererWrap.Register(L); UnityEngine_LightWrap.Register(L); UnityEngine_LightTypeWrap.Register(L); UnityEngine_ParticleEmitterWrap.Register(L); UnityEngine_ParticleRendererWrap.Register(L); UnityEngine_ParticleAnimatorWrap.Register(L); UnityEngine_ParticleSystemWrap.Register(L); UnityEngine_PhysicsWrap.Register(L); UnityEngine_ColliderWrap.Register(L); UnityEngine_BoxColliderWrap.Register(L); UnityEngine_MeshColliderWrap.Register(L); UnityEngine_SphereColliderWrap.Register(L); UnityEngine_CharacterControllerWrap.Register(L); UnityEngine_AnimationWrap.Register(L); UnityEngine_AnimationClipWrap.Register(L); UnityEngine_TrackedReferenceWrap.Register(L); UnityEngine_AnimationStateWrap.Register(L); UnityEngine_QueueModeWrap.Register(L); UnityEngine_PlayModeWrap.Register(L); UnityEngine_AudioClipWrap.Register(L); UnityEngine_AudioSourceWrap.Register(L); UnityEngine_ApplicationWrap.Register(L); UnityEngine_InputWrap.Register(L); UnityEngine_KeyCodeWrap.Register(L); UnityEngine_ScreenWrap.Register(L); UnityEngine_TimeWrap.Register(L); UnityEngine_RenderSettingsWrap.Register(L); UnityEngine_SleepTimeoutWrap.Register(L); UnityEngine_AsyncOperationWrap.Register(L); UnityEngine_AssetBundleWrap.Register(L); UnityEngine_BlendWeightsWrap.Register(L); UnityEngine_QualitySettingsWrap.Register(L); UnityEngine_AnimationBlendModeWrap.Register(L); UnityEngine_RenderTextureWrap.Register(L); UnityEngine_RigidbodyWrap.Register(L); UnityEngine_CapsuleColliderWrap.Register(L); UnityEngine_WrapModeWrap.Register(L); UnityEngine_TextureWrap.Register(L); UnityEngine_ShaderWrap.Register(L); UnityEngine_Texture2DWrap.Register(L); UnityEngine_WWWWrap.Register(L); L.EndModule(); L.EndModule(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); DebuggerWrap.Register(L); LuaBehaviourWrap.Register(L); GameResFactoryWrap.Register(L); BaseWrap.Register(L); ManagerWrap.Register(L); ByteBufferWrap.Register(L); CSharp_TimeWrap.Register(L); ByteArrayWrap.Register(L); MemBlockWrap.Register(L); NetworkManagerWrap.Register(L); SocketClientWrap.Register(L); GenerateMd5Wrap.Register(L); LuaHelperWrap.Register(L); L.BeginModule("DG"); L.BeginModule("Tweening"); DG_Tweening_DOTweenWrap.Register(L); DG_Tweening_TweenWrap.Register(L); DG_Tweening_SequenceWrap.Register(L); DG_Tweening_TweenerWrap.Register(L); DG_Tweening_LoopTypeWrap.Register(L); DG_Tweening_PathModeWrap.Register(L); DG_Tweening_PathTypeWrap.Register(L); L.BeginModule("Core"); L.RegFunction("DOGetter_float", DG_Tweening_Core_DOGetter_float); L.RegFunction("DOSetter_float", DG_Tweening_Core_DOSetter_float); L.RegFunction("DOGetter_double", DG_Tweening_Core_DOGetter_double); L.RegFunction("DOSetter_double", DG_Tweening_Core_DOSetter_double); L.RegFunction("DOGetter_int", DG_Tweening_Core_DOGetter_int); L.RegFunction("DOSetter_int", DG_Tweening_Core_DOSetter_int); L.RegFunction("DOGetter_uint", DG_Tweening_Core_DOGetter_uint); L.RegFunction("DOSetter_uint", DG_Tweening_Core_DOSetter_uint); L.RegFunction("DOGetter_long", DG_Tweening_Core_DOGetter_long); L.RegFunction("DOSetter_long", DG_Tweening_Core_DOSetter_long); L.RegFunction("DOGetter_ulong", DG_Tweening_Core_DOGetter_ulong); L.RegFunction("DOSetter_ulong", DG_Tweening_Core_DOSetter_ulong); L.RegFunction("DOGetter_string", DG_Tweening_Core_DOGetter_string); L.RegFunction("DOSetter_string", DG_Tweening_Core_DOSetter_string); L.RegFunction("DOGetter_UnityEngine_Vector2", DG_Tweening_Core_DOGetter_UnityEngine_Vector2); L.RegFunction("DOSetter_UnityEngine_Vector2", DG_Tweening_Core_DOSetter_UnityEngine_Vector2); L.RegFunction("DOGetter_UnityEngine_Vector3", DG_Tweening_Core_DOGetter_UnityEngine_Vector3); L.RegFunction("DOSetter_UnityEngine_Vector3", DG_Tweening_Core_DOSetter_UnityEngine_Vector3); L.RegFunction("DOGetter_UnityEngine_Vector4", DG_Tweening_Core_DOGetter_UnityEngine_Vector4); L.RegFunction("DOSetter_UnityEngine_Vector4", DG_Tweening_Core_DOSetter_UnityEngine_Vector4); L.RegFunction("DOGetter_UnityEngine_Quaternion", DG_Tweening_Core_DOGetter_UnityEngine_Quaternion); L.RegFunction("DOSetter_UnityEngine_Quaternion", DG_Tweening_Core_DOSetter_UnityEngine_Quaternion); L.RegFunction("DOGetter_UnityEngine_Color", DG_Tweening_Core_DOGetter_UnityEngine_Color); L.RegFunction("DOSetter_UnityEngine_Color", DG_Tweening_Core_DOSetter_UnityEngine_Color); L.RegFunction("DOGetter_UnityEngine_Rect", DG_Tweening_Core_DOGetter_UnityEngine_Rect); L.RegFunction("DOSetter_UnityEngine_Rect", DG_Tweening_Core_DOSetter_UnityEngine_Rect); L.RegFunction("DOGetter_UnityEngine_RectOffset", DG_Tweening_Core_DOGetter_UnityEngine_RectOffset); L.RegFunction("DOSetter_UnityEngine_RectOffset", DG_Tweening_Core_DOSetter_UnityEngine_RectOffset); L.EndModule(); L.EndModule(); L.EndModule(); L.BeginModule("UnityEngine"); UnityEngine_ComponentWrap.Register(L); UnityEngine_TransformWrap.Register(L); UnityEngine_LightWrap.Register(L); UnityEngine_MaterialWrap.Register(L); UnityEngine_RigidbodyWrap.Register(L); UnityEngine_CameraWrap.Register(L); UnityEngine_AudioSourceWrap.Register(L); UnityEngine_LineRendererWrap.Register(L); UnityEngine_TrailRendererWrap.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_MeshRendererWrap.Register(L); UnityEngine_ParticleEmitterWrap.Register(L); UnityEngine_ParticleRendererWrap.Register(L); UnityEngine_ParticleAnimatorWrap.Register(L); UnityEngine_BoxColliderWrap.Register(L); UnityEngine_MeshColliderWrap.Register(L); UnityEngine_SphereColliderWrap.Register(L); UnityEngine_CharacterControllerWrap.Register(L); UnityEngine_CapsuleColliderWrap.Register(L); UnityEngine_AnimationWrap.Register(L); UnityEngine_AnimationClipWrap.Register(L); UnityEngine_AnimationStateWrap.Register(L); UnityEngine_AnimationBlendModeWrap.Register(L); UnityEngine_QueueModeWrap.Register(L); UnityEngine_PlayModeWrap.Register(L); UnityEngine_WrapModeWrap.Register(L); UnityEngine_ProfilerWrap.Register(L); UnityEngine_CanvasGroupWrap.Register(L); UnityEngine_QualitySettingsWrap.Register(L); UnityEngine_RenderSettingsWrap.Register(L); UnityEngine_BlendWeightsWrap.Register(L); UnityEngine_RenderTextureWrap.Register(L); UnityEngine_SpriteWrap.Register(L); UnityEngine_RectWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_RectTransformUtilityWrap.Register(L); UnityEngine_CanvasWrap.Register(L); L.BeginModule("EventSystems"); UnityEngine_EventSystems_PointerEventDataWrap.Register(L); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); UnityEngine_EventSystems_BaseRaycasterWrap.Register(L); L.EndModule(); L.BeginModule("Experimental"); L.BeginModule("Director"); UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("UI"); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); UnityEngine_UI_ToggleGroupWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_LayoutGroupWrap.Register(L); UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.Register(L); UnityEngine_UI_VerticalLayoutGroupWrap.Register(L); UnityEngine_UI_HorizontalLayoutGroupWrap.Register(L); UnityEngine_UI_ContentSizeFitterWrap.Register(L); UnityEngine_UI_DropdownWrap.Register(L); UnityEngine_UI_MaskWrap.Register(L); UnityEngine_UI_RectMask2DWrap.Register(L); UnityEngine_UI_LayoutElementWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_ScrollbarWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_GraphicRaycasterWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_LoopScrollRectWrap.Register(L); UnityEngine_UI_LoopVerticalScrollRectWrap.Register(L); UnityEngine_UI_LoopHorizontalScrollRectWrap.Register(L); L.EndModule(); L.BeginModule("Events"); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.EndModule(); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.RegFunction("Action_float", System_Action_float); L.RegFunction("Action_float_float", System_Action_float_float); L.RegFunction("Action_float_object", System_Action_float_object); L.RegFunction("Action_UnityEngine_Vector2", System_Action_UnityEngine_Vector2); L.RegFunction("Action_UnityEngine_Vector3", System_Action_UnityEngine_Vector3); L.RegFunction("Action_UnityEngine_Vector3_object", System_Action_UnityEngine_Vector3_object); L.RegFunction("Action_UnityEngine_Color", System_Action_UnityEngine_Color); L.RegFunction("Action_object", System_Action_object); L.EndModule(); L.EndModule(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); DebuggerWrap.Register(L); LuaBehaviourWrap.Register(L); GameResFactoryWrap.Register(L); BaseWrap.Register(L); ManagerWrap.Register(L); ByteBufferWrap.Register(L); NetworkManagerWrap.Register(L); LuaHelperWrap.Register(L); LeanTweenTypeWrap.Register(L); LTDescrImplWrap.Register(L); LTBezierWrap.Register(L); LTBezierPathWrap.Register(L); LTEventWrap.Register(L); LTSplineWrap.Register(L); LeanTweenWrap.Register(L); LeanAudioWrap.Register(L); L.BeginModule("UnityEngine"); UnityEngine_ComponentWrap.Register(L); UnityEngine_BehaviourWrap.Register(L); UnityEngine_MonoBehaviourWrap.Register(L); UnityEngine_GameObjectWrap.Register(L); UnityEngine_TransformWrap.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_MaterialWrap.Register(L); UnityEngine_RendererWrap.Register(L); UnityEngine_WWWWrap.Register(L); UnityEngine_ScreenWrap.Register(L); UnityEngine_CameraWrap.Register(L); UnityEngine_CameraClearFlagsWrap.Register(L); UnityEngine_AudioClipWrap.Register(L); UnityEngine_AudioSourceWrap.Register(L); UnityEngine_AssetBundleWrap.Register(L); UnityEngine_ParticleSystemWrap.Register(L); UnityEngine_AsyncOperationWrap.Register(L); UnityEngine_LightWrap.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_SpriteWrap.Register(L); UnityEngine_RectWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_RectTransformUtilityWrap.Register(L); UnityEngine_CanvasWrap.Register(L); L.BeginModule("Experimental"); L.BeginModule("Director"); UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("UI"); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); UnityEngine_UI_ToggleGroupWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_VerticalLayoutGroupWrap.Register(L); UnityEngine_UI_HorizontalLayoutGroupWrap.Register(L); UnityEngine_UI_ContentSizeFitterWrap.Register(L); UnityEngine_UI_DropdownWrap.Register(L); UnityEngine_UI_MaskWrap.Register(L); UnityEngine_UI_LayoutElementWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_ScrollbarWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_GraphicRaycasterWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_LoopScrollRectWrap.Register(L); UnityEngine_UI_LoopVerticalScrollRectWrap.Register(L); UnityEngine_UI_LoopHorizontalScrollRectWrap.Register(L); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); L.EndModule(); L.BeginModule("Events"); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.EndModule(); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.RegFunction("Action_float", System_Action_float); L.RegFunction("Action_float_float", System_Action_float_float); L.RegFunction("Action_float_object", System_Action_float_object); L.RegFunction("Action_UnityEngine_Vector2", System_Action_UnityEngine_Vector2); L.RegFunction("Action_UnityEngine_Vector3", System_Action_UnityEngine_Vector3); L.RegFunction("Action_UnityEngine_Vector3_object", System_Action_UnityEngine_Vector3_object); L.RegFunction("Action_UnityEngine_Color", System_Action_UnityEngine_Color); L.RegFunction("Action_object", System_Action_object); L.RegFunction("Action_LTEvent", System_Action_LTEvent); L.EndModule(); L.EndModule(); L.BeginPreLoad(); L.AddPreLoad("UnityEngine.MeshRenderer", LuaOpen_UnityEngine_MeshRenderer, typeof(UnityEngine.MeshRenderer)); L.AddPreLoad("UnityEngine.ParticleEmitter", LuaOpen_UnityEngine_ParticleEmitter, typeof(UnityEngine.ParticleEmitter)); L.AddPreLoad("UnityEngine.ParticleRenderer", LuaOpen_UnityEngine_ParticleRenderer, typeof(UnityEngine.ParticleRenderer)); L.AddPreLoad("UnityEngine.ParticleAnimator", LuaOpen_UnityEngine_ParticleAnimator, typeof(UnityEngine.ParticleAnimator)); 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.BlendWeights", LuaOpen_UnityEngine_BlendWeights, typeof(UnityEngine.BlendWeights)); 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); }