//示例方式,正常导出无需手写下面代码 void BindMap(LuaState L) { L.BeginModule(null); TestAccountWrap.Register(L); L.BeginModule("System"); L.BeginModule("Collections"); L.BeginModule("Generic"); System_Collections_Generic_Dictionary_int_TestAccountWrap.Register(L); System_Collections_Generic_KeyValuePair_int_TestAccountWrap.Register(L); L.EndModule(); L.EndModule(); L.EndModule(); L.EndModule(); }
public static void Register(LuaState state, MonoBehaviour behaviour) { state.BeginModule(null); state.RegFunction("WaitForSeconds", WaitForSeconds); state.RegFunction("WaitForFixedUpdate", WaitForFixedUpdate); state.RegFunction("WaitForEndOfFrame", WaitForEndOfFrame); state.RegFunction("Yield", Yield); state.EndModule(); mb = behaviour; }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_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_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_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_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.BeginModule("InputField"); L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput); L.EndModule(); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); UnityEngine_EventSystems_BaseRaycasterWrap.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.BeginModule("Canvas"); L.RegFunction("WillRenderCanvases", UnityEngine_Canvas_WillRenderCanvases); 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_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(); 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); BaseWrap.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_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_RigidbodyWrap.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("LuaFramework"); LuaFramework_UtilWrap.Register(L); LuaFramework_AppConstWrap.Register(L); LuaFramework_LuaHelperWrap.Register(L); LuaFramework_ByteBufferWrap.Register(L); LuaFramework_LuaComponentWrap.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("Action_NotiData", System_Action_NotiData); 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); GloablDefineWrap.Register(L); LuaInterface_DebuggerWrap.Register(L); LuaProfilerWrap.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_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("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback); L.RegFunction("LowMemoryCallback", UnityEngine_Application_LowMemoryCallback); L.RegFunction("LogCallback", UnityEngine_Application_LogCallback); L.EndModule(); L.BeginModule("AudioClip"); L.RegFunction("PCMReaderCallback", UnityEngine_AudioClip_PCMReaderCallback); L.RegFunction("PCMSetPositionCallback", UnityEngine_AudioClip_PCMSetPositionCallback); L.EndModule(); L.EndModule(); L.BeginModule("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); 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); UnityEngine_SpriteWrap.Register(L); UnityEngine_Color32Wrap.Register(L); L.BeginModule("SceneManagement"); UnityEngine_SceneManagement_SceneManagerWrap.Register(L); L.EndModule(); L.BeginModule("UI"); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_RawImageWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_ScrollbarWrap.Register(L); UnityEngine_UI_GridLayoutGroupWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_ToggleGroupWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_LayoutGroupWrap.Register(L); L.BeginModule("InputField"); L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput); L.EndModule(); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); L.EndModule(); L.BeginModule("Events"); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.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("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.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_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); LuaInterface_DebuggerWrap.Register(L); LuaProfilerWrap.Register(L); TweenUtilsWrap.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_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("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); 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.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); }
void Bind(LuaState state) { state.BeginModule(null); TestProtolWrap.Register(state); state.EndModule(); }
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); 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); L.BeginModule("UnityEngine"); UnityEngine_GameObjectWrap.Register(L); UnityEngine_Texture2DWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_SpriteRendererWrap.Register(L); UnityEngine_TextureWrap.Register(L); UnityEngine_MonoBehaviourWrap.Register(L); UnityEngine_BehaviourWrap.Register(L); UnityEngine_ComponentWrap.Register(L); UnityEngine_TransformWrap.Register(L); UnityEngine_RendererWrap.Register(L); UnityEngine_MaterialWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); L.EndModule(); L.BeginModule("Playables"); UnityEngine_Playables_PlayableDirectorWrap.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("RectTransform"); L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties); L.EndModule(); L.EndModule(); L.BeginModule("TMPro"); TMPro_TextAlignmentOptionsWrap.Register(L); L.EndModule(); L.BeginModule("Nova"); Nova_AdvancedDialogueHelperWrap.Register(L); Nova_ActionAnimationPropertyWrap.Register(L); Nova_AnimationEntryWrap.Register(L); Nova_CameraSizeAnimationPropertyWrap.Register(L); Nova_ColorAnimationPropertyWrap.Register(L); Nova_UseRelativeValueWrap.Register(L); Nova_MaterialFloatAnimationPropertyWrap.Register(L); Nova_NovaAnimationWrap.Register(L); Nova_PositionAnimationPropertyWrap.Register(L); Nova_RotationAnimationPropertyWrap.Register(L); Nova_ScaleAnimationPropertyWrap.Register(L); Nova_TimeAnimationPropertyWrap.Register(L); Nova_VolumeAnimationPropertyWrap.Register(L); Nova_AssetCacheTypeWrap.Register(L); Nova_AssetLoaderWrap.Register(L); Nova_I18nWrap.Register(L); Nova_I18nHelperWrap.Register(L); Nova_InputHelperWrap.Register(L); Nova_ScriptDialogueEntryParserWrap.Register(L); Nova_ScriptLoaderWrap.Register(L); Nova_MaterialPoolComponentWrap.Register(L); Nova_PostProcessingWrap.Register(L); Nova_RestorableMaterialWrap.Register(L); Nova_VariablesWrap.Register(L); Nova_AutoVoiceConfigsWrap.Register(L); Nova_CameraOverlayMaskWrap.Register(L); Nova_CheckpointHelperWrap.Register(L); Nova_AudioControllerWrap.Register(L); Nova_CameraControllerWrap.Register(L); Nova_CharacterColorWrap.Register(L); Nova_CharacterControllerWrap.Register(L); Nova_MeshControllerWrap.Register(L); Nova_SoundControllerWrap.Register(L); Nova_SpriteControllerWrap.Register(L); Nova_TimelineControllerWrap.Register(L); Nova_RenderQueueOverriderWrap.Register(L); Nova_ScreenCapturerWrap.Register(L); Nova_BGMUnlockHelperWrap.Register(L); Nova_AvatarControllerWrap.Register(L); Nova_DialogueBoxStateWrap.Register(L); Nova_DialogueBoxControllerWrap.Register(L); Nova_DialogueBoxColorWrap.Register(L); Nova_FloatBaseAnimationPropertyWrap.Register(L); Nova_LazyComputableAnimationProperty_float_floatWrap.Register(L); Nova_LazyComputableAnimationProperty_UnityEngine_Color_UnityEngine_ColorWrap.Register(L); Nova_LazyComputableAnimationProperty_UnityEngine_Vector3_UnityEngine_Vector3Wrap.Register(L); Nova_LazyComputableAnimationProperty_UnityEngine_Quaternion_UnityEngine_QuaternionWrap.Register(L); Nova_CompositeSpriteControllerBaseWrap.Register(L); Nova_ViewControllerBaseWrap.Register(L); L.BeginModule("CharacterColor"); Nova_CharacterColor_TypeWrap.Register(L); L.EndModule(); L.BeginModule("DialogueBoxController"); Nova_DialogueBoxController_DialogueUpdateModeWrap.Register(L); L.EndModule(); L.BeginModule("DialogueBoxColor"); Nova_DialogueBoxColor_TypeWrap.Register(L); L.EndModule(); L.BeginModule("AnimationEntry"); L.RegFunction("EasingFunction", Nova_AnimationEntry_EasingFunction); L.EndModule(); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); 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("Predicate_int", System_Predicate_int); L.RegFunction("Action_UnityEngine_Playables_PlayableDirector", System_Action_UnityEngine_Playables_PlayableDirector); 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); UIPanelWrap.Register(L); UILabelWrap.Register(L); UIGridWrap.Register(L); UtilWrap.Register(L); WrapGridWrap.Register(L); AppConstWrap.Register(L); UIRectWrap.Register(L); UIWidgetWrap.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_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); 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.RegFunction("Comparison_UnityEngine_Transform", System_Comparison_UnityEngine_Transform); L.EndModule(); L.EndModule(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }
void Bind(LuaState state) { state.BeginModule(null); TestExportWrap.Register(state); state.BeginModule("TestExport"); //TestExport_SpaceWrap.Register(state); state.EndModule(); state.EndModule(); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); UIGridWrap.Register(L); UIWidgetContainerWrap.Register(L); L.BeginModule("UnityEngine"); UnityEngine_ResourcesWrap.Register(L); UnityEngine_SpriteRendererWrap.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); L.BeginModule("UI"); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_ToggleGroupWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_DropdownWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); L.BeginModule("Button"); UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L); L.EndModule(); L.BeginModule("Toggle"); UnityEngine_UI_Toggle_ToggleEventWrap.Register(L); L.EndModule(); L.BeginModule("Dropdown"); UnityEngine_UI_Dropdown_DropdownEventWrap.Register(L); UnityEngine_UI_Dropdown_OptionDataWrap.Register(L); L.EndModule(); L.BeginModule("Slider"); UnityEngine_UI_Slider_SliderEventWrap.Register(L); L.EndModule(); L.BeginModule("InputField"); L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput); L.EndModule(); L.EndModule(); L.BeginModule("Events"); UnityEngine_Events_UnityEventBaseWrap.Register(L); UnityEngine_Events_UnityEventWrap.Register(L); UnityEngine_Events_UnityEvent_boolWrap.Register(L); UnityEngine_Events_UnityEvent_intWrap.Register(L); UnityEngine_Events_UnityEvent_floatWrap.Register(L); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.RegFunction("UnityAction_bool", UnityEngine_Events_UnityAction_bool); L.RegFunction("UnityAction_int", UnityEngine_Events_UnityAction_int); L.RegFunction("UnityAction_float", UnityEngine_Events_UnityAction_float); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); UnityEngine_EventSystems_PointerEventDataWrap.Register(L); UnityEngine_EventSystems_BaseEventDataWrap.Register(L); UnityEngine_EventSystems_AbstractEventDataWrap.Register(L); L.EndModule(); L.BeginModule("Experimental"); L.BeginModule("Director"); UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L); L.EndModule(); 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("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("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.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); 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("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.BeginModule("RectTransform"); L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties); L.EndModule(); L.EndModule(); L.BeginModule("Framework"); Framework_LuaMgrWrap.Register(L); Framework_LuaUtilityWrap.Register(L); Framework_LuaControllerWrap.Register(L); Framework_LuaComponentWrap.Register(L); Framework_SceneMgrWrap.Register(L); Framework_ResourceMgrWrap.Register(L); Framework_LuaBuffWrap.Register(L); Framework_MonoSingleton_Framework_LuaMgrWrap.Register(L); Framework_Singleton_Framework_LuaUtilityWrap.Register(L); Framework_Singleton_Framework_SceneMgrWrap.Register(L); Framework_Singleton_Framework_ResourceMgrWrap.Register(L); L.RegFunction("SceneLoadEventHandler", Framework_SceneLoadEventHandler); L.EndModule(); L.BeginModule("LogUtil"); LogUtil_LogUtilityWrap.Register(L); LogUtil_LogColorWrap.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.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); }
void Bind(LuaState L) { L.BeginModule(null); TestEventListenerWrap.Register(state); L.EndModule(); DelegateFactory.dict.Add(typeof(TestEventListener.OnClick), TestEventListener_OnClick); DelegateFactory.dict.Add(typeof(TestEventListener.VoidDelegate), TestEventListener_VoidDelegate); }
// Use this for initialization void Start() { InitGUI(); #if UNITY_5 || UNITY_2017_1_OR_NEWER Application.logMessageReceived += ShowTips; #else Application.RegisterLogCallback(ShowTips); #endif new LuaResLoader(); luaState = new LuaState(); luaState.Start(); LuaBinder.Bind(luaState); //For InjectByModule ////////////////////////////////////////////////////// luaState.BeginModule(null); BaseTestWrap.Register(luaState); ToLuaInjectionTestWrap.Register(luaState); luaState.EndModule(); ////////////////////////////////////////////////////// #if ENABLE_LUA_INJECTION #if UNITY_EDITOR if (UnityEditor.EditorPrefs.GetInt(LuaConst.frameworkRoot + "InjectStatus") == 1) { #else if (true) { #endif ///此处Require是示例专用,暖更新的lua代码都要放到LuaInjectionBus.lua中统一require luaState.Require("ToLuaInjectionTestInjector"); int counter = 0; bool state = true; ToLuaInjectionTest test = new ToLuaInjectionTest(true); test = new ToLuaInjectionTest(); StartCoroutine(test.TestCoroutine(0.3f)); test.TestOverload(1, state); test.TestOverload(1, ref state); Debug.Log("TestOverload ref result:" + state); test.TestOverload(state, 1); int refResult = test.TestRef(ref counter); Debug.Log(string.Format("TestRef return result:{0}; ref result:{1}", refResult, counter)); Debug.Log("Property Get Test:" + test.PropertyTest); test.PropertyTest = 2; Debug.Log("Property Set Test:" + test.PropertyTest); System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); sw.Start(); for (int i = 0; i < 10000000; ++i) { test.NoInject(true, 1); } sw.Stop(); long noInjectMethodCostTime = sw.ElapsedMilliseconds; sw.Reset(); sw.Start(); for (int i = 0; i < 10000000; ++i) { test.Inject(true, 1); } sw.Stop(); Debug.Log("time cost ratio:" + (double)sw.ElapsedMilliseconds / noInjectMethodCostTime); } else #endif { Debug.LogError("查看是否开启了宏ENABLE_LUA_INJECTION并执行了菜单命令——\"Lua=>Inject All\""); } } void InitGUI() { m_windowRect.x = 0; m_windowRect.y = 0; m_windowRect.width = Screen.width; m_windowRect.height = Screen.height; m_logFontSize = (int)(m_fontSize * Screen.width * Screen.height / (1280 * 720)); m_normalColor = Color.white; m_fontStyle = new GUIStyle(); m_fontStyle.normal.textColor = m_normalColor; m_fontStyle.fontSize = m_logFontSize; //设置窗口颜色 m_windowStyle = new GUIStyle(); Texture2D windowTexture = new Texture2D(1, 1); windowTexture.SetPixel(0, 0, Color.black); windowTexture.Apply(); m_windowStyle.normal.background = windowTexture; scaleThreshold = Screen.width / 1100.0f; } void OnApplicationQuit() { #if UNITY_5 || UNITY_2017_1_OR_NEWER Application.logMessageReceived -= ShowTips; #else Application.RegisterLogCallback(null); #endif luaState.Dispose(); luaState = null; } Vector2 MousePoisition { get { return(new Vector2(-Input.mousePosition.x, Input.mousePosition.y)); } }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); UIPanelWrap.Register(L); UILabelWrap.Register(L); UIGridWrap.Register(L); UIInputWrap.Register(L); UIAtlasWrap.Register(L); UIScrollViewWrap.Register(L); UISpriteWrap.Register(L); TweenPositionWrap.Register(L); TweenScaleWrap.Register(L); TweenAlphaWrap.Register(L); AsyncImageDownloadWrap.Register(L); PhotoWrap.Register(L); MicroPhoneInputWrap.Register(L); VoiceChatPlayerWrap.Register(L); UIRectWrap.Register(L); UIWidgetWrap.Register(L); UIWidgetContainerWrap.Register(L); UIBasicSpriteWrap.Register(L); UITweenerWrap.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_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_PlayerPrefsWrap.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_RuntimePlatformWrap.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("SceneManagement"); UnityEngine_SceneManagement_SceneManagerWrap.Register(L); UnityEngine_SceneManagement_SceneWrap.Register(L); UnityEngine_SceneManagement_LoadSceneModeWrap.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("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("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("Comparison_UnityEngine_Transform", System_Comparison_UnityEngine_Transform); L.RegFunction("Action_NotiData", System_Action_NotiData); L.RegFunction("Action_UnityEngine_Object", System_Action_UnityEngine_Object); L.RegFunction("Action_int_bytes", System_Action_int_bytes); 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.BeginModule("UIInput"); L.RegFunction("OnValidate", UIInput_OnValidate); L.EndModule(); L.BeginModule("UIScrollView"); L.RegFunction("OnDragNotification", UIScrollView_OnDragNotification); L.EndModule(); L.BeginModule("EventDelegate"); L.RegFunction("Callback", EventDelegate_Callback); 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 realtimeSinceStartup = Time.get_realtimeSinceStartup(); L.BeginModule(null); DebuggerWrap.Register(L); ViewWrap.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_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_RectTransformWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_TextWrap.Register(L); L.EndModule(); L.BeginModule("Experimental"); L.BeginModule("Director"); UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("Events"); L.RegFunction("UnityAction", new LuaCSFunction(LuaBinder.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_NetworkManagerWrap.Register(L); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", new LuaCSFunction(LuaBinder.System_Action)); L.RegFunction("Action_UnityEngine_Objects", new LuaCSFunction(LuaBinder.System_Action_UnityEngine_Objects)); L.EndModule(); L.EndModule(); L.BeginPreLoad(); L.AddPreLoad("UnityEngine.MeshRenderer", new LuaCSFunction(LuaBinder.LuaOpen_UnityEngine_MeshRenderer), typeof(MeshRenderer)); L.AddPreLoad("UnityEngine.ParticleEmitter", new LuaCSFunction(LuaBinder.LuaOpen_UnityEngine_ParticleEmitter), typeof(ParticleEmitter)); L.AddPreLoad("UnityEngine.ParticleRenderer", new LuaCSFunction(LuaBinder.LuaOpen_UnityEngine_ParticleRenderer), typeof(ParticleRenderer)); L.AddPreLoad("UnityEngine.ParticleAnimator", new LuaCSFunction(LuaBinder.LuaOpen_UnityEngine_ParticleAnimator), typeof(ParticleAnimator)); L.AddPreLoad("UnityEngine.BoxCollider", new LuaCSFunction(LuaBinder.LuaOpen_UnityEngine_BoxCollider), typeof(BoxCollider)); L.AddPreLoad("UnityEngine.MeshCollider", new LuaCSFunction(LuaBinder.LuaOpen_UnityEngine_MeshCollider), typeof(MeshCollider)); L.AddPreLoad("UnityEngine.SphereCollider", new LuaCSFunction(LuaBinder.LuaOpen_UnityEngine_SphereCollider), typeof(SphereCollider)); L.AddPreLoad("UnityEngine.CharacterController", new LuaCSFunction(LuaBinder.LuaOpen_UnityEngine_CharacterController), typeof(CharacterController)); L.AddPreLoad("UnityEngine.CapsuleCollider", new LuaCSFunction(LuaBinder.LuaOpen_UnityEngine_CapsuleCollider), typeof(CapsuleCollider)); L.AddPreLoad("UnityEngine.Animation", new LuaCSFunction(LuaBinder.LuaOpen_UnityEngine_Animation), typeof(Animation)); L.AddPreLoad("UnityEngine.AnimationClip", new LuaCSFunction(LuaBinder.LuaOpen_UnityEngine_AnimationClip), typeof(AnimationClip)); L.AddPreLoad("UnityEngine.AnimationState", new LuaCSFunction(LuaBinder.LuaOpen_UnityEngine_AnimationState), typeof(AnimationState)); L.AddPreLoad("UnityEngine.BlendWeights", new LuaCSFunction(LuaBinder.LuaOpen_UnityEngine_BlendWeights), typeof(BlendWeights)); L.AddPreLoad("UnityEngine.RenderTexture", new LuaCSFunction(LuaBinder.LuaOpen_UnityEngine_RenderTexture), typeof(RenderTexture)); L.AddPreLoad("UnityEngine.Rigidbody", new LuaCSFunction(LuaBinder.LuaOpen_UnityEngine_Rigidbody), typeof(Rigidbody)); L.EndPreLoad(); Debugger.Log("Register lua type cost time: {0}", Time.get_realtimeSinceStartup() - realtimeSinceStartup); }
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); LuaInterface_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_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_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_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.BeginModule("InputField"); L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput); L.EndModule(); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); UnityEngine_EventSystems_BaseRaycasterWrap.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.BeginModule("Canvas"); L.RegFunction("WillRenderCanvases", UnityEngine_Canvas_WillRenderCanvases); 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_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.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); Common_UtilsWrap.Register(L); ColaFramework_AssetLoaderWrap.Register(L); SorterTagWrap.Register(L); ParticleOrderAutoSorterWrap.Register(L); LuaInterface_DebuggerWrap.Register(L); ColaFramework_TimeHelperWrap.Register(L); ColaFramework_ColaHelperWrap.Register(L); UGUIMsgHandlerWrap.Register(L); UnityEngine_PlayerPrefsWrap.Register(L); SpriteAssetWrap.Register(L); SceneMgrWrap.Register(L); ColaFramework_ISceneCharacterWrap.Register(L); ColaFramework_SceneCharacterWrap.Register(L); UnityEngine_UI_Extensions_UGUIModelWrap.Register(L); AnimCtrlEnumWrap.Register(L); AnimCurveNamesWrap.Register(L); TouchHelperWrap.Register(L); LuaProfilerWrap.Register(L); L.RegFunction("UIEventHandler", UIEventHandler); L.RegFunction("UIDragEventHandlerDetail", UIDragEventHandlerDetail); L.RegFunction("StrValueChangeAction", StrValueChangeAction); L.RegFunction("IntValueChangeAction", IntValueChangeAction); L.RegFunction("RectValueChangeAction", RectValueChangeAction); L.RegFunction("FloatValueChangeAction", FloatValueChangeAction); L.RegFunction("BoolValueChangeAction", BoolValueChangeAction); L.RegFunction("OnSceneNameChanged", OnSceneNameChanged); L.RegFunction("OnSceneIndexChanged", OnSceneIndexChanged); 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_CanvasWrap.Register(L); UnityEngine_SpriteWrap.Register(L); UnityEngine_RectTransformWrap.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("UI"); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_RawImageWrap.Register(L); UnityEngine_UI_GraphicRaycasterWrap.Register(L); UnityEngine_UI_ButtonWrap.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_BaseRaycasterWrap.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("Canvas"); L.RegFunction("WillRenderCanvases", UnityEngine_Canvas_WillRenderCanvases); L.EndModule(); L.BeginModule("RectTransform"); L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties); 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_GameObject", System_Action_UnityEngine_GameObject); L.RegFunction("Action_UnityEngine_Object_string", System_Action_UnityEngine_Object_string); L.RegFunction("Action_float", System_Action_float); L.RegFunction("Action_bool", System_Action_bool); L.RegFunction("Action_string", System_Action_string); L.RegFunction("Func_bool", System_Func_bool); L.RegFunction("Action_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation); L.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 realtimeSinceStartup = Time.realtimeSinceStartup; L.BeginModule(null); ViewWrap.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_ApplicationWrap.Register(L); UnityEngine_ColliderWrap.Register(L); UnityEngine_TimeWrap.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_AudioSourceWrap.Register(L); UnityEngine_AnimatorWrap.Register(L); UnityEngine_InputWrap.Register(L); UnityEngine_SkinnedMeshRendererWrap.Register(L); UnityEngine_WWWFormWrap.Register(L); UnityEngine_SystemInfoWrap.Register(L); UnityEngine_MeshRendererWrap.Register(L); UnityEngine_BoxColliderWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_RectWrap.Register(L); UnityEngine_SpriteWrap.Register(L); UnityEngine_TextAnchorWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_RawImageWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_HorizontalLayoutGroupWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicRaycasterWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.Register(L); UnityEngine_UI_LayoutGroupWrap.Register(L); L.BeginModule("InputField"); L.RegFunction("OnValidateInput", new LuaCSFunction(LuaBinder.UnityEngine_UI_InputField_OnValidateInput)); L.EndModule(); L.EndModule(); L.BeginModule("EventSystems"); 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("Events"); L.RegFunction("UnityAction", new LuaCSFunction(LuaBinder.UnityEngine_Events_UnityAction)); L.EndModule(); L.BeginModule("Application"); L.RegFunction("LogCallback", new LuaCSFunction(LuaBinder.UnityEngine_Application_LogCallback)); L.EndModule(); L.BeginModule("Camera"); L.RegFunction("CameraCallback", new LuaCSFunction(LuaBinder.UnityEngine_Camera_CameraCallback)); L.EndModule(); L.BeginModule("RectTransform"); L.RegFunction("ReapplyDrivenProperties", new LuaCSFunction(LuaBinder.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_PrefabLoaderWrap.Register(L); LuaFramework_SoundManagerWrap.Register(L); LuaFramework_NetworkManagerWrap.Register(L); LuaFramework_ResourceManagerWrap.Register(L); L.EndModule(); L.BeginModule("Hummingbird"); L.BeginModule("Model"); Hummingbird_Model_GameConfigInfoWrap.Register(L); Hummingbird_Model_DeviceDrainModelWrap.Register(L); L.EndModule(); L.BeginModule("SeaBattle"); L.BeginModule("Controller"); L.BeginModule("CameraControll"); Hummingbird_SeaBattle_Controller_CameraControll_HandleInputInViewPortRectWrap.Register(L); Hummingbird_SeaBattle_Controller_CameraControll_HandleCameraActionWrap.Register(L); L.EndModule(); L.BeginModule("Map"); Hummingbird_SeaBattle_Controller_Map_WorldMapControllerWrap.Register(L); Hummingbird_SeaBattle_Controller_Map_BusinessSysMapControllerWrap.Register(L); Hummingbird_SeaBattle_Controller_Map_FubenTwoDMapControllerWrap.Register(L); L.EndModule(); L.BeginModule("Guide"); Hummingbird_SeaBattle_Controller_Guide_GuideHighlightMaskWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("Utility"); Hummingbird_SeaBattle_Utility_TweenUtilWrap.Register(L); Hummingbird_SeaBattle_Utility_NumberTextWrap.Register(L); L.BeginModule("RichText"); Hummingbird_SeaBattle_Utility_RichText_RichTextWrap.Register(L); L.EndModule(); L.BeginModule("FNScrollRect"); Hummingbird_SeaBattle_Utility_FNScrollRect_FNScrollViewWrap.Register(L); L.EndModule(); L.BeginModule("Platform"); Hummingbird_SeaBattle_Utility_Platform_PlatformUtilWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("Common"); Hummingbird_SeaBattle_Common_FrameEventReceiverWrap.Register(L); L.EndModule(); L.EndModule(); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", new LuaCSFunction(LuaBinder.System_Action)); L.RegFunction("Action_bool", new LuaCSFunction(LuaBinder.System_Action_bool)); L.RegFunction("Action_UnityEngine_AssetBundle", new LuaCSFunction(LuaBinder.System_Action_UnityEngine_AssetBundle)); L.RegFunction("Action_UnityEngine_Objects", new LuaCSFunction(LuaBinder.System_Action_UnityEngine_Objects)); L.RegFunction("Action_UnityEngine_Vector3", new LuaCSFunction(LuaBinder.System_Action_UnityEngine_Vector3)); L.RegFunction("Action_string", new LuaCSFunction(LuaBinder.System_Action_string)); L.RegFunction("Action_int", new LuaCSFunction(LuaBinder.System_Action_int)); L.EndModule(); L.EndModule(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - realtimeSinceStartup); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); UserInfoWrap.Register(L); GamedataWrap.Register(L); DatabaseWrap.Register(L); NetWrap.Register(L); HeroInfoWrap.Register(L); HeroItemWrap.Register(L); HeroTableDataWrap.Register(L); ReqLogonWrap.Register(L); L.BeginModule("UnityEngine"); UnityEngine_ComponentWrap.Register(L); UnityEngine_TransformWrap.Register(L); UnityEngine_RectTransformWrap.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_RectOffsetWrap.Register(L); UnityEngine_SpriteWrap.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_InputFieldWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_GridLayoutGroupWrap.Register(L); UnityEngine_UI_LayoutGroupWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); L.BeginModule("InputField"); L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput); L.EndModule(); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); L.EndModule(); L.BeginModule("Events"); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.EndModule(); L.BeginModule("RectTransform"); L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties); 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("Assets"); L.BeginModule("Script"); Assets_Script_SpriteFactoryWrap.Register(L); L.BeginModule("Frame"); Assets_Script_Frame_XEventWrap.Register(L); Assets_Script_Frame_EventSystemWrap.Register(L); Assets_Script_Frame_PanelBaseWrap.Register(L); Assets_Script_Frame_LuaPanelWrap.Register(L); Assets_Script_Frame_UiControlContainerWrap.Register(L); Assets_Script_Frame_PanelManagerWrap.Register(L); Assets_Script_Frame_Singleton_Assets_Script_Frame_EventSystemWrap.Register(L); Assets_Script_Frame_Singleton_Assets_Script_Frame_PanelManagerWrap.Register(L); Assets_Script_Frame_Singleton_Assets_Script_SpriteFactoryWrap.Register(L); Assets_Script_Frame_Singleton_GamedataWrap.Register(L); Assets_Script_Frame_Singleton_DatabaseWrap.Register(L); Assets_Script_Frame_Singleton_NetWrap.Register(L); L.BeginModule("PanelManager"); L.RegFunction("FuncInstanceUiBase", Assets_Script_Frame_PanelManager_FuncInstanceUiBase); L.EndModule(); 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("Predicate_HeroInfo", System_Predicate_HeroInfo); L.RegFunction("Action_HeroInfo", System_Action_HeroInfo); L.RegFunction("Comparison_HeroInfo", System_Comparison_HeroInfo); L.BeginModule("Collections"); L.BeginModule("Generic"); System_Collections_Generic_List_HeroInfoWrap.Register(L); L.EndModule(); L.EndModule(); L.EndModule(); L.EndModule(); L.BeginPreLoad(); L.AddPreLoad("UnityEngine.MeshRenderer", LuaOpen_UnityEngine_MeshRenderer, typeof(UnityEngine.MeshRenderer)); L.AddPreLoad("UnityEngine.BoxCollider", LuaOpen_UnityEngine_BoxCollider, typeof(UnityEngine.BoxCollider)); L.AddPreLoad("UnityEngine.MeshCollider", LuaOpen_UnityEngine_MeshCollider, typeof(UnityEngine.MeshCollider)); L.AddPreLoad("UnityEngine.SphereCollider", LuaOpen_UnityEngine_SphereCollider, typeof(UnityEngine.SphereCollider)); L.AddPreLoad("UnityEngine.CharacterController", LuaOpen_UnityEngine_CharacterController, typeof(UnityEngine.CharacterController)); L.AddPreLoad("UnityEngine.CapsuleCollider", LuaOpen_UnityEngine_CapsuleCollider, typeof(UnityEngine.CapsuleCollider)); L.AddPreLoad("UnityEngine.Animation", LuaOpen_UnityEngine_Animation, typeof(UnityEngine.Animation)); L.AddPreLoad("UnityEngine.AnimationClip", LuaOpen_UnityEngine_AnimationClip, typeof(UnityEngine.AnimationClip)); L.AddPreLoad("UnityEngine.AnimationState", LuaOpen_UnityEngine_AnimationState, typeof(UnityEngine.AnimationState)); L.AddPreLoad("UnityEngine.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); LuaProfilerWrap.Register(L); AssetEntityWrap.Register(L); AssetUtilWrap.Register(L); GameObjectUtilWrap.Register(L); InputUtilWrap.Register(L); EAssetTypeWrap.Register(L); UILoadingWrap.Register(L); ImageExWrap.Register(L); RawImageExWrap.Register(L); ButtonExWrap.Register(L); TextExWrap.Register(L); UIGridWrap.Register(L); UIGridElementWrap.Register(L); TimeUtilWrap.Register(L); Singleton_AssetUtilWrap.Register(L); L.RegFunction("DAssetsCallback", DAssetsCallback); L.BeginModule("UnityEngine"); UnityEngine_PlayerPrefsWrap.Register(L); 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_DebugWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_AudioBehaviourWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_RawImageWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); L.BeginModule("Button"); UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); L.EndModule(); L.BeginModule("Events"); UnityEngine_Events_UnityEventWrap.Register(L); UnityEngine_Events_UnityEventBaseWrap.Register(L); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.RegFunction("UnityAction_GameObject", UnityEngine_Events_UnityAction_UnityEngine_GameObject); 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("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.BeginModule("InputUtil"); L.RegFunction("Joystick", InputUtil_Joystick); L.RegFunction("OnAction", InputUtil_OnAction); 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); 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_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.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("Action_NotiData", System_Action_NotiData); L.RegFunction("Action_UnityEngine_Objects", System_Action_UnityEngine_Objects); 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); TriggerScriptWrap.Register(L); MoveBehaviourScriptWrap.Register(L); CaptureBehaviourScriptWrap.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_Collider2DWrap.Register(L); UnityEngine_CanvasWrap.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("EventSystems"); UnityEngine_EventSystems_EventSystemWrap.Register(L); UnityEngine_EventSystems_UIBehaviourWrap.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("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("Canvas"); L.RegFunction("WillRenderCanvases", UnityEngine_Canvas_WillRenderCanvases); 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("Action_NotiData", System_Action_NotiData); L.RegFunction("Action_UnityEngine_Objects", System_Action_UnityEngine_Objects); L.EndModule(); L.EndModule(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }
public static void Register(LuaState state, MonoBehaviour behaviour) { state.BeginModule(null); state.RegFunction("WaitForSeconds", WaitForSeconds); state.RegFunction("WaitForFixedUpdate", WaitForFixedUpdate); state.RegFunction("WaitForEndOfFrame", WaitForEndOfFrame); state.RegFunction("Yield", Yield); state.RegFunction("StopCoroutine", StopCoroutine); state.EndModule(); state.LuaDoString(strCo, "LuaCoroutine.cs"); mb = behaviour; }
void Bind(LuaState L) { L.BeginModule(null); TestEventListenerWrap.Register(state); L.EndModule(); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); ScrollRectInputWrap.Register(L); ReusingScrollRectWrap.Register(L); InterpTypeWrap.Register(L); RepeatTypeWrap.Register(L); AnimDataWrap.Register(L); AnimSystemWrap.Register(L); UIBaseWrap.Register(L); UIWindowBaseWrap.Register(L); UIManagerWrap.Register(L); UIWindowLuaHelperWrap.Register(L); UISystemEventWrap.Register(L); UIEventWrap.Register(L); JsonLuaHelperWrap.Register(L); DataTableWrap.Register(L); SingleDataWrap.Register(L); SingleFieldWrap.Register(L); RecordTableWrap.Register(L); DataManagerWrap.Register(L); ConfigManagerWrap.Register(L); RecordManagerWrap.Register(L); AudioPlayManagerWrap.Register(L); IInputEventBaseWrap.Register(L); InputUIEventTypeWrap.Register(L); InputUIEventBaseWrap.Register(L); InputUIOnScrollEventWrap.Register(L); InputUIOnClickEventWrap.Register(L); InputUILongPressEventWrap.Register(L); InputNetworkMessageEventWrap.Register(L); InputNetworkConnectStatusEventWrap.Register(L); NetworkStateWrap.Register(L); InputManagerWrap.Register(L); NetworkManagerWrap.Register(L); GameObjectManagerWrap.Register(L); L.RegFunction("AnimCallBack", AnimCallBack); L.RegFunction("AnimCustomMethodVector4", AnimCustomMethodVector4); L.RegFunction("AnimCustomMethodVector3", AnimCustomMethodVector3); L.RegFunction("AnimCustomMethodVector2", AnimCustomMethodVector2); L.RegFunction("AnimCustomMethodFloat", AnimCustomMethodFloat); L.RegFunction("InputEventHandle_InputUIOnClickEvent", InputEventHandle_InputUIOnClickEvent); L.RegFunction("InputEventHandle_InputUILongPressEvent", InputEventHandle_InputUILongPressEvent); L.RegFunction("InputEventHandle_InputUIOnBeginDragEvent", InputEventHandle_InputUIOnBeginDragEvent); L.RegFunction("InputEventHandle_InputUIOnEndDragEvent", InputEventHandle_InputUIOnEndDragEvent); L.RegFunction("EventHandle", EventHandle); L.RegFunction("UIAnimCallBack", UIAnimCallBack); L.RegFunction("UICallBack", UICallBack); L.RegFunction("CallBack_string_int_string", CallBack_string_int_string); L.RegFunction("CallBack_string_string", CallBack_string_string); L.RegFunction("InputEventCallBack", InputEventCallBack); L.RegFunction("InputEventHandle_IInputEventBase", InputEventHandle_IInputEventBase); L.BeginModule("UnityEngine"); UnityEngine_GameObjectWrap.Register(L); UnityEngine_TransformWrap.Register(L); UnityEngine_ComponentWrap.Register(L); UnityEngine_BehaviourWrap.Register(L); UnityEngine_MonoBehaviourWrap.Register(L); UnityEngine_Vector3Wrap.Register(L); UnityEngine_Vector4Wrap.Register(L); UnityEngine_Vector2Wrap.Register(L); UnityEngine_ColorWrap.Register(L); UnityEngine_DebugWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_ScreenWrap.Register(L); UnityEngine_InputWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_TextWrap.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("RectTransform"); L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties); L.EndModule(); L.EndModule(); L.BeginModule("System"); L.RegFunction("Predicate_string", System_Predicate_string); L.RegFunction("Action_string", System_Action_string); L.RegFunction("Comparison_string", System_Comparison_string); L.BeginModule("Collections"); L.BeginModule("Generic"); System_Collections_Generic_List_stringWrap.Register(L); System_Collections_Generic_Dictionary_string_objectWrap.Register(L); System_Collections_Generic_Dictionary_string_SingleDataWrap.Register(L); System_Collections_Generic_Dictionary_string_stringWrap.Register(L); System_Collections_Generic_Dictionary_string_SingleFieldWrap.Register(L); L.EndModule(); L.EndModule(); L.EndModule(); L.EndModule(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }
void Awake() { state = new LuaState(); state.Start(); LuaBinder.Bind(state); state.BeginModule(null); state.BeginStaticLibs("TestStack"); state.RegFunction("Test1", Test1); state.RegFunction("Test2", Test2); state.RegFunction("Test3", Test3); state.EndStaticLibs(); state.EndModule(); state.DoString(script, "script"); show = state.GetFunction("Show"); testRay = state.GetFunction("TestRay"); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); eyeWrap.Register(L); UtilsWrap.Register(L); ConstWrap.Register(L); GlobalWrap.Register(L); ShareDataWrap.Register(L); ByteBufferWrap.Register(L); FileUtilWrap.Register(L); StringUtilWrap.Register(L); TableUtilWrap.Register(L); LogUtilWrap.Register(L); IniUtilWrap.Register(L); PathUtilWrap.Register(L); GameManagerWrap.Register(L); ResourceManagerWrap.Register(L); ObjectPoolManagerWrap.Register(L); NetworkManagerWrap.Register(L); LocalizationWrap.Register(L); DeviceHelperWrap.Register(L); UnitMoveWrap.Register(L); ProgressSpriteWrap.Register(L); UIModWrap.Register(L); UISystemWrap.Register(L); UIManagerWrap.Register(L); UIButtonWrap.Register(L); UIButtonAgentWrap.Register(L); UIInputFieldWrap.Register(L); UIInputFieldSubmitWrap.Register(L); UISliderWrap.Register(L); UIScrollRectWrap.Register(L); UIScrollBaseWrap.Register(L); UIScrollRingWrap.Register(L); UIScrollViewWrap.Register(L); UIDragSensorWrap.Register(L); UITextWrap.Register(L); UITweenWrap.Register(L); UITweenRectPositionWrap.Register(L); UITweenFadeWrap.Register(L); UITweenColorWrap.Register(L); UITweenLocalPositionWrap.Register(L); UITweenLocalPositionBetweenWrap.Register(L); UITweenScaleWrap.Register(L); UITweenPositionWrap.Register(L); UITweenSizeDeltaWrap.Register(L); UITweenCityBuildingWrap.Register(L); UITextTimeCountdownWrap.Register(L); UITextNumCountdownWrap.Register(L); UITextUnderlineWrap.Register(L); UIProgressWrap.Register(L); FXTypeWriterWrap.Register(L); TypeWriterWrap.Register(L); UITextAutoOmitWrap.Register(L); UIPopWindowWrap.Register(L); UIGradientWrap.Register(L); ShakeWrap.Register(L); UIHighLightMaskWrap.Register(L); GizmoPlaneWrap.Register(L); GizmoBezierLineWrap.Register(L); BezierWrap.Register(L); BezierMoveWrap.Register(L); CityCameraWrap.Register(L); Camera2DWrap.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_QualitySettingsWrap.Register(L); UnityEngine_RenderSettingsWrap.Register(L); UnityEngine_ResourcesWrap.Register(L); UnityEngine_SpriteRendererWrap.Register(L); UnityEngine_MotionWrap.Register(L); UnityEngine_SpriteWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_TextGeneratorWrap.Register(L); UnityEngine_UICharInfoWrap.Register(L); UnityEngine_TextGenerationSettingsWrap.Register(L); UnityEngine_GUIUtilityWrap.Register(L); UnityEngine_Color32Wrap.Register(L); L.BeginModule("Experimental"); L.BeginModule("Director"); UnityEngine_Experimental_Director_PlayableWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("SceneManagement"); UnityEngine_SceneManagement_SceneManagerWrap.Register(L); L.EndModule(); L.BeginModule("UI"); UnityEngine_UI_LayoutGroupWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_GridLayoutGroupWrap.Register(L); UnityEngine_UI_LayoutElementWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_BaseMeshEffectWrap.Register(L); L.BeginModule("InputField"); L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput); L.EndModule(); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); L.EndModule(); L.BeginModule("Events"); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.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("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.BeginModule("RectTransform"); L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties); L.EndModule(); L.EndModule(); L.BeginModule("OpenUDIDPhone"); OpenUDIDPhone_OpenUDIDWrap.Register(L); L.EndModule(); L.BeginModule("UITextTimeCountdown"); UITextTimeCountdown_DirectTypeWrap.Register(L); L.EndModule(); L.BeginModule("DragonBones"); DragonBones_UnityFactoryWrap.Register(L); DragonBones_AnimationTimelineStateWrap.Register(L); DragonBones_AnimationFrameDataWrap.Register(L); DragonBones_AnimationStateWrap.Register(L); DragonBones_AnimationFadeOutModeWrap.Register(L); DragonBones_AnimationWrap.Register(L); DragonBones_AnimationDataWrap.Register(L); DragonBones_AnimationConfigWrap.Register(L); DragonBones_ActionDataWrap.Register(L); DragonBones_ActionTypeWrap.Register(L); DragonBones_ArmatureWrap.Register(L); DragonBones_ArmatureDataWrap.Register(L); DragonBones_ArmatureTypeWrap.Register(L); DragonBones_BoneWrap.Register(L); DragonBones_BoneDataWrap.Register(L); DragonBones_BoneFrameDataWrap.Register(L); DragonBones_BoneTimelineDataWrap.Register(L); DragonBones_BoneTimelineStateWrap.Register(L); DragonBones_DragonBonesWrap.Register(L); DragonBones_DragonBonesDataWrap.Register(L); DragonBones_TransformWrap.Register(L); DragonBones_TransformObjectWrap.Register(L); DragonBones_BaseObjectWrap.Register(L); DragonBones_EventObjectWrap.Register(L); DragonBones_UnityArmatureComponentWrap.Register(L); DragonBones_BaseFactoryWrap.Register(L); DragonBones_TimelineState_DragonBones_AnimationFrameData_DragonBones_AnimationDataWrap.Register(L); DragonBones_FrameData_DragonBones_AnimationFrameDataWrap.Register(L); DragonBones_TimelineData_DragonBones_AnimationFrameDataWrap.Register(L); DragonBones_TweenFrameData_DragonBones_BoneFrameDataWrap.Register(L); DragonBones_FrameData_DragonBones_BoneFrameDataWrap.Register(L); DragonBones_TimelineData_DragonBones_BoneFrameDataWrap.Register(L); DragonBones_TweenTimelineState_DragonBones_BoneFrameData_DragonBones_BoneTimelineDataWrap.Register(L); DragonBones_TimelineState_DragonBones_BoneFrameData_DragonBones_BoneTimelineDataWrap.Register(L); DragonBones_UnityEventDispatcher_DragonBones_EventObjectWrap.Register(L); L.RegFunction("ListenerDelegate_DragonBones_EventObject", DragonBones_ListenerDelegate_DragonBones_EventObject); 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_UnityEngine_Object", System_Action_UnityEngine_Object); L.EndModule(); L.BeginModule("GameManager"); L.RegFunction("LuaExecute", GameManager_LuaExecute); L.EndModule(); L.BeginModule("UIInputFieldSubmit"); L.RegFunction("OnValidateInput", UIInputFieldSubmit_OnValidateInput); L.EndModule(); L.BeginModule("UITween"); L.RegFunction("OnFinish", UITween_OnFinish); 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); }
void Awake() { #if UNITY_5 Application.logMessageReceived += ShowTips; #else Application.RegisterLogCallback(ShowTips); #endif Instance = this; new LuaResLoader(); testGo = gameObject; state = new LuaState(); state.Start(); LuaBinder.Bind(state); state.BeginModule(null); state.RegFunction("TestArgError", TestArgError); state.RegFunction("TestTableInCo", TestTableInCo); state.RegFunction("TestCycle", TestCycle); state.RegFunction("TestNull", TestNull); state.RegFunction("TestAddComponent", TestAddComponent); state.RegFunction("TestOutOfBound", TestOutOfBound); state.RegFunction("TestMulStack", TestMulStack); state.BeginStaticLibs("TestStack"); state.RegFunction("Test1", Test1); state.RegFunction("PushLuaError", PushLuaError); state.RegFunction("Test3", Test3); state.RegFunction("Test4", Test4); state.RegFunction("Test5", Test5); state.RegFunction("Test6", Test6); state.EndStaticLibs(); state.EndModule(); //state.DoFile("TestErrorStack.lua"); state.Require("TestErrorStack"); show = state.GetFunction("Show"); testRay = state.GetFunction("TestRay"); showStack = state.GetFunction("ShowStack"); test4 = state.GetFunction("Test4"); TestDelegate += TestD1; TestDelegate += TestD2; }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); DebuggerWrap.Register(L); ViewWrap.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_CanvasWrap.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_RectTransformWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_CanvasScalerWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); L.EndModule(); 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("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("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.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); }