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("UnityEngine"); UnityEngine_Collision2DWrap.Register(L); 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); UnityEngine_ThreadPriorityWrap.Register(L); UnityEngine_AudioBehaviourWrap.Register(L); L.BeginModule("SceneManagement"); UnityEngine_SceneManagement_SceneManagerWrap.Register(L); L.EndModule(); L.BeginModule("Playables"); UnityEngine_Playables_PlayableWrap.Register(L); 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.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_LoadSceneMode", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_LoadSceneMode); L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene); L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene); 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("LuaInterface"); LuaInterface_LuaInjectionStationWrap.Register(L); LuaInterface_InjectTypeWrap.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("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("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); TweenUtilsWrap.Register(L); EffectRenderObjManagerWrap.Register(L); EffectRenderObjWrap.Register(L); EffectControllerWrap.Register(L); NodeWrap.Register(L); GlobalDispatcherWrap.Register(L); LayerTagWrap.Register(L); LayersMgrWrap.Register(L); GSpriteWrap.Register(L); UBBParserExtensionWrap.Register(L); BaseWindowWrap.Register(L); CameraControllerWrap.Register(L); LuaBindSceneObjWrap.Register(L); CanYingWrap.Register(L); DrawUtilsWrap.Register(L); EndianWrap.Register(L); NormalCameraControllerWrap.Register(L); MicroPhoneInputWrap.Register(L); PayMgrWrap.Register(L); SdkToIOSWrap.Register(L); DeviceInfoWrap.Register(L); SceneObjTriggerWrap.Register(L); ViewWrap.Register(L); BaseWrap.Register(L); ManagerWrap.Register(L); MonoSingleton_LuaFramework_NetworkManagerWrap.Register(L); MonoSingleton_LayersMgrWrap.Register(L); MonoSingleton_PayMgrWrap.Register(L); MonoSingleton_SdkToIOSWrap.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_RectTransformWrap.Register(L); UnityEngine_Matrix4x4Wrap.Register(L); UnityEngine_PlayerPrefsWrap.Register(L); UnityEngine_ControllerColliderHitWrap.Register(L); UnityEngine_AnimatorStateInfoWrap.Register(L); UnityEngine_NavMeshPathStatusWrap.Register(L); UnityEngine_NavMeshAgentWrap.Register(L); L.BeginModule("Experimental"); L.BeginModule("Director"); UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("SceneManagement"); UnityEngine_SceneManagement_LoadSceneModeWrap.Register(L); UnityEngine_SceneManagement_SceneManagerWrap.Register(L); UnityEngine_SceneManagement_SceneWrap.Register(L); L.EndModule(); L.BeginModule("UI"); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_RawImageWrap.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_LoaderManagerWrap.Register(L); LuaFramework_SoundManagerWrap.Register(L); LuaFramework_TimerManagerWrap.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_PlayStateWrap.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); FairyGUI_GoWrapperWrap.Register(L); FairyGUI_TreeViewWrap.Register(L); FairyGUI_TreeNodeWrap.Register(L); FairyGUI_PageOptionWrap.Register(L); FairyGUI_UIPanelWrap.Register(L); FairyGUI_UIPainterWrap.Register(L); FairyGUI_UIObjectFactoryWrap.Register(L); FairyGUI_UIContentScalerWrap.Register(L); FairyGUI_MarginWrap.Register(L); FairyGUI_NTextureWrap.Register(L); FairyGUI_UIConfigWrap.Register(L); FairyGUI_AutoSizeTypeWrap.Register(L); FairyGUI_ScrollTypeWrap.Register(L); FairyGUI_AlignTypeWrap.Register(L); FairyGUI_VertAlignTypeWrap.Register(L); FairyGUI_OverflowTypeWrap.Register(L); FairyGUI_FillTypeWrap.Register(L); FairyGUI_ListLayoutTypeWrap.Register(L); L.RegFunction("EventCallback0", FairyGUI_EventCallback0); L.RegFunction("EventCallback1", FairyGUI_EventCallback1); L.RegFunction("PlayCompleteCallback", FairyGUI_PlayCompleteCallback); L.RegFunction("TransitionHook", FairyGUI_TransitionHook); L.RegFunction("ListItemRenderer", FairyGUI_ListItemRenderer); L.RegFunction("ListItemProvider", FairyGUI_ListItemProvider); L.RegFunction("TimerCallback", FairyGUI_TimerCallback); L.BeginModule("Utils"); FairyGUI_Utils_UBBParserWrap.Register(L); L.EndModule(); 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.BeginModule("TreeView"); L.RegFunction("TreeNodeCreateCellDelegate", FairyGUI_TreeView_TreeNodeCreateCellDelegate); L.RegFunction("TreeNodeRenderDelegate", FairyGUI_TreeView_TreeNodeRenderDelegate); L.RegFunction("TreeNodeWillExpandDelegate", FairyGUI_TreeView_TreeNodeWillExpandDelegate); L.EndModule(); L.EndModule(); L.BeginModule("DG"); L.BeginModule("Tweening"); DG_Tweening_SequenceWrap.Register(L); DG_Tweening_EaseWrap.Register(L); DG_Tweening_TweenWrap.Register(L); L.BeginModule("Core"); DG_Tweening_Core_ABSSequentiableWrap.Register(L); L.EndModule(); 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("Action_string", System_Action_string); L.RegFunction("Action_float", System_Action_float); L.RegFunction("Action_UnityEngine_Object", System_Action_UnityEngine_Object); L.BeginModule("Collections"); System_Collections_QueueWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("EffectRenderObj"); L.RegFunction("LoadComCallBack", EffectRenderObj_LoadComCallBack); 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); 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("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_PlayStateWrap.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); 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.EndModule(); L.BeginModule("RPGGame"); RPGGame_UIWindowWrap.Register(L); 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); LuaInterface_DebuggerWrap.Register(L); UIPanelWrap.Register(L); UILabelWrap.Register(L); UIInputWrap.Register(L); UIGridWrap.Register(L); NetworkManagerV2Wrap.Register(L); LoadMgrWrap.Register(L); UIEventListenerWrap.Register(L); ControllerWrap.Register(L); TweenUtilsWrap.Register(L); UIRectWrap.Register(L); UIWidgetWrap.Register(L); UIWidgetContainerWrap.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_CameraWrap.Register(L); UnityEngine_AudioSourceWrap.Register(L); UnityEngine_LineRendererWrap.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); L.BeginModule("Events"); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.EndModule(); L.BeginModule("Application"); 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_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_GObjectWrap.Register(L); FairyGUI_GGraphWrap.Register(L); FairyGUI_GGroupWrap.Register(L); FairyGUI_GImageWrap.Register(L); FairyGUI_GLoaderWrap.Register(L); FairyGUI_PlayStateWrap.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("EventCallback0", FairyGUI_EventCallback0); L.RegFunction("EventCallback1", FairyGUI_EventCallback1); 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("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("UIInput"); L.RegFunction("OnValidate", UIInput_OnValidate); L.EndModule(); L.BeginModule("UIGrid"); L.RegFunction("OnReposition", UIGrid_OnReposition); 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.BeginModule("testBehaviour"); L.RegFunction("VoidDelegate", testBehaviour_VoidDelegate); 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.AddPreLoad("testBehaviour", LuaOpen_testBehaviour, typeof(testBehaviour)); L.EndPreLoad(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }