public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); ScrollCircleWrap.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_AudioListenerWrap.Register(L); UnityEngine_CanvasWrap.Register(L); UnityEngine_CanvasGroupWrap.Register(L); UnityEngine_RectWrap.Register(L); UnityEngine_RectOffsetWrap.Register(L); UnityEngine_RectTransformWrap.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("UI"); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_ScrollbarWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_DropdownWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_LayoutGroupWrap.Register(L); UnityEngine_UI_GridLayoutGroupWrap.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_EventSystemWrap.Register(L); UnityEngine_EventSystems_AbstractEventDataWrap.Register(L); UnityEngine_EventSystems_BaseEventDataWrap.Register(L); UnityEngine_EventSystems_PointerEventDataWrap.Register(L); L.EndModule(); L.BeginModule("Events"); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.RegFunction("UnityAction_string", UnityEngine_Events_UnityAction_string); L.RegFunction("UnityAction_string_UnityEngine_AssetBundle", UnityEngine_Events_UnityAction_string_UnityEngine_AssetBundle); L.RegFunction("UnityAction_string_UnityEngine_GameObject", UnityEngine_Events_UnityAction_string_UnityEngine_GameObject); L.RegFunction("UnityAction_UnityEngine_Object", UnityEngine_Events_UnityAction_UnityEngine_Object); L.EndModule(); L.BeginModule("Camera"); L.RegFunction("CameraCallback", UnityEngine_Camera_CameraCallback); 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.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("WCG"); WCG_GameMgrWrap.Register(L); WCG_SceneMgrWrap.Register(L); WCG_ResourceMgrWrap.Register(L); WCG_UIMgrWrap.Register(L); WCG_MediaMgrWrap.Register(L); WCG_CameraRayMgrWrap.Register(L); WCG_ProfileWrap.Register(L); WCG_UIEventHandleWrap.Register(L); WCG_CallServerWrap.Register(L); WCG_CameraShotInterfaceWrap.Register(L); WCG_RenderObjWrap.Register(L); WCG_EffectTimeWrap.Register(L); WCG_OnHeadWrap.Register(L); WCG_FloatUIDestroyWrap.Register(L); WCG_CDMaskWrap.Register(L); WCG_FogForGameWrap.Register(L); WCG_SDKEntryMgrWrap.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); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); LuaProfilerWrap.Register(L); L.BeginModule("System"); System_DateTimeWrap.Register(L); 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("Predicate_UnityEngine_Vector2", System_Predicate_UnityEngine_Vector2); L.RegFunction("Action_UnityEngine_Vector2", System_Action_UnityEngine_Vector2); L.RegFunction("Comparison_UnityEngine_Vector2", System_Comparison_UnityEngine_Vector2); L.RegFunction("Predicate_string", System_Predicate_string); L.RegFunction("Action_string", System_Action_string); L.RegFunction("Comparison_string", System_Comparison_string); L.RegFunction("Predicate_double", System_Predicate_double); L.RegFunction("Action_double", System_Action_double); L.RegFunction("Comparison_double", System_Comparison_double); L.RegFunction("Predicate_bool", System_Predicate_bool); L.RegFunction("Action_bool", System_Action_bool); L.RegFunction("Comparison_bool", System_Comparison_bool); L.RegFunction("Func_bool", System_Func_bool); L.RegFunction("Action_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation); L.BeginModule("IO"); System_IO_DirectoryWrap.Register(L); System_IO_FileWrap.Register(L); L.EndModule(); L.BeginModule("Collections"); L.BeginModule("Generic"); System_Collections_Generic_List_intWrap.Register(L); System_Collections_Generic_List_UnityEngine_Vector2Wrap.Register(L); System_Collections_Generic_List_stringWrap.Register(L); System_Collections_Generic_List_doubleWrap.Register(L); System_Collections_Generic_List_boolWrap.Register(L); L.EndModule(); L.EndModule(); L.EndModule(); L.BeginModule("UnityEngine"); UnityEngine_RectTransformUtilityWrap.Register(L); UnityEngine_RectWrap.Register(L); UnityEngine_SpriteWrap.Register(L); UnityEngine_CanvasWrap.Register(L); UnityEngine_CanvasGroupWrap.Register(L); UnityEngine_AudioListenerWrap.Register(L); UnityEngine_ParticleSystemRendererWrap.Register(L); UnityEngine_TrailRendererWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_RuntimePlatformWrap.Register(L); UnityEngine_RectOffsetWrap.Register(L); UnityEngine_NetworkReachabilityWrap.Register(L); UnityEngine_ComponentWrap.Register(L); UnityEngine_TransformWrap.Register(L); UnityEngine_MaterialWrap.Register(L); UnityEngine_LightWrap.Register(L); UnityEngine_CameraWrap.Register(L); UnityEngine_AudioSourceWrap.Register(L); UnityEngine_BehaviourWrap.Register(L); UnityEngine_MonoBehaviourWrap.Register(L); UnityEngine_GameObjectWrap.Register(L); UnityEngine_TrackedReferenceWrap.Register(L); UnityEngine_ApplicationWrap.Register(L); UnityEngine_PhysicsWrap.Register(L); UnityEngine_ColliderWrap.Register(L); UnityEngine_TimeWrap.Register(L); UnityEngine_TextureWrap.Register(L); UnityEngine_Texture2DWrap.Register(L); UnityEngine_ShaderWrap.Register(L); UnityEngine_RendererWrap.Register(L); UnityEngine_WWWWrap.Register(L); UnityEngine_ScreenWrap.Register(L); UnityEngine_CameraClearFlagsWrap.Register(L); UnityEngine_AudioClipWrap.Register(L); UnityEngine_AssetBundleWrap.Register(L); UnityEngine_ParticleSystemWrap.Register(L); UnityEngine_AsyncOperationWrap.Register(L); UnityEngine_LightTypeWrap.Register(L); UnityEngine_SleepTimeoutWrap.Register(L); UnityEngine_AnimatorWrap.Register(L); UnityEngine_InputWrap.Register(L); UnityEngine_KeyCodeWrap.Register(L); UnityEngine_SkinnedMeshRendererWrap.Register(L); UnityEngine_SpaceWrap.Register(L); UnityEngine_AnimationBlendModeWrap.Register(L); UnityEngine_QueueModeWrap.Register(L); UnityEngine_PlayModeWrap.Register(L); UnityEngine_WrapModeWrap.Register(L); UnityEngine_QualitySettingsWrap.Register(L); UnityEngine_RenderSettingsWrap.Register(L); UnityEngine_ResourcesWrap.Register(L); UnityEngine_AudioBehaviourWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); UnityEngine_UI_ToggleGroupWrap.Register(L); UnityEngine_UI_OutlineWrap.Register(L); UnityEngine_UI_DropdownWrap.Register(L); UnityEngine_UI_ShadowWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_ScrollbarWrap.Register(L); UnityEngine_UI_LayoutGroupWrap.Register(L); UnityEngine_UI_LayoutElementWrap.Register(L); UnityEngine_UI_CanvasScalerWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_BaseMeshEffectWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_GridLayoutGroupWrap.Register(L); UnityEngine_UI_HorizontalLayoutGroupWrap.Register(L); UnityEngine_UI_GraphicRaycasterWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_ContentSizeFitterWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.Register(L); L.BeginModule("Toggle"); UnityEngine_UI_Toggle_ToggleEventWrap.Register(L); L.EndModule(); L.BeginModule("Dropdown"); UnityEngine_UI_Dropdown_OptionDataWrap.Register(L); L.EndModule(); L.BeginModule("ScrollRect"); UnityEngine_UI_ScrollRect_MovementTypeWrap.Register(L); UnityEngine_UI_ScrollRect_ScrollRectEventWrap.Register(L); L.EndModule(); L.BeginModule("Scrollbar"); UnityEngine_UI_Scrollbar_ScrollEventWrap.Register(L); UnityEngine_UI_Scrollbar_DirectionWrap.Register(L); L.EndModule(); L.BeginModule("InputField"); UnityEngine_UI_InputField_OnChangeEventWrap.Register(L); L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput); L.EndModule(); L.BeginModule("GridLayoutGroup"); UnityEngine_UI_GridLayoutGroup_AxisWrap.Register(L); L.EndModule(); L.BeginModule("Button"); UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L); L.EndModule(); L.BeginModule("ContentSizeFitter"); UnityEngine_UI_ContentSizeFitter_FitModeWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_EventTriggerWrap.Register(L); UnityEngine_EventSystems_AbstractEventDataWrap.Register(L); UnityEngine_EventSystems_BaseRaycasterWrap.Register(L); UnityEngine_EventSystems_EventSystemWrap.Register(L); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); L.EndModule(); L.BeginModule("SceneManagement"); UnityEngine_SceneManagement_SceneManagerWrap.Register(L); UnityEngine_SceneManagement_LoadSceneModeWrap.Register(L); L.EndModule(); L.BeginModule("Profiling"); UnityEngine_Profiling_ProfilerWrap.Register(L); L.EndModule(); L.BeginModule("Events"); UnityEngine_Events_UnityEvent_boolWrap.Register(L); UnityEngine_Events_UnityEventBaseWrap.Register(L); UnityEngine_Events_UnityEvent_UnityEngine_Vector2Wrap.Register(L); UnityEngine_Events_UnityEvent_floatWrap.Register(L); UnityEngine_Events_UnityEvent_stringWrap.Register(L); UnityEngine_Events_UnityEventWrap.Register(L); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.RegFunction("UnityAction_bool", UnityEngine_Events_UnityAction_bool); L.RegFunction("UnityAction_UnityEngine_Vector2", UnityEngine_Events_UnityAction_UnityEngine_Vector2); L.RegFunction("UnityAction_float", UnityEngine_Events_UnityAction_float); L.RegFunction("UnityAction_string", UnityEngine_Events_UnityAction_string); 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("Canvas"); L.RegFunction("WillRenderCanvases", UnityEngine_Canvas_WillRenderCanvases); 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("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("Multiverse"); L.BeginModule("Runtime"); Multiverse_Runtime_LuaScriptWrap.Register(L); Multiverse_Runtime_ApplicationControllerWrap.Register(L); Multiverse_Runtime_MonoSingleton_Multiverse_Runtime_ApplicationControllerWrap.Register(L); L.EndModule(); L.EndModule(); L.EndModule(); L.BeginPreLoad(); L.AddPreLoad("UnityEngine.MeshRenderer", LuaOpen_UnityEngine_MeshRenderer, typeof(UnityEngine.MeshRenderer)); L.AddPreLoad("UnityEngine.BoxCollider", LuaOpen_UnityEngine_BoxCollider, typeof(UnityEngine.BoxCollider)); L.AddPreLoad("UnityEngine.MeshCollider", LuaOpen_UnityEngine_MeshCollider, typeof(UnityEngine.MeshCollider)); L.AddPreLoad("UnityEngine.SphereCollider", LuaOpen_UnityEngine_SphereCollider, typeof(UnityEngine.SphereCollider)); L.AddPreLoad("UnityEngine.CharacterController", LuaOpen_UnityEngine_CharacterController, typeof(UnityEngine.CharacterController)); L.AddPreLoad("UnityEngine.CapsuleCollider", LuaOpen_UnityEngine_CapsuleCollider, typeof(UnityEngine.CapsuleCollider)); L.AddPreLoad("UnityEngine.Animation", LuaOpen_UnityEngine_Animation, typeof(UnityEngine.Animation)); L.AddPreLoad("UnityEngine.AnimationClip", LuaOpen_UnityEngine_AnimationClip, typeof(UnityEngine.AnimationClip)); L.AddPreLoad("UnityEngine.AnimationState", LuaOpen_UnityEngine_AnimationState, typeof(UnityEngine.AnimationState)); L.AddPreLoad("UnityEngine.BlendWeights", LuaOpen_UnityEngine_BlendWeights, typeof(UnityEngine.BlendWeights)); L.AddPreLoad("UnityEngine.RenderTexture", LuaOpen_UnityEngine_RenderTexture, typeof(UnityEngine.RenderTexture)); L.AddPreLoad("UnityEngine.Rigidbody", LuaOpen_UnityEngine_Rigidbody, typeof(UnityEngine.Rigidbody)); L.EndPreLoad(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); DebuggerWrap.Register(L); UITextGradientWrap.Register(L); NTGLuaScriptWrap.Register(L); NTGLuaScriptExtWrap.Register(L); TGNetServiceWrap.Register(L); NTGApplicationControllerWrap.Register(L); NTGResourceControllerWrap.Register(L); NTGEventTriggerProxyWrap.Register(L); NTGBattleMemberAttrsWrap.Register(L); NTGBattleUnitControllerWrap.Register(L); NTGBattlePlayerControllerWrap.Register(L); L.BeginModule("System"); System_DateTimeWrap.Register(L); L.RegFunction("Action", System_Action); L.RegFunction("ActionSelf", System_Action_Self); L.BeginModule("IO"); System_IO_DirectoryWrap.Register(L); System_IO_FileWrap.Register(L); L.EndModule(); L.BeginModule("Collections"); System_Collections_QueueWrap.Register(L); System_Collections_StackWrap.Register(L); System_Collections_ArrayListWrap.Register(L); L.EndModule(); L.BeginModule("ComponentModel"); L.RegFunction("PropertyChangedEventHandler", System_ComponentModel_PropertyChangedEventHandler); L.RegFunction("PropertyChangedEventHandlerSelf", System_ComponentModel_PropertyChangedEventHandler_Self); L.EndModule(); L.EndModule(); L.BeginModule("UnityEngine"); UnityEngine_CoroutineWrap.Register(L); UnityEngine_RectWrap.Register(L); UnityEngine_SpriteWrap.Register(L); UnityEngine_CanvasWrap.Register(L); UnityEngine_CanvasGroupWrap.Register(L); UnityEngine_AudioListenerWrap.Register(L); UnityEngine_ParticleSystemRendererWrap.Register(L); UnityEngine_TrailRendererWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_RuntimePlatformWrap.Register(L); UnityEngine_RectOffsetWrap.Register(L); 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("UI"); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); UnityEngine_UI_OutlineWrap.Register(L); UnityEngine_UI_ShadowWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_ScrollbarWrap.Register(L); UnityEngine_UI_LayoutGroupWrap.Register(L); UnityEngine_UI_LayoutElementWrap.Register(L); UnityEngine_UI_CanvasScalerWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_BaseMeshEffectWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_GridLayoutGroupWrap.Register(L); UnityEngine_UI_HorizontalLayoutGroupWrap.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); UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.Register(L); L.BeginModule("InputField"); L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput); L.RegFunction("OnValidateInputSelf", UnityEngine_UI_InputField_OnValidateInput_Self); L.EndModule(); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_EventTriggerWrap.Register(L); UnityEngine_EventSystems_AbstractEventDataWrap.Register(L); UnityEngine_EventSystems_BaseRaycasterWrap.Register(L); UnityEngine_EventSystems_EventSystemWrap.Register(L); UnityEngine_EventSystems_PointerEventDataWrap.Register(L); UnityEngine_EventSystems_BaseEventDataWrap.Register(L); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); L.EndModule(); 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_LoadSceneModeWrap.Register(L); UnityEngine_SceneManagement_SceneWrap.Register(L); L.EndModule(); L.BeginModule("Events"); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.RegFunction("UnityActionSelf", UnityEngine_Events_UnityAction_Self); 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_SceneManagement_LoadSceneModeSelf", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_LoadSceneMode_Self); L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene); L.RegFunction("UnityAction_UnityEngine_SceneManagement_SceneSelf", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene_Self); L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene); L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_SceneSelf", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene_Self); L.EndModule(); L.BeginModule("Canvas"); L.RegFunction("WillRenderCanvases", UnityEngine_Canvas_WillRenderCanvases); L.RegFunction("WillRenderCanvasesSelf", UnityEngine_Canvas_WillRenderCanvases_Self); L.EndModule(); L.BeginModule("RectTransform"); L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties); L.RegFunction("ReapplyDrivenPropertiesSelf", UnityEngine_RectTransform_ReapplyDrivenProperties_Self); L.EndModule(); L.BeginModule("Camera"); L.RegFunction("CameraCallback", UnityEngine_Camera_CameraCallback); L.RegFunction("CameraCallbackSelf", UnityEngine_Camera_CameraCallback_Self); L.EndModule(); L.BeginModule("Application"); L.RegFunction("LogCallback", UnityEngine_Application_LogCallback); L.RegFunction("LogCallbackSelf", UnityEngine_Application_LogCallback_Self); L.RegFunction("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback); L.RegFunction("AdvertisingIdentifierCallbackSelf", UnityEngine_Application_AdvertisingIdentifierCallback_Self); L.EndModule(); L.BeginModule("AudioClip"); L.RegFunction("PCMReaderCallback", UnityEngine_AudioClip_PCMReaderCallback); L.RegFunction("PCMReaderCallbackSelf", UnityEngine_AudioClip_PCMReaderCallback_Self); L.RegFunction("PCMSetPositionCallback", UnityEngine_AudioClip_PCMSetPositionCallback); L.RegFunction("PCMSetPositionCallbackSelf", UnityEngine_AudioClip_PCMSetPositionCallback_Self); L.EndModule(); L.EndModule(); L.BeginModule("TGNetService"); TGNetService_NetRequestWrap.Register(L); TGNetService_NetEventWrap.Register(L); L.RegFunction("NetEventHanlder", TGNetService_NetEventHanlder); L.RegFunction("NetEventHanlderSelf", TGNetService_NetEventHanlder_Self); L.EndModule(); L.BeginModule("NTGResourceController"); NTGResourceController_AssetLoaderWrap.Register(L); L.EndModule(); L.BeginModule("NTGBattleUIController"); NTGBattleUIController_BattleUpdateDataWrap.Register(L); NTGBattleUIController_BattleUpdateSkillDataWrap.Register(L); NTGBattleUIController_BattleUpdatePlayerDataWrap.Register(L); NTGBattleUIController_UIBattleInfoItemWrap.Register(L); L.EndModule(); L.BeginModule("NTGBattleUnitController"); NTGBattleUnitController_UnitBuffWrap.Register(L); L.EndModule(); L.BeginModule("Newtonsoft"); L.BeginModule("Json"); L.BeginModule("Linq"); Newtonsoft_Json_Linq_JObjectWrap.Register(L); Newtonsoft_Json_Linq_JContainerWrap.Register(L); Newtonsoft_Json_Linq_JTokenWrap.Register(L); Newtonsoft_Json_Linq_JPropertyWrap.Register(L); Newtonsoft_Json_Linq_JValueWrap.Register(L); Newtonsoft_Json_Linq_JArrayWrap.Register(L); L.EndModule(); L.EndModule(); L.EndModule(); L.BeginModule("NTGEventTriggerProxy"); L.RegFunction("PointerEventDelegate", NTGEventTriggerProxy_PointerEventDelegate); L.RegFunction("PointerEventDelegateSelf", NTGEventTriggerProxy_PointerEventDelegate_Self); L.RegFunction("BaseEventDelegate", NTGEventTriggerProxy_BaseEventDelegate); L.RegFunction("BaseEventDelegateSelf", NTGEventTriggerProxy_BaseEventDelegate_Self); L.RegFunction("AxisBaseEventDelegate", NTGEventTriggerProxy_AxisBaseEventDelegate); L.RegFunction("AxisBaseEventDelegateSelf", NTGEventTriggerProxy_AxisBaseEventDelegate_Self); 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); UnityEngine_ComponentWrap.Register(L); UnityEngine_TransformWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_MaterialWrap.Register(L); UnityEngine_CameraWrap.Register(L); UnityEngine_AudioSourceWrap.Register(L); UnityEngine_LineRendererWrap.Register(L); UnityEngine_BehaviourWrap.Register(L); UnityEngine_MonoBehaviourWrap.Register(L); UnityEngine_GameObjectWrap.Register(L); UnityEngine_TrackedReferenceWrap.Register(L); UnityEngine_ApplicationWrap.Register(L); UnityEngine_PhysicsWrap.Register(L); UnityEngine_ColliderWrap.Register(L); UnityEngine_PolygonCollider2DWrap.Register(L); UnityEngine_BoxCollider2DWrap.Register(L); UnityEngine_TextureWrap.Register(L); UnityEngine_Texture2DWrap.Register(L); UnityEngine_ShaderWrap.Register(L); UnityEngine_RendererWrap.Register(L); UnityEngine_ScreenWrap.Register(L); UnityEngine_CameraClearFlagsWrap.Register(L); UnityEngine_AudioClipWrap.Register(L); UnityEngine_AssetBundleWrap.Register(L); UnityEngine_ParticleSystemRendererWrap.Register(L); UnityEngine_ParticleSystem_MainModuleWrap.Register(L); UnityEngine_AsyncOperationWrap.Register(L); UnityEngine_LightTypeWrap.Register(L); UnityEngine_SleepTimeoutWrap.Register(L); UnityEngine_AnimatorWrap.Register(L); UnityEngine_AnimatorOverrideControllerWrap.Register(L); UnityEngine_AnimatorUpdateModeWrap.Register(L); UnityEngine_InputWrap.Register(L); UnityEngine_SkinnedMeshRendererWrap.Register(L); UnityEngine_SpaceWrap.Register(L); UnityEngine_RectWrap.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_SpriteWrap.Register(L); UnityEngine_SpriteRendererWrap.Register(L); UnityEngine_Rendering_SortingGroupWrap.Register(L); LuaProfilerWrap.Register(L); System_Collections_Generic_List_UnityEngine_GameObjectWrap.Register(L); System_Diagnostics_StopwatchWrap.Register(L); UnityEngine_Playables_PlayableDirectorWrap.Register(L); UnityEngine_Playables_PlayableAssetWrap.Register(L); UnityEngine_Timeline_TimelineAssetWrap.Register(L); System_Collections_Generic_List_UnityEngine_Playables_PlayableAssetWrap.Register(L); System_Collections_Generic_List_stringWrap.Register(L); LocalizationWrap.Register(L); TableHandlerWrap.Register(L); ConfigHandlerWrap.Register(L); GameMainWrap.Register(L); UIMgrWrap.Register(L); ResModuleUtilityWrap.Register(L); NetworkMgrWrap.Register(L); AudioMgrWrap.Register(L); CommonUtilsWrap.Register(L); FullScreenWrap.Register(L); DebuggerWrap.Register(L); UISystemWrap.Register(L); UIModWrap.Register(L); UIItemWrap.Register(L); UnityEngine_UI_LayoutRebuilderWrap.Register(L); UnityEngine_RectTransformUtilityWrap.Register(L); UnityEngine_UI_VerticalLayoutGroupWrap.Register(L); UnityEngine_UI_HorizontalLayoutGroupWrap.Register(L); UnityEngine_UI_GridLayoutGroupWrap.Register(L); UnityEngine_UI_ToggleGroupWrap.Register(L); UnityEngine_CanvasWrap.Register(L); UnityEngine_CanvasGroupWrap.Register(L); UnityEngine_RectOffsetWrap.Register(L); UIImageWrap.Register(L); UIRawImageWrap.Register(L); UITextWrap.Register(L); UIButtonWrap.Register(L); UIToggleWrap.Register(L); UISliderWrap.Register(L); UIScrollViewWrap.Register(L); UIScrollbarWrap.Register(L); UIInputFieldWrap.Register(L); UIRaycastWrap.Register(L); UIPolygonRaycastWrap.Register(L); L.BeginModule("UnityEngine"); UnityEngine_TimeWrap.Register(L); UnityEngine_KeyCodeWrap.Register(L); UnityEngine_AudioBehaviourWrap.Register(L); UnityEngine_Collider2DWrap.Register(L); UnityEngine_RuntimeAnimatorControllerWrap.Register(L); UnityEngine_ScriptableObjectWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.Register(L); UnityEngine_UI_LayoutGroupWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_RawImageWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_ScrollbarWrap.Register(L); UnityEngine_UI_InputFieldWrap.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("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.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.RegFunction("Predicate_int", System_Predicate_int); L.RegFunction("Action_int", System_Action_int); L.RegFunction("Comparison_int", System_Comparison_int); L.RegFunction("Func_int_int", System_Func_int_int); L.RegFunction("Action_bool", System_Action_bool); L.RegFunction("Func_bool", System_Func_bool); L.RegFunction("Action_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation); L.RegFunction("Predicate_UnityEngine_GameObject", System_Predicate_UnityEngine_GameObject); L.RegFunction("Action_UnityEngine_GameObject", System_Action_UnityEngine_GameObject); L.RegFunction("Comparison_UnityEngine_GameObject", System_Comparison_UnityEngine_GameObject); L.RegFunction("Action_UnityEngine_Playables_PlayableDirector", System_Action_UnityEngine_Playables_PlayableDirector); L.RegFunction("Predicate_UnityEngine_Playables_PlayableAsset", System_Predicate_UnityEngine_Playables_PlayableAsset); L.RegFunction("Action_UnityEngine_Playables_PlayableAsset", System_Action_UnityEngine_Playables_PlayableAsset); L.RegFunction("Comparison_UnityEngine_Playables_PlayableAsset", System_Comparison_UnityEngine_Playables_PlayableAsset); L.RegFunction("Predicate_string", System_Predicate_string); L.RegFunction("Action_string", System_Action_string); L.RegFunction("Comparison_string", System_Comparison_string); L.RegFunction("Action_float", System_Action_float); 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); LuaAndCMsgCenterWrap.Register(L); AssetRequesetMsgWrap.Register(L); AssetEventWrap.Register(L); AssetResponseMsgWrap.Register(L); LuaUIPanelWrap.Register(L); LuaUIBehaviourWrap.Register(L); UtilWrap.Register(L); SigninSqWrap.Register(L); LoginSqWrap.Register(L); ChooseRoleStrWrap.Register(L); SourcesLoadSqWrap.Register(L); ObjectsInfoWrap.Register(L); ShopWeaponWrap.Register(L); ShopWeaponItemWrap.Register(L); SkillsInfoWrap.Register(L); SkillItemWrap.Register(L); NNPPCCWrap.Register(L); UIBasesWrap.Register(L); L.BeginModule("LuaInterface"); LuaInterface_DebuggerWrap.Register(L); L.EndModule(); L.BeginModule("UnityEngine"); UnityEngine_DebugWrap.Register(L); UnityEngine_ComponentWrap.Register(L); UnityEngine_TransformWrap.Register(L); UnityEngine_MaterialWrap.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_RectWrap.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_FontWrap.Register(L); UnityEngine_AnimationCurveWrap.Register(L); UnityEngine_CanvasGroupWrap.Register(L); UnityEngine_GradientWrap.Register(L); UnityEngine_SkyboxWrap.Register(L); UnityEngine_TextMeshWrap.Register(L); UnityEngine_ResolutionWrap.Register(L); UnityEngine_CanvasWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_SpriteWrap.Register(L); UnityEngine_RectOffsetWrap.Register(L); UnityEngine_TextAssetWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_RawImageWrap.Register(L); UnityEngine_UI_CanvasScalerWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_SpriteStateWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_GridLayoutGroupWrap.Register(L); UnityEngine_UI_LayoutGroupWrap.Register(L); UnityEngine_UI_OutlineWrap.Register(L); UnityEngine_UI_ShadowWrap.Register(L); UnityEngine_UI_BaseMeshEffectWrap.Register(L); L.BeginModule("Button"); UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L); L.EndModule(); L.BeginModule("MaskableGraphic"); UnityEngine_UI_MaskableGraphic_CullStateChangedEventWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("Events"); UnityEngine_Events_UnityEventBaseWrap.Register(L); UnityEngine_Events_UnityEventWrap.Register(L); UnityEngine_Events_UnityEvent_boolWrap.Register(L); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.RegFunction("UnityAction_bool", UnityEngine_Events_UnityAction_bool); L.RegFunction("UnityAction_UnityEngine_EventSystems_BaseEventData", UnityEngine_Events_UnityAction_UnityEngine_EventSystems_BaseEventData); L.RegFunction("UnityAction_float", UnityEngine_Events_UnityAction_float); L.RegFunction("UnityAction_string", UnityEngine_Events_UnityAction_string); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_PointerEventDataWrap.Register(L); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); UnityEngine_EventSystems_BaseEventDataWrap.Register(L); UnityEngine_EventSystems_AbstractEventDataWrap.Register(L); 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("Font"); L.RegFunction("FontTextureRebuildCallback", UnityEngine_Font_FontTextureRebuildCallback); 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("U3DEventFrame"); U3DEventFrame_MsgBaseWrap.Register(L); U3DEventFrame_MonoBaseWrap.Register(L); U3DEventFrame_AssetManagerWrap.Register(L); U3DEventFrame_UIManagerWrap.Register(L); U3DEventFrame_MsgCenterWrap.Register(L); U3DEventFrame_ManagerBaseWrap.Register(L); U3DEventFrame_UIBaseWrap.Register(L); U3DEventFrame_NPCBaseWrap.Register(L); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.RegFunction("Action_UnityEngine_Font", System_Action_UnityEngine_Font); 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); 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); }