public static void Bind(IntPtr L) { AnimationClipWrap.Register(L); BehaviourWrap.Register(L); CanvasWrap.Register(L); CBallCurvMotorWrap.Register(L); CFxFollowTargetWrap.Register(L); CFxOneWrap.Register(L); CGameSessionWrap.Register(L); CGhostEffectManWrap.Register(L); CHUDFollowTargetWrap.Register(L); CLinearMotorWrap.Register(L); CMotorWrap.Register(L); CMutantBezierMotorWrap.Register(L); ComponentWrap.Register(L); CParabolicMotorWrap.Register(L); CTargetMotorWrap.Register(L); DG_Tweening_DOTweenAnimationWrap.Register(L); DG_Tweening_DOTweenPlayerWrap.Register(L); EntityComponent_AnimationUnitWrap.Register(L); EntityComponent_CombatStateChangeBehaviourWrap.Register(L); EntityComponent_HorseStandBehaviourWrap.Register(L); EntityComponent_NpcStandBehaviourWrap.Register(L); GameObjectPoolWrap.Register(L); GBaseWrap.Register(L); GBloodWrap.Register(L); GButtonWrap.Register(L); GDragablePageViewWrap.Register(L); GNewGridBaseWrap.Register(L); GNewIOSToggleWrap.Register(L); GNewLayoutTableWrap.Register(L); GNewListBaseWrap.Register(L); GNewListLoopWrap.Register(L); GNewListWrap.Register(L); GNewTableBaseWrap.Register(L); GNewTabListWrap.Register(L); GNewUIBaseWrap.Register(L); GNewUI_GUISceneWrap.Register(L); GScaleScrollWrap.Register(L); GTextWrap.Register(L); LightWrap.Register(L); MonoBehaviourWrap.Register(L); PlayModeWrap.Register(L); RectTransformWrap.Register(L); ResourcesWrap.Register(L); SystemInfoWrap.Register(L); TimeWrap.Register(L); UIEventListenerWrap.Register(L); UITemplateWrap.Register(L); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_GraphicRaycasterWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_ScrollbarWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); }
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); AudioManagerWrap.Register(L); NotificationManagerWrap.Register(L); LocalizationWrap.Register(L); DeviceHelperWrap.Register(L); ArmyMoveWrap.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); UIScrollPageWrap.Register(L); UIScrollBaseWrap.Register(L); UIScrollRingWrap.Register(L); UIScrollViewWrap.Register(L); UIClippingLoopWrap.Register(L); UIDragSensorWrap.Register(L); UITextWrap.Register(L); UIToggleWrap.Register(L); UITweenWrap.Register(L); UITweenRectPositionWrap.Register(L); UITweenRectPositionBetweenWrap.Register(L); UITweenFadeWrap.Register(L); UITweenColorWrap.Register(L); UITweenLocalPositionWrap.Register(L); UITweenLocalPositionBetweenWrap.Register(L); UITweenScaleWrap.Register(L); UITweenScale1Wrap.Register(L); UITweenPositionWrap.Register(L); UITweenSizeDeltaWrap.Register(L); UITweenCityBuildingWrap.Register(L); UITweenMoveWrap.Register(L); UITweenJumpWrap.Register(L); UITweenPathWrap.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); ReferenceWrap.Register(L); UIPolygonChartWrap.Register(L); UIAutoSizeWrap.Register(L); UITextAgentWrap.Register(L); SpriteAnimationWrap.Register(L); YlyAssetIdentifyWrap.Register(L); YlyRichTextWrap.Register(L); YlyDelegateUtilWrap.Register(L); GizmoPlaneWrap.Register(L); GizmoBezierLineWrap.Register(L); BezierWrap.Register(L); BezierMoveWrap.Register(L); CityWrap.Register(L); CityCameraWrap.Register(L); CityBuildingWrap.Register(L); CityLandWrap.Register(L); CharacterWrap.Register(L); MapBorderWrap.Register(L); MapUnitMoveWrap.Register(L); WorldMapCameraWrap.Register(L); WorldMapThumbCameraWrap.Register(L); ScreenBlurWrap.Register(L); ChannelSDKWrap.Register(L); UIPrimitiveBaseWrap.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_CanvasWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_RectWrap.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_ToggleWrap.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("Canvas"); L.RegFunction("WillRenderCanvases", UnityEngine_Canvas_WillRenderCanvases); 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("LKCamera"); LKCamera_Camera2DWrap.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("Action_UnityEngine_Object", System_Action_UnityEngine_Object); L.EndModule(); L.BeginModule("GameManager"); L.RegFunction("LuaExecute", GameManager_LuaExecute); L.EndModule(); L.BeginModule("AudioManager"); L.RegFunction("SwitchChanged", AudioManager_SwitchChanged); L.EndModule(); L.BeginModule("UIInputFieldSubmit"); L.RegFunction("OnValidateInput", UIInputFieldSubmit_OnValidateInput); L.EndModule(); L.BeginModule("UITween"); L.RegFunction("OnFinish", UITween_OnFinish); L.EndModule(); L.BeginModule("UIProgress"); L.RegFunction("LuaCallback", UIProgress_LuaCallback); L.EndModule(); L.BeginModule("YlyDelegateUtil"); L.RegFunction("StringDelegate", YlyDelegateUtil_StringDelegate); L.EndModule(); L.BeginModule("Character"); L.RegFunction("OnEvent", Character_OnEvent); 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); Common_UtilsWrap.Register(L); LuaResourceMgrWrap.Register(L); SorterTagWrap.Register(L); ParticleOrderAutoSorterWrap.Register(L); LuaInterface_DebuggerWrap.Register(L); TimeHelperWrap.Register(L); ColaHelperWrap.Register(L); UGUIMsgHandlerWrap.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.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_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_GraphicRaycasterWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_RawImageWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_BaseRaycasterWrap.Register(L); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); L.EndModule(); L.BeginModule("Events"); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.EndModule(); L.BeginModule("Camera"); L.RegFunction("CameraCallback", UnityEngine_Camera_CameraCallback); L.EndModule(); L.BeginModule("Application"); L.RegFunction("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback); L.RegFunction("LowMemoryCallback", UnityEngine_Application_LowMemoryCallback); L.RegFunction("LogCallback", UnityEngine_Application_LogCallback); L.EndModule(); L.BeginModule("AudioClip"); L.RegFunction("PCMReaderCallback", UnityEngine_AudioClip_PCMReaderCallback); L.RegFunction("PCMSetPositionCallback", UnityEngine_AudioClip_PCMSetPositionCallback); L.EndModule(); L.BeginModule("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_UnityEngine_GameObject", System_Action_UnityEngine_GameObject); L.RegFunction("Action_string_string", System_Action_string_string); L.RegFunction("Action_string_bytes", System_Action_string_bytes); L.RegFunction("Action_UnityEngine_Object", System_Action_UnityEngine_Object); 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 t = Time.realtimeSinceStartup; L.BeginModule(null); DG_Tweening_DOTweenAnimationWrap.Register(L); 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_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_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_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_SpriteRendererWrap.Register(L); LuaProfilerWrap.Register(L); NetworkManagerWrap.Register(L); AudioManagerWrap.Register(L); ResourceManagerWrap.Register(L); UISystemWrap.Register(L); UIModWrap.Register(L); UIItemWrap.Register(L); UIManagerWrap.Register(L); UnityEngine_UI_LayoutRebuilderWrap.Register(L); AppConstWrap.Register(L); LobbyCameraWrap.Register(L); XRandomWrap.Register(L); DebuggerWrap.Register(L); FightLogWrap.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); UIPolygonRaycastWrap.Register(L); WrapContentWrap.Register(L); LocalizationWrap.Register(L); ConfigHandlerWrap.Register(L); TableHandlerWrap.Register(L); Spine_Unity_SkeletonAnimationWrap.Register(L); Camera2DWrap.Register(L); L.RegFunction("AlignToFinish", AlignToFinish); L.RegFunction("UpdateItemDelegate", UpdateItemDelegate); L.BeginModule("UnityEngine"); UnityEngine_TimeWrap.Register(L); UnityEngine_KeyCodeWrap.Register(L); UnityEngine_RuntimeAnimatorControllerWrap.Register(L); UnityEngine_ScriptableObjectWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_UIRaycastWrap.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("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("Spine"); Spine_SkeletonDataWrap.Register(L); Spine_AnimationWrap.Register(L); Spine_SkinWrap.Register(L); Spine_ExposedList_Spine_AnimationWrap.Register(L); Spine_ExposedList_Spine_SkinWrap.Register(L); Spine_SkeletonWrap.Register(L); L.BeginModule("Unity"); Spine_Unity_SkeletonRendererWrap.Register(L); Spine_Unity_SkeletonDataAssetWrap.Register(L); L.RegFunction("MeshGeneratorDelegate", Spine_Unity_MeshGeneratorDelegate); L.RegFunction("UpdateBonesDelegate", Spine_Unity_UpdateBonesDelegate); L.BeginModule("SkeletonRenderer"); L.RegFunction("SkeletonRendererDelegate", Spine_Unity_SkeletonRenderer_SkeletonRendererDelegate); L.RegFunction("InstructionDelegate", Spine_Unity_SkeletonRenderer_InstructionDelegate); L.EndModule(); L.EndModule(); L.EndModule(); L.BeginModule("DG"); L.BeginModule("Tweening"); L.RegFunction("TweenAnimCallBack", DG_Tweening_TweenAnimCallBack); L.BeginModule("Core"); DG_Tweening_Core_ABSAnimationComponentWrap.Register(L); L.EndModule(); L.EndModule(); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.RegFunction("Predicate_int", System_Predicate_int); L.RegFunction("Action_int", System_Action_int); L.RegFunction("Comparison_int", System_Comparison_int); L.RegFunction("Func_int_int", System_Func_int_int); L.RegFunction("Action_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation); L.RegFunction("Action_string_UnityEngine_Sprite", System_Action_string_UnityEngine_Sprite); L.RegFunction("Action_string_UnityEngine_GameObject", System_Action_string_UnityEngine_GameObject); L.RegFunction("Action_string_UnityEngine_Object", System_Action_string_UnityEngine_Object); L.RegFunction("Action_System_Collections_Generic_Dictionary_string_UnityEngine_GameObject", System_Action_System_Collections_Generic_Dictionary_string_UnityEngine_GameObject); L.RegFunction("Predicate_Spine_Animation", System_Predicate_Spine_Animation); L.RegFunction("Action_Spine_Animation", System_Action_Spine_Animation); L.RegFunction("Comparison_Spine_Animation", System_Comparison_Spine_Animation); L.RegFunction("Predicate_Spine_Skin", System_Predicate_Spine_Skin); L.RegFunction("Action_Spine_Skin", System_Action_Spine_Skin); L.RegFunction("Comparison_Spine_Skin", System_Comparison_Spine_Skin); 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(); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); ByteArrayWrap.Register(L); TouchTriggerWrap.Register(L); LinkImageTextWrap.Register(L); UIScrollContentWrap.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_AssetBundleRequestWrap.Register(L); UnityEngine_AssetBundleManifestWrap.Register(L); UnityEngine_AssetBundleCreateRequestWrap.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_CanvasWrap.Register(L); UnityEngine_RenderModeWrap.Register(L); UnityEngine_SpriteWrap.Register(L); UnityEngine_RectWrap.Register(L); UnityEngine_FontWrap.Register(L); UnityEngine_FontStyleWrap.Register(L); UnityEngine_TextAnchorWrap.Register(L); UnityEngine_HorizontalWrapModeWrap.Register(L); UnityEngine_VerticalWrapModeWrap.Register(L); UnityEngine_AnimatorStateInfoWrap.Register(L); UnityEngine_AudioBehaviourWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_ContentSizeFitterWrap.Register(L); UnityEngine_UI_GraphicRaycasterWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_MaskWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); L.BeginModule("ContentSizeFitter"); UnityEngine_UI_ContentSizeFitter_FitModeWrap.Register(L); L.EndModule(); L.BeginModule("Button"); UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L); L.EndModule(); L.BeginModule("InputField"); UnityEngine_UI_InputField_OnChangeEventWrap.Register(L); UnityEngine_UI_InputField_SubmitEventWrap.Register(L); UnityEngine_UI_InputField_LineTypeWrap.Register(L); UnityEngine_UI_InputField_ContentTypeWrap.Register(L); L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput); L.EndModule(); L.BeginModule("Toggle"); UnityEngine_UI_Toggle_ToggleEventWrap.Register(L); L.EndModule(); L.BeginModule("Dropdown"); UnityEngine_UI_Dropdown_DropdownEventWrap.Register(L); L.EndModule(); L.BeginModule("ScrollRect"); UnityEngine_UI_ScrollRect_MovementTypeWrap.Register(L); L.EndModule(); L.BeginModule("Image"); UnityEngine_UI_Image_TypeWrap.Register(L); UnityEngine_UI_Image_FillMethodWrap.Register(L); UnityEngine_UI_Image_OriginHorizontalWrap.Register(L); UnityEngine_UI_Image_OriginVerticalWrap.Register(L); UnityEngine_UI_Image_Origin90Wrap.Register(L); UnityEngine_UI_Image_Origin180Wrap.Register(L); UnityEngine_UI_Image_Origin360Wrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_EventSystemWrap.Register(L); UnityEngine_EventSystems_PointerEventDataWrap.Register(L); UnityEngine_EventSystems_RaycastResultWrap.Register(L); UnityEngine_EventSystems_StandaloneInputModuleWrap.Register(L); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); UnityEngine_EventSystems_BaseEventDataWrap.Register(L); UnityEngine_EventSystems_AbstractEventDataWrap.Register(L); UnityEngine_EventSystems_PointerInputModuleWrap.Register(L); UnityEngine_EventSystems_BaseInputModuleWrap.Register(L); UnityEngine_EventSystems_BaseRaycasterWrap.Register(L); L.EndModule(); L.BeginModule("Events"); UnityEngine_Events_UnityEventWrap.Register(L); UnityEngine_Events_UnityEventBaseWrap.Register(L); UnityEngine_Events_UnityEvent_intWrap.Register(L); UnityEngine_Events_UnityEvent_stringWrap.Register(L); UnityEngine_Events_UnityEvent_boolWrap.Register(L); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.RegFunction("UnityAction_int", UnityEngine_Events_UnityAction_int); L.RegFunction("UnityAction_string", UnityEngine_Events_UnityAction_string); L.RegFunction("UnityAction_bool", UnityEngine_Events_UnityAction_bool); 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.BeginModule("Canvas"); L.RegFunction("WillRenderCanvases", UnityEngine_Canvas_WillRenderCanvases); L.EndModule(); L.BeginModule("Font"); L.RegFunction("FontTextureRebuildCallback", UnityEngine_Font_FontTextureRebuildCallback); 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_EventSystems_RaycastResult", System_Predicate_UnityEngine_EventSystems_RaycastResult); L.RegFunction("Action_UnityEngine_EventSystems_RaycastResult", System_Action_UnityEngine_EventSystems_RaycastResult); L.RegFunction("Comparison_UnityEngine_EventSystems_RaycastResult", System_Comparison_UnityEngine_EventSystems_RaycastResult); L.RegFunction("Action_UnityEngine_Font", System_Action_UnityEngine_Font); L.RegFunction("Func_string_UnityEngine_GameObject", System_Func_string_UnityEngine_GameObject); L.BeginModule("Collections"); L.BeginModule("Generic"); System_Collections_Generic_List_UnityEngine_EventSystems_RaycastResultWrap.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); ExcelBookObjectWrap.Register(L); ExcelHeaderWrap.Register(L); ExcelSheetObjectWrap.Register(L); MutiExcelSheetObjectWrap.Register(L); MyToolsWrap.Register(L); ZFDebugWrap.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_RenderSettingsWrap.Register(L); UnityEngine_ResourcesWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_AudioBehaviourWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_RawImageWrap.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("Camera"); L.RegFunction("CameraCallback", UnityEngine_Camera_CameraCallback); L.EndModule(); L.BeginModule("Application"); L.RegFunction("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback); L.RegFunction("LowMemoryCallback", UnityEngine_Application_LowMemoryCallback); L.RegFunction("LogCallback", UnityEngine_Application_LogCallback); L.EndModule(); L.BeginModule("AudioClip"); L.RegFunction("PCMReaderCallback", UnityEngine_AudioClip_PCMReaderCallback); L.RegFunction("PCMSetPositionCallback", UnityEngine_AudioClip_PCMSetPositionCallback); L.EndModule(); L.BeginModule("RectTransform"); L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties); L.EndModule(); L.EndModule(); L.BeginModule("LuaFramework"); LuaFramework_UtilWrap.Register(L); LuaFramework_AppConstWrap.Register(L); LuaFramework_LuaHelperWrap.Register(L); LuaFramework_ByteBufferWrap.Register(L); LuaFramework_LuaBehaviourWrap.Register(L); LuaFramework_GameManagerWrap.Register(L); LuaFramework_LuaManagerWrap.Register(L); LuaFramework_PanelManagerWrap.Register(L); LuaFramework_SoundManagerWrap.Register(L); LuaFramework_TimerManagerWrap.Register(L); LuaFramework_ThreadManagerWrap.Register(L); LuaFramework_NetworkManagerWrap.Register(L); LuaFramework_ResourceManagerWrap.Register(L); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.RegFunction("Predicate_int", System_Predicate_int); L.RegFunction("Action_int", System_Action_int); L.RegFunction("Comparison_int", System_Comparison_int); L.RegFunction("Func_int_int", System_Func_int_int); L.RegFunction("Func_bool", System_Func_bool); L.RegFunction("Action_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation); L.RegFunction("Action_NotiData", System_Action_NotiData); L.RegFunction("Action_UnityEngine_Objects", System_Action_UnityEngine_Objects); L.EndModule(); L.EndModule(); L.BeginPreLoad(); L.AddPreLoad("UnityEngine.MeshRenderer", LuaOpen_UnityEngine_MeshRenderer, typeof(UnityEngine.MeshRenderer)); L.AddPreLoad("UnityEngine.BoxCollider", LuaOpen_UnityEngine_BoxCollider, typeof(UnityEngine.BoxCollider)); L.AddPreLoad("UnityEngine.MeshCollider", LuaOpen_UnityEngine_MeshCollider, typeof(UnityEngine.MeshCollider)); L.AddPreLoad("UnityEngine.SphereCollider", LuaOpen_UnityEngine_SphereCollider, typeof(UnityEngine.SphereCollider)); L.AddPreLoad("UnityEngine.CharacterController", LuaOpen_UnityEngine_CharacterController, typeof(UnityEngine.CharacterController)); L.AddPreLoad("UnityEngine.CapsuleCollider", LuaOpen_UnityEngine_CapsuleCollider, typeof(UnityEngine.CapsuleCollider)); L.AddPreLoad("UnityEngine.Animation", LuaOpen_UnityEngine_Animation, typeof(UnityEngine.Animation)); L.AddPreLoad("UnityEngine.AnimationClip", LuaOpen_UnityEngine_AnimationClip, typeof(UnityEngine.AnimationClip)); L.AddPreLoad("UnityEngine.AnimationState", LuaOpen_UnityEngine_AnimationState, typeof(UnityEngine.AnimationState)); L.AddPreLoad("UnityEngine.BlendWeights", LuaOpen_UnityEngine_BlendWeights, typeof(UnityEngine.BlendWeights)); L.AddPreLoad("UnityEngine.RenderTexture", LuaOpen_UnityEngine_RenderTexture, typeof(UnityEngine.RenderTexture)); L.AddPreLoad("UnityEngine.Rigidbody", LuaOpen_UnityEngine_Rigidbody, typeof(UnityEngine.Rigidbody)); L.EndPreLoad(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); DebuggerWrap.Register(L); L.BeginModule("UnityEngine"); UnityEngine_ComponentWrap.Register(L); UnityEngine_TransformWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_RectWrap.Register(L); UnityEngine_MaterialWrap.Register(L); UnityEngine_LightWrap.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_SystemInfoWrap.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_CanvasWrap.Register(L); UnityEngine_PlayerPrefsWrap.Register(L); UnityEngine_RuntimeAnimatorControllerWrap.Register(L); UnityEngine_AnimationEventWrap.Register(L); UnityEngine_AvatarIKGoalWrap.Register(L); UnityEngine_ControllerColliderHitWrap.Register(L); UnityEngine_AnimatorStateInfoWrap.Register(L); UnityEngine_RectTransformUtilityWrap.Register(L); 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_ScrollbarWrap.Register(L); UnityEngine_UI_DropdownWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_GraphicRaycasterWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); L.BeginModule("Button"); UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L); L.EndModule(); L.BeginModule("Scrollbar"); UnityEngine_UI_Scrollbar_ScrollEventWrap.Register(L); L.EndModule(); L.BeginModule("Toggle"); UnityEngine_UI_Toggle_ToggleEventWrap.Register(L); L.EndModule(); L.BeginModule("Slider"); UnityEngine_UI_Slider_SliderEventWrap.Register(L); L.EndModule(); L.BeginModule("ScrollRect"); UnityEngine_UI_ScrollRect_ScrollRectEventWrap.Register(L); L.EndModule(); 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); 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"); UnityEngine_Events_UnityEventWrap.Register(L); UnityEngine_Events_UnityEventBaseWrap.Register(L); UnityEngine_Events_UnityEvent_floatWrap.Register(L); UnityEngine_Events_UnityEvent_boolWrap.Register(L); UnityEngine_Events_UnityEvent_UnityEngine_Vector2Wrap.Register(L); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.RegFunction("UnityAction_float", UnityEngine_Events_UnityAction_float); L.RegFunction("UnityAction_bool", UnityEngine_Events_UnityAction_bool); L.RegFunction("UnityAction_UnityEngine_Vector2", UnityEngine_Events_UnityAction_UnityEngine_Vector2); L.EndModule(); L.EndModule(); L.BeginModule("Game"); Game_LuaObjectWrap.Register(L); Game_UtilsWrap.Register(L); Game_LuaGameWrap.Register(L); Game_LoaderWrap.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); MonoManagerWrap.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_YieldInstructionWrap.Register(L); UnityEngine_WaitForEndOfFrameWrap.Register(L); UnityEngine_WaitForFixedUpdateWrap.Register(L); UnityEngine_WaitForSecondsWrap.Register(L); UnityEngine_ObjectWrap.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_RandomWrap.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_TextAssetWrap.Register(L); UnityEngine_DebugWrap.Register(L); UnityEngine_SpriteRendererWrap.Register(L); UnityEngine_AudioListenerWrap.Register(L); UnityEngine_SystemInfoWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_CanvasWrap.Register(L); UnityEngine_CanvasGroupWrap.Register(L); UnityEngine_AudioBehaviourWrap.Register(L); L.BeginModule("SceneManagement"); UnityEngine_SceneManagement_SceneManagerWrap.Register(L); L.EndModule(); L.BeginModule("UI"); UnityEngine_UI_GraphicRaycasterWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_RawImageWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_ScrollbarWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); UnityEngine_UI_ToggleGroupWrap.Register(L); UnityEngine_UI_MaskWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_CanvasScalerWrap.Register(L); UnityEngine_UI_DropdownWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); L.BeginModule("Dropdown"); UnityEngine_UI_Dropdown_DropdownEventWrap.Register(L); UnityEngine_UI_Dropdown_OptionDataWrap.Register(L); L.EndModule(); L.BeginModule("Toggle"); UnityEngine_UI_Toggle_ToggleEventWrap.Register(L); L.EndModule(); L.BeginModule("InputField"); UnityEngine_UI_InputField_OnChangeEventWrap.Register(L); L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput); L.EndModule(); L.EndModule(); L.BeginModule("Events"); UnityEngine_Events_UnityEventWrap.Register(L); UnityEngine_Events_UnityEventBaseWrap.Register(L); UnityEngine_Events_UnityEvent_intWrap.Register(L); UnityEngine_Events_UnityEvent_boolWrap.Register(L); UnityEngine_Events_UnityEvent_stringWrap.Register(L); 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.RegFunction("UnityAction_int", UnityEngine_Events_UnityAction_int); L.RegFunction("UnityAction_bool", UnityEngine_Events_UnityAction_bool); L.RegFunction("UnityAction_string", UnityEngine_Events_UnityAction_string); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_EventSystemWrap.Register(L); UnityEngine_EventSystems_StandaloneInputModuleWrap.Register(L); UnityEngine_EventSystems_BaseRaycasterWrap.Register(L); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); UnityEngine_EventSystems_PointerInputModuleWrap.Register(L); UnityEngine_EventSystems_BaseInputModuleWrap.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("RectTransform"); L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties); L.EndModule(); L.BeginModule("Canvas"); L.RegFunction("WillRenderCanvases", UnityEngine_Canvas_WillRenderCanvases); L.EndModule(); L.EndModule(); L.BeginModule("Generic"); Generic_ObjectExternionsWrap.Register(L); Generic_GameObjectExternionsWrap.Register(L); Generic_ComponentExternionsWrap.Register(L); Generic_ResourcesExternionsWrap.Register(L); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.RegFunction("Predicate_int", System_Predicate_int); L.RegFunction("Action_int", System_Action_int); L.RegFunction("Comparison_int", System_Comparison_int); L.RegFunction("Func_int_int", System_Func_int_int); L.RegFunction("Func_bool", System_Func_bool); L.RegFunction("Action_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation); L.EndModule(); L.EndModule(); L.BeginPreLoad(); L.AddPreLoad("UnityEngine.MeshRenderer", LuaOpen_UnityEngine_MeshRenderer, typeof(UnityEngine.MeshRenderer)); L.AddPreLoad("UnityEngine.BoxCollider", LuaOpen_UnityEngine_BoxCollider, typeof(UnityEngine.BoxCollider)); L.AddPreLoad("UnityEngine.MeshCollider", LuaOpen_UnityEngine_MeshCollider, typeof(UnityEngine.MeshCollider)); L.AddPreLoad("UnityEngine.SphereCollider", LuaOpen_UnityEngine_SphereCollider, typeof(UnityEngine.SphereCollider)); L.AddPreLoad("UnityEngine.CharacterController", LuaOpen_UnityEngine_CharacterController, typeof(UnityEngine.CharacterController)); L.AddPreLoad("UnityEngine.CapsuleCollider", LuaOpen_UnityEngine_CapsuleCollider, typeof(UnityEngine.CapsuleCollider)); L.AddPreLoad("UnityEngine.Animation", LuaOpen_UnityEngine_Animation, typeof(UnityEngine.Animation)); L.AddPreLoad("UnityEngine.AnimationClip", LuaOpen_UnityEngine_AnimationClip, typeof(UnityEngine.AnimationClip)); L.AddPreLoad("UnityEngine.AnimationState", LuaOpen_UnityEngine_AnimationState, typeof(UnityEngine.AnimationState)); L.AddPreLoad("UnityEngine.BlendWeights", LuaOpen_UnityEngine_BlendWeights, typeof(UnityEngine.BlendWeights)); L.AddPreLoad("UnityEngine.RenderTexture", LuaOpen_UnityEngine_RenderTexture, typeof(UnityEngine.RenderTexture)); L.AddPreLoad("UnityEngine.Rigidbody", LuaOpen_UnityEngine_Rigidbody, typeof(UnityEngine.Rigidbody)); L.EndPreLoad(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }
public static void Bind(IntPtr L, string type = null) { if (type == null || wrapList.Contains(type)) { return; } wrapList.Add(type); type += "Wrap"; switch (type) { case "AnimationBlendModeWrap": AnimationBlendModeWrap.Register(L); break; case "AnimationClipWrap": AnimationClipWrap.Register(L); break; case "AnimationStateWrap": AnimationStateWrap.Register(L); break; case "AnimationWrap": AnimationWrap.Register(L); break; case "AppConstWrap": AppConstWrap.Register(L); break; case "ApplicationWrap": ApplicationWrap.Register(L); break; case "AssetBundleWrap": AssetBundleWrap.Register(L); break; case "AsyncOperationWrap": AsyncOperationWrap.Register(L); break; case "AudioClipWrap": AudioClipWrap.Register(L); break; case "AudioSourceWrap": AudioSourceWrap.Register(L); break; case "BehaviourWrap": BehaviourWrap.Register(L); break; case "BlendWeightsWrap": BlendWeightsWrap.Register(L); break; case "BoxColliderWrap": BoxColliderWrap.Register(L); break; case "CameraClearFlagsWrap": CameraClearFlagsWrap.Register(L); break; case "CameraWrap": CameraWrap.Register(L); break; case "CharacterControllerWrap": CharacterControllerWrap.Register(L); break; case "ColliderWrap": ColliderWrap.Register(L); break; case "ComponentWrap": ComponentWrap.Register(L); break; case "DebuggerWrap": DebuggerWrap.Register(L); break; case "DelegateFactoryWrap": DelegateFactoryWrap.Register(L); break; case "DelegateWrap": DelegateWrap.Register(L); break; case "EnumWrap": EnumWrap.Register(L); break; case "GameObjectWrap": GameObjectWrap.Register(L); break; case "IEnumeratorWrap": IEnumeratorWrap.Register(L); break; case "InputWrap": InputWrap.Register(L); break; case "KeyCodeWrap": KeyCodeWrap.Register(L); break; case "LightTypeWrap": LightTypeWrap.Register(L); break; case "LightWrap": LightWrap.Register(L); break; case "LuaEnumTypeWrap": LuaEnumTypeWrap.Register(L); break; case "MaterialWrap": MaterialWrap.Register(L); break; case "MeshColliderWrap": MeshColliderWrap.Register(L); break; case "MeshRendererWrap": MeshRendererWrap.Register(L); break; case "MonoBehaviourWrap": MonoBehaviourWrap.Register(L); break; case "ObjectWrap": ObjectWrap.Register(L); break; case "ParticleAnimatorWrap": ParticleAnimatorWrap.Register(L); break; case "ParticleEmitterWrap": ParticleEmitterWrap.Register(L); break; case "ParticleRendererWrap": ParticleRendererWrap.Register(L); break; case "ParticleSystemWrap": ParticleSystemWrap.Register(L); break; case "PhysicsWrap": PhysicsWrap.Register(L); break; case "PlayModeWrap": PlayModeWrap.Register(L); break; case "QualitySettingsWrap": QualitySettingsWrap.Register(L); break; case "QueueModeWrap": QueueModeWrap.Register(L); break; case "RectTransformUtilityWrap": RectTransformUtilityWrap.Register(L); break; case "RectTransformWrap": RectTransformWrap.Register(L); break; case "RenderSettingsWrap": RenderSettingsWrap.Register(L); break; case "RenderTextureWrap": RenderTextureWrap.Register(L); break; case "RendererWrap": RendererWrap.Register(L); break; case "ResourcesWrap": ResourcesWrap.Register(L); break; case "ScreenWrap": ScreenWrap.Register(L); break; case "SkinnedMeshRendererWrap": SkinnedMeshRendererWrap.Register(L); break; case "SleepTimeoutWrap": SleepTimeoutWrap.Register(L); break; case "SpaceWrap": SpaceWrap.Register(L); break; case "SphereColliderWrap": SphereColliderWrap.Register(L); break; case "System_ObjectWrap": System_ObjectWrap.Register(L); break; case "TestDelegateListenerWrap": TestDelegateListenerWrap.Register(L); break; case "TestEventListenerWrap": TestEventListenerWrap.Register(L); break; case "TestLuaDelegateWrap": TestLuaDelegateWrap.Register(L); break; case "TextureWrap": TextureWrap.Register(L); break; case "TimeWrap": TimeWrap.Register(L); break; case "TouchPhaseWrap": TouchPhaseWrap.Register(L); break; case "TrackedReferenceWrap": TrackedReferenceWrap.Register(L); break; case "TransformWrap": TransformWrap.Register(L); break; case "TypeWrap": TypeWrap.Register(L); break; case "UnityEngine_EventSystems_UIBehaviourWrap": UnityEngine_EventSystems_UIBehaviourWrap.Register(L); break; case "UnityEngine_Events_UnityEventBaseWrap": UnityEngine_Events_UnityEventBaseWrap.Register(L); break; case "UnityEngine_Events_UnityEventWrap": UnityEngine_Events_UnityEventWrap.Register(L); break; case "UnityEngine_UI_ButtonWrap": UnityEngine_UI_ButtonWrap.Register(L); break; case "UnityEngine_UI_Button_ButtonClickedEventWrap": UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L); break; case "UnityEngine_UI_GraphicWrap": UnityEngine_UI_GraphicWrap.Register(L); break; case "UnityEngine_UI_ImageWrap": UnityEngine_UI_ImageWrap.Register(L); break; case "UnityEngine_UI_MaskableGraphicWrap": UnityEngine_UI_MaskableGraphicWrap.Register(L); break; case "UnityEngine_UI_SelectableWrap": UnityEngine_UI_SelectableWrap.Register(L); break; case "UtilWrap": UtilWrap.Register(L); break; case "WWWWrap": WWWWrap.Register(L); break; case "stringWrap": stringWrap.Register(L); break; } }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); DebuggerWrap.Register(L); LuaPageBehaviourWrap.Register(L); AppConstWrap.Register(L); AssetLoaderWrap.Register(L); LuaAssetLoaderWrap.Register(L); UIPageWrap.Register(L); EPageTypeWrap.Register(L); EShowModeWrap.Register(L); EColliderWrap.Register(L); UIManagerWrap.Register(L); ASingleton_AssetLoaderWrap.Register(L); ASingleton_UIManagerWrap.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_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_CanvasWrap.Register(L); UnityEngine_CanvasGroupWrap.Register(L); UnityEngine_RenderModeWrap.Register(L); UnityEngine_GUILayoutWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); L.BeginModule("SceneManagement"); UnityEngine_SceneManagement_SceneManagerWrap.Register(L); L.EndModule(); L.BeginModule("UI"); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_LayoutElementWrap.Register(L); UnityEngine_UI_DropdownWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_VerticalLayoutGroupWrap.Register(L); UnityEngine_UI_HorizontalLayoutGroupWrap.Register(L); UnityEngine_UI_RawImageWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); UnityEngine_UI_ToggleGroupWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_ScrollbarWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_MaskWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.Register(L); UnityEngine_UI_LayoutGroupWrap.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.EndModule(); L.EndModule(); L.BeginModule("LuaFramework"); LuaFramework_LuaHelperWrap.Register(L); LuaFramework_UtilWrap.Register(L); L.EndModule(); L.BeginModule("System"); System_ByteWrap.Register(L); L.RegFunction("Action", System_Action); L.RegFunction("Action_UnityEngine_GameObject", System_Action_UnityEngine_GameObject); L.RegFunction("Action_bytes", System_Action_bytes); L.RegFunction("Action_float_float", System_Action_float_float); L.RegFunction("Action_object", System_Action_object); L.RegFunction("Action_UnityEngine_AssetBundle", System_Action_UnityEngine_AssetBundle); L.EndModule(); L.BeginModule("NetCore"); NetCore_ByteArrayWrap.Register(L); NetCore_ByteArrayQueueWrap.Register(L); NetCore_ByteStreamWrap.Register(L); NetCore_NetWrap.Register(L); NetCore_PackProtocolWrap.Register(L); NetCore_VarintStreamWrap.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); LuaInterface_DebuggerWrap.Register(L); LuaProfilerWrap.Register(L); GameConstWrap.Register(L); MonoSingletonWrap.Register(L); MonoComponentWrap.Register(L); EncryptUtilWrap.Register(L); HttpUtilWrap.Register(L); ResUtilWrap.Register(L); SocketUtilWrap.Register(L); VObjectWrap.Register(L); RefDataWrap.Register(L); ABVObjectWrap.Register(L); ENV_TYPEWrap.Register(L); HttpResultWrap.Register(L); TestConsoleWrap.Register(L); Singleton_MonoSingletonWrap.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_ScreenOrientationWrap.Register(L); UnityEngine_AudioBehaviourWrap.Register(L); L.BeginModule("SceneManagement"); UnityEngine_SceneManagement_SceneManagerWrap.Register(L); UnityEngine_SceneManagement_SceneWrap.Register(L); UnityEngine_SceneManagement_LoadSceneParametersWrap.Register(L); L.EndModule(); L.BeginModule("UI"); UnityEngine_UI_CanvasScalerWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); L.BeginModule("Button"); UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L); L.EndModule(); 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"); UnityEngine_Events_UnityEventWrap.Register(L); UnityEngine_Events_UnityEventBaseWrap.Register(L); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_LoadSceneMode", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_LoadSceneMode); L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene); L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene); L.EndModule(); L.BeginModule("Camera"); L.RegFunction("CameraCallback", UnityEngine_Camera_CameraCallback); L.EndModule(); L.BeginModule("Application"); L.RegFunction("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback); L.RegFunction("LowMemoryCallback", UnityEngine_Application_LowMemoryCallback); L.RegFunction("LogCallback", UnityEngine_Application_LogCallback); L.EndModule(); L.BeginModule("AudioClip"); L.RegFunction("PCMReaderCallback", UnityEngine_AudioClip_PCMReaderCallback); L.RegFunction("PCMSetPositionCallback", UnityEngine_AudioClip_PCMSetPositionCallback); L.EndModule(); L.BeginModule("RectTransform"); L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties); L.EndModule(); L.EndModule(); L.BeginModule("Dpoch"); L.BeginModule("SocketIO"); Dpoch_SocketIO_SocketIOWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.RegFunction("Predicate_int", System_Predicate_int); L.RegFunction("Action_int", System_Action_int); L.RegFunction("Action_int_int", System_Action_int_int); L.RegFunction("Action_string", System_Action_string); L.RegFunction("Comparison_int", System_Comparison_int); L.RegFunction("Func_int_int", System_Func_int_int); L.RegFunction("Action_string_objects", System_Action_string_objects); 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("Action_HttpResult", System_Action_HttpResult); L.RegFunction("Action_VObject", System_Action_VObject); L.RegFunction("Action_Dpoch_SocketIO_SocketIOException", System_Action_Dpoch_SocketIO_SocketIOException); L.RegFunction("Action_Dpoch_SocketIO_Packet", System_Action_Dpoch_SocketIO_Packet); L.RegFunction("Action_Dpoch_SocketIO_SocketIOEvent", System_Action_Dpoch_SocketIO_SocketIOEvent); L.RegFunction("Action_Newtonsoft_Json_Linq_JArray", System_Action_Newtonsoft_Json_Linq_JArray); 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); EntityDataWrap.Register(L); PBMessageWrap.Register(L); EventListenerWrap.Register(L); EntityExtendWrap.Register(L); LuaExtendWrap.Register(L); LuaInterface_DebuggerWrap.Register(L); LuaProfilerWrap.Register(L); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.RegFunction("Action_UnityEngine_EventSystems_PointerEventData", System_Action_UnityEngine_EventSystems_PointerEventData); L.RegFunction("Action_UnityEngine_GameObject", System_Action_UnityEngine_GameObject); L.RegFunction("Action_UnityEngine_Sprite_string", System_Action_UnityEngine_Sprite_string); L.RegFunction("Action_UnityEngine_GameObject_string", System_Action_UnityEngine_GameObject_string); L.RegFunction("Action_UnityEngine_KeyCode", System_Action_UnityEngine_KeyCode); 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_byte", System_Predicate_byte); L.RegFunction("Action_byte", System_Action_byte); L.RegFunction("Comparison_byte", System_Comparison_byte); L.RegFunction("Func_bool", System_Func_bool); L.RegFunction("Action_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation); L.BeginModule("Collections"); L.BeginModule("Generic"); System_Collections_Generic_List_intWrap.Register(L); System_Collections_Generic_List_byteWrap.Register(L); L.EndModule(); L.EndModule(); L.EndModule(); 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_AudioBehaviourWrap.Register(L); L.BeginModule("EventSystems"); UnityEngine_EventSystems_PointerEventDataWrap.Register(L); UnityEngine_EventSystems_BaseEventDataWrap.Register(L); UnityEngine_EventSystems_AbstractEventDataWrap.Register(L); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); L.EndModule(); L.BeginModule("UI"); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.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("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("LuaInterface"); LuaInterface_LuaInjectionStationWrap.Register(L); LuaInterface_InjectTypeWrap.Register(L); L.EndModule(); L.BeginModule("DG"); L.BeginModule("Tweening"); L.RegFunction("TweenCallback", DG_Tweening_TweenCallback); L.BeginModule("Core"); L.RegFunction("DOSetter_float", DG_Tweening_Core_DOSetter_float); 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(IntPtr L, string type = null) { if (type == null || wrapList.Contains(type)) { return; } wrapList.Add(type); type += "Wrap"; switch (type) { case "AnimationBlendModeWrap": AnimationBlendModeWrap.Register(L); break; case "AnimationClipWrap": AnimationClipWrap.Register(L); break; case "AnimationStateWrap": AnimationStateWrap.Register(L); break; case "AnimationWrap": AnimationWrap.Register(L); break; case "AnimatorWrap": AnimatorWrap.Register(L); break; case "ApplicationWrap": ApplicationWrap.Register(L); break; case "AssetBundleWrap": AssetBundleWrap.Register(L); break; case "AsyncOperationWrap": AsyncOperationWrap.Register(L); break; case "AudioClipWrap": AudioClipWrap.Register(L); break; case "AudioSourceWrap": AudioSourceWrap.Register(L); break; case "BehaviourWrap": BehaviourWrap.Register(L); break; case "BlendWeightsWrap": BlendWeightsWrap.Register(L); break; case "BoundsWrap": BoundsWrap.Register(L); break; case "BoxColliderWrap": BoxColliderWrap.Register(L); break; case "CameraClearFlagsWrap": CameraClearFlagsWrap.Register(L); break; case "CameraWrap": CameraWrap.Register(L); break; case "CharacterControllerWrap": CharacterControllerWrap.Register(L); break; case "ColliderWrap": ColliderWrap.Register(L); break; case "ComponentWrap": ComponentWrap.Register(L); break; case "DebuggerWrap": DebuggerWrap.Register(L); break; case "DelegateFactoryWrap": DelegateFactoryWrap.Register(L); break; case "DelegateWrap": DelegateWrap.Register(L); break; case "DoTweenManagerWrap": DoTweenManagerWrap.Register(L); break; case "EnumWrap": EnumWrap.Register(L); break; case "GameObjectWrap": GameObjectWrap.Register(L); break; case "IEnumeratorWrap": IEnumeratorWrap.Register(L); break; case "InputWrap": InputWrap.Register(L); break; case "KeyCodeWrap": KeyCodeWrap.Register(L); break; case "LightTypeWrap": LightTypeWrap.Register(L); break; case "LightWrap": LightWrap.Register(L); break; case "MaterialWrap": MaterialWrap.Register(L); break; case "Matrix4x4Wrap": Matrix4x4Wrap.Register(L); break; case "MeshColliderWrap": MeshColliderWrap.Register(L); break; case "MeshFilterWrap": MeshFilterWrap.Register(L); break; case "MeshRendererWrap": MeshRendererWrap.Register(L); break; case "MeshWrap": MeshWrap.Register(L); break; case "MonoBehaviourWrap": MonoBehaviourWrap.Register(L); break; case "NetworkReachWrap": NetworkReachWrap.Register(L); break; case "ObjectWrap": ObjectWrap.Register(L); break; case "ParticleAnimatorWrap": ParticleAnimatorWrap.Register(L); break; case "ParticleEmitterWrap": ParticleEmitterWrap.Register(L); break; case "ParticleRendererWrap": ParticleRendererWrap.Register(L); break; case "ParticleSystemWrap": ParticleSystemWrap.Register(L); break; case "PhysicsWrap": PhysicsWrap.Register(L); break; case "PlayerPrefsWrap": PlayerPrefsWrap.Register(L); break; case "PlayModeWrap": PlayModeWrap.Register(L); break; case "QualitySettingsWrap": QualitySettingsWrap.Register(L); break; case "QueueModeWrap": QueueModeWrap.Register(L); break; case "RectTransformWrap": RectTransformWrap.Register(L); break; case "RectWrap": RectWrap.Register(L); break; case "RendererWrap": RendererWrap.Register(L); break; case "RenderSettingsWrap": RenderSettingsWrap.Register(L); break; case "RenderTextureWrap": RenderTextureWrap.Register(L); break; case "ScreenWrap": ScreenWrap.Register(L); break; case "SDKManagerWrap": SDKManagerWrap.Register(L); break; case "ShaderWrap": ShaderWrap.Register(L); break; case "SkinnedMeshRendererWrap": SkinnedMeshRendererWrap.Register(L); break; case "SleepTimeoutWrap": SleepTimeoutWrap.Register(L); break; case "SpaceWrap": SpaceWrap.Register(L); break; case "SphereColliderWrap": SphereColliderWrap.Register(L); break; case "SpriteWrap": SpriteWrap.Register(L); break; case "stringWrap": stringWrap.Register(L); break; case "SystemInfoWrap": SystemInfoWrap.Register(L); break; case "System_ObjectWrap": System_ObjectWrap.Register(L); break; case "Teacher_AppConstWrap": Teacher_AppConstWrap.Register(L); break; case "Teacher_ByteBufferWrap": Teacher_ByteBufferWrap.Register(L); break; case "Teacher_LuaBehaviourWrap": Teacher_LuaBehaviourWrap.Register(L); break; case "Teacher_LuaHelperWrap": Teacher_LuaHelperWrap.Register(L); break; case "Teacher_Manager_NetworkManagerWrap": Teacher_Manager_NetworkManagerWrap.Register(L); break; case "Teacher_Manager_PanelManagerWrap": Teacher_Manager_PanelManagerWrap.Register(L); break; case "Teacher_Manager_ResourceManagerWrap": Teacher_Manager_ResourceManagerWrap.Register(L); break; case "Teacher_Manager_TimerManagerWrap": Teacher_Manager_TimerManagerWrap.Register(L); break; case "Teacher_UtilWrap": Teacher_UtilWrap.Register(L); break; case "TestDelegateListenerWrap": TestDelegateListenerWrap.Register(L); break; case "TestEventListenerWrap": TestEventListenerWrap.Register(L); break; case "TestLuaDelegateWrap": TestLuaDelegateWrap.Register(L); break; case "Texture2DWrap": Texture2DWrap.Register(L); break; case "TextureWrap": TextureWrap.Register(L); break; case "TimeWrap": TimeWrap.Register(L); break; case "TouchPhaseWrap": TouchPhaseWrap.Register(L); break; case "TouchWrap": TouchWrap.Register(L); break; case "TrackedReferenceWrap": TrackedReferenceWrap.Register(L); break; case "TransformWrap": TransformWrap.Register(L); break; case "TypeWrap": TypeWrap.Register(L); break; case "UnityEngine_EventSystems_EventSystemWrap": UnityEngine_EventSystems_EventSystemWrap.Register(L); break; case "UnityEngine_Events_UnityEventBaseWrap": UnityEngine_Events_UnityEventBaseWrap.Register(L); break; case "UnityEngine_Events_UnityEventWrap": UnityEngine_Events_UnityEventWrap.Register(L); break; case "UnityEngine_UI_ButtonWrap": UnityEngine_UI_ButtonWrap.Register(L); break; case "UnityEngine_UI_Button_ButtonClickedEventWrap": UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L); break; case "UnityEngine_UI_ImageWrap": UnityEngine_UI_ImageWrap.Register(L); break; case "UnityEngine_UI_InputFieldWrap": UnityEngine_UI_InputFieldWrap.Register(L); break; case "UnityEngine_UI_ScrollRectWrap": UnityEngine_UI_ScrollRectWrap.Register(L); break; case "UnityEngine_UI_TextWrap": UnityEngine_UI_TextWrap.Register(L); break; case "UnityEngine_UI_ToggleWrap": UnityEngine_UI_ToggleWrap.Register(L); break; case "UploadManagerWrap": UploadManagerWrap.Register(L); break; case "WWWFormWrap": WWWFormWrap.Register(L); break; case "WWWWrap": WWWWrap.Register(L); break; } }
public static System.Type Bind(IntPtr L, string typeName = null) { System.Type type = null; switch (typeName) { case "clientlib.net.NetMsg": type = clientlib_net_NetMsgWrap.Register(L); break; case "CMD5": type = CMD5Wrap.Register(L); break; case "ThreeDButton": type = ThreeDButtonWrap.Register(L); break; case "UnityEngine.Animation": type = UnityEngine_AnimationWrap.Register(L); break; case "UnityEngine.Animator": type = UnityEngine_AnimatorWrap.Register(L); break; case "UnityEngine.Application": type = UnityEngine_ApplicationWrap.Register(L); break; case "UnityEngine.Behaviour": type = UnityEngine_BehaviourWrap.Register(L); break; case "UnityEngine.Camera": type = UnityEngine_CameraWrap.Register(L); break; case "UnityEngine.CanvasGroup": type = UnityEngine_CanvasGroupWrap.Register(L); break; case "UnityEngine.Canvas": type = UnityEngine_CanvasWrap.Register(L); break; case "UnityEngine.Collider": type = UnityEngine_ColliderWrap.Register(L); break; case "UnityEngine.Component": type = UnityEngine_ComponentWrap.Register(L); break; case "UnityEngine.EventSystems.BaseEventData": type = UnityEngine_EventSystems_BaseEventDataWrap.Register(L); break; case "UnityEngine.EventSystems.PointerEventData": type = UnityEngine_EventSystems_PointerEventDataWrap.Register(L); break; case "UnityEngine.EventSystems.UIBehaviour": type = UnityEngine_EventSystems_UIBehaviourWrap.Register(L); break; case "UnityEngine.GameObject": type = UnityEngine_GameObjectWrap.Register(L); break; case "UnityEngine.MonoBehaviour": type = UnityEngine_MonoBehaviourWrap.Register(L); break; case "UnityEngine.Object": type = UnityEngine_ObjectWrap.Register(L); break; case "UnityEngine.PlayerPrefs": type = UnityEngine_PlayerPrefsWrap.Register(L); break; case "UnityEngine.RectTransform": type = UnityEngine_RectTransformWrap.Register(L); break; case "UnityEngine.Screen": type = UnityEngine_ScreenWrap.Register(L); break; case "UnityEngine.SystemInfo": type = UnityEngine_SystemInfoWrap.Register(L); break; case "UnityEngine.Time": type = UnityEngine_TimeWrap.Register(L); break; case "UnityEngine.Transform": type = UnityEngine_TransformWrap.Register(L); break; case "UnityEngine.UI.Button": type = UnityEngine_UI_ButtonWrap.Register(L); break; case "UnityEngine.UI.Dropdown": type = UnityEngine_UI_DropdownWrap.Register(L); break; case "UnityEngine.UI.Dropdown.OptionData": type = UnityEngine_UI_Dropdown_OptionDataWrap.Register(L); break; case "UnityEngine.UI.Graphic": type = UnityEngine_UI_GraphicWrap.Register(L); break; case "UnityEngine.UI.Image": type = UnityEngine_UI_ImageWrap.Register(L); break; case "UnityEngine.UI.InputField": type = UnityEngine_UI_InputFieldWrap.Register(L); break; case "UnityEngine.UI.MaskableGraphic": type = UnityEngine_UI_MaskableGraphicWrap.Register(L); break; case "UnityEngine.UI.RawImage": type = UnityEngine_UI_RawImageWrap.Register(L); break; case "UnityEngine.UI.Scrollbar": type = UnityEngine_UI_ScrollbarWrap.Register(L); break; case "UnityEngine.UI.ScrollRect": type = UnityEngine_UI_ScrollRectWrap.Register(L); break; case "UnityEngine.UI.Selectable": type = UnityEngine_UI_SelectableWrap.Register(L); break; case "UnityEngine.UI.Slider": type = UnityEngine_UI_SliderWrap.Register(L); break; case "UnityEngine.UI.Text": type = UnityEngine_UI_TextWrap.Register(L); break; case "UnityEngine.UI.Toggle": type = UnityEngine_UI_ToggleWrap.Register(L); break; case "UnityEngine.WaitForSeconds": type = UnityEngine_WaitForSecondsWrap.Register(L); break; case "ZFrame.AudioManager": type = ZFrame_AudioManagerWrap.Register(L); break; case "ZFrame.NetEngine.NetworkMgr": type = ZFrame_NetEngine_NetworkMgrWrap.Register(L); break; case "ZFrame.NetEngine.TcpClientHandler": type = ZFrame_NetEngine_TcpClientHandlerWrap.Register(L); break; case "ZFrame.Tween.BaseTweener": type = ZFrame_Tween_BaseTweenerWrap.Register(L); break; case "ZFrame.Tween.ZTweener": type = ZFrame_Tween_ZTweenerWrap.Register(L); break; case "ZFrame.UGUI.FollowUITarget": type = ZFrame_UGUI_FollowUITargetWrap.Register(L); break; case "ZFrame.UGUI.UIButton": type = ZFrame_UGUI_UIButtonWrap.Register(L); break; case "ZFrame.UGUI.UICloseButton": type = ZFrame_UGUI_UICloseButtonWrap.Register(L); break; case "ZFrame.UGUI.UIDragged": type = ZFrame_UGUI_UIDraggedWrap.Register(L); break; case "ZFrame.UGUI.UIDropdown": type = ZFrame_UGUI_UIDropdownWrap.Register(L); break; case "ZFrame.UGUI.UIEventTrigger": type = ZFrame_UGUI_UIEventTriggerWrap.Register(L); break; case "ZFrame.UGUI.UIInput": type = ZFrame_UGUI_UIInputWrap.Register(L); break; case "ZFrame.UGUI.UILabel": type = ZFrame_UGUI_UILabelWrap.Register(L); break; case "ZFrame.UGUI.UILongpress": type = ZFrame_UGUI_UILongpressWrap.Register(L); break; case "ZFrame.UGUI.UIProgressBar": type = ZFrame_UGUI_UIProgressBarWrap.Register(L); break; case "ZFrame.UGUI.UIScrollView": type = ZFrame_UGUI_UIScrollViewWrap.Register(L); break; case "ZFrame.UGUI.UISelectable": type = ZFrame_UGUI_UISelectableWrap.Register(L); break; case "ZFrame.UGUI.UISlider": type = ZFrame_UGUI_UISliderWrap.Register(L); break; case "ZFrame.UGUI.UISprite": type = ZFrame_UGUI_UISpriteWrap.Register(L); break; case "ZFrame.UGUI.UITexture": type = ZFrame_UGUI_UITextureWrap.Register(L); break; case "ZFrame.UGUI.UIToggle": type = ZFrame_UGUI_UIToggleWrap.Register(L); break; default: break; } wrapList.Add(typeName); return(type); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); GenericPropertyWrap.Register(L); LuaInterface_DebuggerWrap.Register(L); L.BeginModule("Game"); SimpleTouchControllerWrap.Register(L); Game_LuaBehaviourWrap.Register(L); L.EndModule(); L.BeginModule("UnityEngine"); UnityEngine_BoxCollider2DWrap.Register(L); UnityEngine_Physics2DWrap.Register(L); UnityEngine_RaycastHit2DWrap.Register(L); UnityEngine_SpriteWrap.Register(L); UnityEngine_SpriteRendererWrap.Register(L); UnityEngine_CanvasWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_RectWrap.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_Collider2DWrap.Register(L); UnityEngine_CustomYieldInstructionWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); L.EndModule(); L.BeginModule("SceneManagement"); UnityEngine_SceneManagement_SceneManagerWrap.Register(L); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); L.EndModule(); L.BeginModule("Events"); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_LoadSceneMode", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_LoadSceneMode); L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene); L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene); L.EndModule(); L.BeginModule("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("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_AsyncOperation", System_Action_UnityEngine_AsyncOperation); L.EndModule(); L.BeginModule("SimpleTouchController"); L.RegFunction("TouchDelegate", SimpleTouchController_TouchDelegate); L.RegFunction("TouchStateDelegate", SimpleTouchController_TouchStateDelegate); 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); UITextOutlineWrap.Register(L); LeanTweenWrap.Register(L); LTDescrWrap.Register(L); LeanTweenTypeWrap.Register(L); SingletonMono_Common_Localization_LocalizationControllerWrap.Register(L); SingletonMono_Common_ResMgr_ResMgrWrap.Register(L); SingletonMono_Logic_UI_UIMgrWrap.Register(L); SingletonMono_Logic_Audio_Controller_AudioControllerWrap.Register(L); SingletonMono_Logic_Pool_Controller_PoolControllerWrap.Register(L); SingletonMono_Logic_Character_Controller_PlayerControllerWrap.Register(L); SingletonMono_Logic_Character_Controller_EnemyControllerWrap.Register(L); SingletonMono_Logic_Fight_Controller_MechanicsControllerWrap.Register(L); SingletonMono_Logic_UI_SoftGuide_Model_SoftGuideProxyWrap.Register(L); SingletonMono_Logic_Action_Controller_ActionControllerWrap.Register(L); SingletonPersistent_Logic_TalkingData_Controller_TalkingDataControllerWrap.Register(L); SingletonPersistent_Logic_AdTracking_Controller_AdTrackingControllerWrap.Register(L); SingletonMono_Common_GameTime_Controller_TimeControllerWrap.Register(L); L.BeginModule("UnityEngine"); UnityEngine_CanvasWrap.Register(L); UnityEngine_ResourcesWrap.Register(L); UnityEngine_ComponentWrap.Register(L); UnityEngine_BehaviourWrap.Register(L); UnityEngine_MonoBehaviourWrap.Register(L); UnityEngine_GameObjectWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_RectWrap.Register(L); UnityEngine_SpriteWrap.Register(L); UnityEngine_CameraWrap.Register(L); UnityEngine_RandomWrap.Register(L); UnityEngine_MaterialWrap.Register(L); UnityEngine_RendererWrap.Register(L); UnityEngine_ParticleSystemRendererWrap.Register(L); UnityEngine_AudioClipWrap.Register(L); UnityEngine_AudioSourceWrap.Register(L); UnityEngine_AudioRolloffModeWrap.Register(L); UnityEngine_ApplicationWrap.Register(L); UnityEngine_TimeWrap.Register(L); UnityEngine_PlayerPrefsWrap.Register(L); UnityEngine_AnimatorWrap.Register(L); UnityEngine_TransformWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_OutlineWrap.Register(L); UnityEngine_UI_DropdownWrap.Register(L); UnityEngine_UI_GridLayoutGroupWrap.Register(L); UnityEngine_UI_LayoutElementWrap.Register(L); UnityEngine_UI_ScrollbarWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_ShadowWrap.Register(L); UnityEngine_UI_BaseMeshEffectWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_LayoutGroupWrap.Register(L); L.BeginModule("Dropdown"); UnityEngine_UI_Dropdown_DropdownEventWrap.Register(L); UnityEngine_UI_Dropdown_OptionDataWrap.Register(L); L.EndModule(); L.BeginModule("Button"); UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L); L.EndModule(); L.BeginModule("Toggle"); UnityEngine_UI_Toggle_ToggleEventWrap.Register(L); L.EndModule(); L.BeginModule("InputField"); UnityEngine_UI_InputField_OnChangeEventWrap.Register(L); UnityEngine_UI_InputField_SubmitEventWrap.Register(L); L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput); L.EndModule(); L.BeginModule("ScrollRect"); UnityEngine_UI_ScrollRect_ScrollRectEventWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("EventSystems"); 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("Events"); UnityEngine_Events_UnityEvent_intWrap.Register(L); UnityEngine_Events_UnityEventBaseWrap.Register(L); UnityEngine_Events_UnityEventWrap.Register(L); UnityEngine_Events_UnityEvent_boolWrap.Register(L); UnityEngine_Events_UnityEvent_stringWrap.Register(L); UnityEngine_Events_UnityEvent_UnityEngine_Vector2Wrap.Register(L); UnityEngine_Events_UnityEvent_UnityEngine_GameObject_intWrap.Register(L); UnityEngine_Events_UnityEvent_UnityEngine_GameObjectWrap.Register(L); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.RegFunction("UnityAction_int", UnityEngine_Events_UnityAction_int); L.RegFunction("UnityAction_string", UnityEngine_Events_UnityAction_string); L.RegFunction("UnityAction_UnityEngine_Vector2", UnityEngine_Events_UnityAction_UnityEngine_Vector2); L.RegFunction("UnityAction_UnityEngine_GameObject_int", UnityEngine_Events_UnityAction_UnityEngine_GameObject_int); L.RegFunction("UnityAction_UnityEngine_GameObject", UnityEngine_Events_UnityAction_UnityEngine_GameObject); L.RegFunction("UnityAction_bool", UnityEngine_Events_UnityAction_bool); L.EndModule(); L.EndModule(); L.BeginModule("LuaInterface"); LuaInterface_ToLuaPbWrap.Register(L); LuaInterface_ToLuaProtolWrap.Register(L); LuaInterface_LuaCsTransferWrap.Register(L); L.EndModule(); L.BeginModule("System"); System_DateTimeWrap.Register(L); System_DayOfWeekWrap.Register(L); System_TimeSpanWrap.Register(L); L.RegFunction("Action", System_Action); L.RegFunction("Action_UnityEngine_GameObject", System_Action_UnityEngine_GameObject); L.RegFunction("Action_int", System_Action_int); L.RegFunction("Action_float", System_Action_float); L.RegFunction("Action_UnityEngine_Vector3", System_Action_UnityEngine_Vector3); L.RegFunction("Action_Logic_Character_PlayerEntity", System_Action_Logic_Character_PlayerEntity); L.RegFunction("Action_Logic_Character_PetEntity", System_Action_Logic_Character_PetEntity); L.RegFunction("Action_Logic_Character_HeroEntity", System_Action_Logic_Character_HeroEntity); L.RegFunction("Action_object", System_Action_object); L.RegFunction("Action_UnityEngine_Color", System_Action_UnityEngine_Color); L.RegFunction("Action_UnityEngine_Vector2", System_Action_UnityEngine_Vector2); L.RegFunction("Action_float_object", System_Action_float_object); L.RegFunction("Action_LTEvent", System_Action_LTEvent); L.RegFunction("Action_float_float", System_Action_float_float); L.RegFunction("Action_UnityEngine_Vector3_object", System_Action_UnityEngine_Vector3_object); L.RegFunction("Func_Observers_Interfaces_INotification_bool", System_Func_Observers_Interfaces_INotification_bool); L.RegFunction("Action_string", System_Action_string); L.RegFunction("Action_string_float", System_Action_string_float); L.RegFunction("Action_string_Common_ResMgr_ResLoaderObj", System_Action_string_Common_ResMgr_ResLoaderObj); L.RegFunction("Action_UnityEngine_Object", System_Action_UnityEngine_Object); L.RegFunction("Action_UnityEngine_Sprite", System_Action_UnityEngine_Sprite); L.RegFunction("Action_PathologicalGames_SpawnPool", System_Action_PathologicalGames_SpawnPool); L.RegFunction("Action_Logic_Character_EnemyPlayerEntity", System_Action_Logic_Character_EnemyPlayerEntity); L.RegFunction("Action_Logic_Character_EnemyEntity", System_Action_Logic_Character_EnemyEntity); L.RegFunction("Action_bool", System_Action_bool); L.RegFunction("Predicate_Logic_Skill_Model_SkillDesInfo", System_Predicate_Logic_Skill_Model_SkillDesInfo); L.RegFunction("Action_Logic_Skill_Model_SkillDesInfo", System_Action_Logic_Skill_Model_SkillDesInfo); L.RegFunction("Comparison_Logic_Skill_Model_SkillDesInfo", System_Comparison_Logic_Skill_Model_SkillDesInfo); L.RegFunction("Predicate_System_Collections_Generic_KeyValuePair_int_float", System_Predicate_System_Collections_Generic_KeyValuePair_int_float); L.RegFunction("Action_System_Collections_Generic_KeyValuePair_int_float", System_Action_System_Collections_Generic_KeyValuePair_int_float); L.RegFunction("Comparison_System_Collections_Generic_KeyValuePair_int_float", System_Comparison_System_Collections_Generic_KeyValuePair_int_float); L.RegFunction("Predicate_UnityEngine_UI_Dropdown_OptionData", System_Predicate_UnityEngine_UI_Dropdown_OptionData); L.RegFunction("Action_UnityEngine_UI_Dropdown_OptionData", System_Action_UnityEngine_UI_Dropdown_OptionData); L.RegFunction("Comparison_UnityEngine_UI_Dropdown_OptionData", System_Comparison_UnityEngine_UI_Dropdown_OptionData); L.RegFunction("Predicate_Logic_Game_Model_GameResData", System_Predicate_Logic_Game_Model_GameResData); L.RegFunction("Action_Logic_Game_Model_GameResData", System_Action_Logic_Game_Model_GameResData); L.RegFunction("Comparison_Logic_Game_Model_GameResData", System_Comparison_Logic_Game_Model_GameResData); L.BeginModule("Collections"); L.BeginModule("Generic"); System_Collections_Generic_List_Logic_Skill_Model_SkillDesInfoWrap.Register(L); System_Collections_Generic_Dictionary_uint_Logic_Character_HeroEntityWrap.Register(L); System_Collections_Generic_KeyValuePair_uint_Logic_Character_HeroEntityWrap.Register(L); System_Collections_Generic_Dictionary_uint_Logic_Character_EnemyEntityWrap.Register(L); System_Collections_Generic_KeyValuePair_uint_Logic_Character_EnemyEntityWrap.Register(L); System_Collections_Generic_KeyValuePair_int_floatWrap.Register(L); System_Collections_Generic_List_System_Collections_Generic_KeyValuePair_int_floatWrap.Register(L); System_Collections_Generic_List_UnityEngine_UI_Dropdown_OptionDataWrap.Register(L); System_Collections_Generic_List_Logic_Game_Model_GameResDataWrap.Register(L); L.EndModule(); L.EndModule(); L.EndModule(); L.BeginModule("LitJson"); LitJson_JsonDataWrap.Register(L); L.EndModule(); L.BeginModule("Observers"); Observers_FacadeWrap.Register(L); Observers_NotificationWrap.Register(L); L.EndModule(); L.BeginModule("Common"); L.BeginModule("Localization"); Common_Localization_LocalizationControllerWrap.Register(L); L.EndModule(); L.BeginModule("ResMgr"); Common_ResMgr_ResMgrWrap.Register(L); L.EndModule(); L.BeginModule("Animators"); Common_Animators_AnimatorUtilWrap.Register(L); Common_Animators_AnimationUtilWrap.Register(L); L.EndModule(); L.BeginModule("Util"); Common_Util_TimeUtilWrap.Register(L); Common_Util_TransformUtilWrap.Register(L); Common_Util_BlackListWordUtilWrap.Register(L); L.EndModule(); L.BeginModule("UI"); L.BeginModule("Components"); Common_UI_Components_SliderValueChangeActionWrap.Register(L); Common_UI_Components_ScrollContentExpandWrap.Register(L); Common_UI_Components_ScrollContentWrap.Register(L); Common_UI_Components_OnResetItemWrap.Register(L); Common_UI_Components_ToggleContentWrap.Register(L); Common_UI_Components_OnInitCompleteWrap.Register(L); Common_UI_Components_EventTriggerDelegateWrap.Register(L); Common_UI_Components_UnityEventGameObjectWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("GameTime"); L.BeginModule("Controller"); Common_GameTime_Controller_TimeControllerWrap.Register(L); L.EndModule(); L.EndModule(); L.EndModule(); L.BeginModule("Logic"); L.BeginModule("Shaders"); Logic_Shaders_ShadersUtilWrap.Register(L); L.EndModule(); L.BeginModule("UI"); Logic_UI_UIMgrWrap.Register(L); L.BeginModule("CommonAnimations"); Logic_UI_CommonAnimations_CommonMoveByAnimationWrap.Register(L); Logic_UI_CommonAnimations_CommonFadeInAnimationWrap.Register(L); Logic_UI_CommonAnimations_CommonFadeToAnimationWrap.Register(L); L.EndModule(); L.BeginModule("SoftGuide"); L.BeginModule("Model"); Logic_UI_SoftGuide_Model_SoftGuideProxyWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("Friend"); L.BeginModule("Model"); Logic_UI_Friend_Model_FriendInfoWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("RedPoint"); L.BeginModule("View"); Logic_UI_RedPoint_View_RedPointViewWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("FightResult"); L.BeginModule("View"); Logic_UI_FightResult_View_NumberIncreaseActionWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("GoodsJump"); L.BeginModule("View"); Logic_UI_GoodsJump_View_GoodsJumpButtonWrap.Register(L); L.EndModule(); L.EndModule(); L.EndModule(); L.BeginModule("Audio"); L.BeginModule("Controller"); Logic_Audio_Controller_AudioControllerWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("Pool"); L.BeginModule("Controller"); Logic_Pool_Controller_PoolControllerWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("Skill"); Logic_Skill_SkillUtilWrap.Register(L); L.BeginModule("Model"); Logic_Skill_Model_SkillInfoWrap.Register(L); Logic_Skill_Model_SkillDataWrap.Register(L); Logic_Skill_Model_SkillDesInfoWrap.Register(L); Logic_Skill_Model_MechanicsDataWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("Character"); Logic_Character_CharacterEntityWrap.Register(L); Logic_Character_HeroEntityWrap.Register(L); Logic_Character_PlayerEntityWrap.Register(L); Logic_Character_EnemyEntityWrap.Register(L); Logic_Character_EnemyPlayerEntityWrap.Register(L); Logic_Character_PetEntityWrap.Register(L); L.BeginModule("Model"); Logic_Character_Model_CharacterBaseInfoWrap.Register(L); Logic_Character_Model_BuffInfoWrap.Register(L); L.EndModule(); L.BeginModule("Controller"); Logic_Character_Controller_PlayerControllerWrap.Register(L); Logic_Character_Controller_EnemyControllerWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("Fight"); L.BeginModule("Controller"); Logic_Fight_Controller_MechanicsControllerWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("Position"); L.BeginModule("Model"); Logic_Position_Model_PositionDataWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("Enums"); Logic_Enums_SkillTypeWrap.Register(L); Logic_Enums_BuffTypeWrap.Register(L); Logic_Enums_SkillLevelBuffAddTypeWrap.Register(L); Logic_Enums_BuffAddTypeWrap.Register(L); Logic_Enums_MechanicsTypeWrap.Register(L); Logic_Enums_RoleAttackAttributeTypeWrap.Register(L); Logic_Enums_TargetTypeWrap.Register(L); Logic_Enums_MechanicsValueTypeWrap.Register(L); Logic_Enums_BaseResTypeWrap.Register(L); L.EndModule(); L.BeginModule("Model"); L.BeginModule("View"); Logic_Model_View_ModelRotateAndAnimWrap.Register(L); Logic_Model_View_ModelBehaviourWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("Action"); L.BeginModule("Controller"); Logic_Action_Controller_ActionControllerWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("Game"); L.BeginModule("Model"); Logic_Game_Model_GameResDataWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("TalkingData"); L.BeginModule("Controller"); Logic_TalkingData_Controller_TalkingDataControllerWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("AdTracking"); L.BeginModule("Controller"); Logic_AdTracking_Controller_AdTrackingControllerWrap.Register(L); L.EndModule(); L.EndModule(); 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); LuaBehaviourWrap.Register(L); UILuaBehaviourWrap.Register(L); GameResFactoryWrap.Register(L); BaseWrap.Register(L); ManagerWrap.Register(L); ByteBufferWrap.Register(L); NetworkManagerWrap.Register(L); LuaHelperWrap.Register(L); GlobalsWrap.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); 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); DebuggerWrap.Register(L); ClickEventListenerWrap.Register(L); PressEventListenerWrap.Register(L); DragEventListenerWrap.Register(L); HoverEventListenerWrap.Register(L); LongPressEventListenerWrap.Register(L); UtilWrap.Register(L); UIUtilWrap.Register(L); LuaHelperWrap.Register(L); ByteBufferWrap.Register(L); LuaBehaviourWrap.Register(L); CameraControllerWrap.Register(L); AppFacadeWrap.Register(L); GameManagerWrap.Register(L); LuaManagerWrap.Register(L); TimerManagerWrap.Register(L); ThreadManagerWrap.Register(L); NetworkManagerWrap.Register(L); ResourceManagerWrap.Register(L); ObjectPoolManagerWrap.Register(L); TimerInfoWrap.Register(L); ConnectionWrap.Register(L); ConnectStateWrap.Register(L); HeroBehaviorWrap.Register(L); PuppetBehaviorWrap.Register(L); DummyBehaviorWrap.Register(L); ToyBehaviorWrap.Register(L); BarrierBehaviorWrap.Register(L); ConveyToolWrap.Register(L); EmptyGOBehaviorWrap.Register(L); BulletBehaviorWrap.Register(L); SummonBehaviorWrap.Register(L); NPCBehaviorWrap.Register(L); PetBehaviorWrap.Register(L); MonsterBehaviorWrap.Register(L); DropBehaviorWrap.Register(L); TrickBehaviorWrap.Register(L); EntityBehaviorMgrWrap.Register(L); LuaModuleWrap.Register(L); RateProcessWrap.Register(L); BETweenWrap.Register(L); ShowTextUIWrap.Register(L); ShowImgUIWrap.Register(L); RotationModelWrap.Register(L); UIMultiScrollerWrap.Register(L); TabControlWrap.Register(L); BETweenMethodWrap.Register(L); BETweenLoopWrap.Register(L); FadeInOutEffectWrap.Register(L); ScrollViewLoopWrap.Register(L); ScrollViewLoopItemWrap.Register(L); DressPartWrap.Register(L); DressWrap.Register(L); UIFollowingTargetWrap.Register(L); FossilisedEffectWrap.Register(L); ViewWrap.Register(L); BaseWrap.Register(L); FacadeWrap.Register(L); ManagerWrap.Register(L); EntityBehaviorWrap.Register(L); Singleton_EntityBehaviorMgrWrap.Register(L); EffectWrap.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_BoxColliderWrap.Register(L); UnityEngine_MeshColliderWrap.Register(L); UnityEngine_SphereColliderWrap.Register(L); UnityEngine_CharacterControllerWrap.Register(L); UnityEngine_CapsuleColliderWrap.Register(L); UnityEngine_ControllerColliderHitWrap.Register(L); UnityEngine_Matrix4x4Wrap.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_LineRendererWrap.Register(L); UnityEngine_QualitySettingsWrap.Register(L); UnityEngine_RenderSettingsWrap.Register(L); UnityEngine_BlendWeightsWrap.Register(L); UnityEngine_RenderTextureWrap.Register(L); UnityEngine_PlayerPrefsWrap.Register(L); UnityEngine_ResourcesWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_RectTransformUtilityWrap.Register(L); UnityEngine_CanvasWrap.Register(L); UnityEngine_CanvasGroupWrap.Register(L); L.BeginModule("EventSystems"); UnityEngine_EventSystems_EventSystemWrap.Register(L); UnityEngine_EventSystems_PointerEventDataWrap.Register(L); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); UnityEngine_EventSystems_BaseEventDataWrap.Register(L); UnityEngine_EventSystems_AbstractEventDataWrap.Register(L); L.EndModule(); L.BeginModule("UI"); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); UnityEngine_UI_ToggleGroupWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_ScrollbarWrap.Register(L); UnityEngine_UI_LayoutElementWrap.Register(L); UnityEngine_UI_VerticalLayoutGroupWrap.Register(L); UnityEngine_UI_GridLayoutGroupWrap.Register(L); UnityEngine_UI_HorizontalLayoutGroupWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.Register(L); UnityEngine_UI_LayoutGroupWrap.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("TMPro"); TMPro_TextMeshProUGUIWrap.Register(L); TMPro_TMP_InputFieldWrap.Register(L); TMPro_TMP_TextWrap.Register(L); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.RegFunction("Action_float", System_Action_float); L.RegFunction("Action_UnityEngine_Vector2", System_Action_UnityEngine_Vector2); L.RegFunction("Action_bool", System_Action_bool); L.RegFunction("Action_string", System_Action_string); L.RegFunction("Action_NotiData", System_Action_NotiData); L.RegFunction("Action_UnityEngine_Object", System_Action_UnityEngine_Object); L.RegFunction("Action_UnityEngine_Objects", System_Action_UnityEngine_Objects); L.RegFunction("Action_ConnectState_string", System_Action_ConnectState_string); L.RegFunction("Action_int_object", System_Action_int_object); L.RegFunction("Action_UnityEngine_Collider", System_Action_UnityEngine_Collider); L.RegFunction("Action_UnityEngine_GameObject_int", System_Action_UnityEngine_GameObject_int); L.RegFunction("Action_int", System_Action_int); L.RegFunction("Action_int_bool", System_Action_int_bool); L.EndModule(); L.EndModule(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); 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("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); L.EndModule(); L.EndModule(); 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); 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_LayoutElementWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_ScrollbarWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_GraphicRaycasterWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_LoopScrollRectWrap.Register(L); UnityEngine_UI_LoopVerticalScrollRectWrap.Register(L); UnityEngine_UI_LoopHorizontalScrollRectWrap.Register(L); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); UnityEngine_EventSystems_BaseRaycasterWrap.Register(L); L.EndModule(); L.BeginModule("Events"); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.EndModule(); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.RegFunction("Action_float", System_Action_float); L.RegFunction("Action_float_float", System_Action_float_float); L.RegFunction("Action_float_object", System_Action_float_object); L.RegFunction("Action_UnityEngine_Vector2", System_Action_UnityEngine_Vector2); L.RegFunction("Action_UnityEngine_Vector3", System_Action_UnityEngine_Vector3); L.RegFunction("Action_UnityEngine_Vector3_object", System_Action_UnityEngine_Vector3_object); L.RegFunction("Action_UnityEngine_Color", System_Action_UnityEngine_Color); L.RegFunction("Action_object", System_Action_object); L.RegFunction("Action_LTEvent", System_Action_LTEvent); L.EndModule(); L.EndModule(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); CommonUtilWrap.Register(L); SorterTagWrap.Register(L); ParticleOrderAutoSorterWrap.Register(L); LuaInterface_DebuggerWrap.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); ColaFramework_NetWork_ByteBufferWrap.Register(L); ColaFramework_NetWork_SocketManagerWrap.Register(L); ColaFramework_NetWork_NetMessageCenterWrap.Register(L); UnityEngine_UI_Extensions_UIComponentCollectionWrap.Register(L); UnityEngine_UI_Extensions_DropdownControlWrap.Register(L); UnityEngine_UI_Extensions_UITableViewWrap.Register(L); UnityEngine_UI_Extensions_UITableViewCellWrap.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.BeginModule("Extensions"); UnityEngine_UI_Extensions_UITableViewCellEventHandlerWrap.Register(L); L.BeginModule("UITableView"); L.RegFunction("OnCellInitEvent", UnityEngine_UI_Extensions_UITableView_OnCellInitEvent); L.RegFunction("OnProcessClick", UnityEngine_UI_Extensions_UITableView_OnProcessClick); L.RegFunction("OnProcessPress", UnityEngine_UI_Extensions_UITableView_OnProcessPress); L.RegFunction("OnScrollCompleted", UnityEngine_UI_Extensions_UITableView_OnScrollCompleted); L.RegFunction("OnTableScrolling", UnityEngine_UI_Extensions_UITableView_OnTableScrolling); L.EndModule(); 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("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_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.BeginModule("ColaFramework"); L.BeginModule("NetWork"); L.BeginModule("NetMessageCenter"); L.RegFunction("NetMessageAction", ColaFramework_NetWork_NetMessageCenter_NetMessageAction); 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); ApplicationFacadeWrap.Register(L); LuaBehaviourWrap.Register(L); ViewComponentWrap.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("UI"); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_InputFieldWrap.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("SceneManagement"); UnityEngine_SceneManagement_SceneManagerWrap.Register(L); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); L.EndModule(); L.BeginModule("Events"); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_LoadSceneMode", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_LoadSceneMode); L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene); L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene); L.EndModule(); L.BeginModule("Camera"); L.RegFunction("CameraCallback", UnityEngine_Camera_CameraCallback); L.EndModule(); L.BeginModule("Application"); L.RegFunction("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("PureMVC"); L.BeginModule("Patterns"); PureMVC_Patterns_FacadeWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("System"); L.RegFunction("Action", System_Action); L.RegFunction("Predicate_int", System_Predicate_int); L.RegFunction("Action_int", System_Action_int); L.RegFunction("Comparison_int", System_Comparison_int); L.RegFunction("Func_int_int", System_Func_int_int); L.RegFunction("Func_bool", System_Func_bool); L.RegFunction("Action_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation); L.EndModule(); L.BeginModule("ViewComponent"); L.RegFunction("EventDelegate", ViewComponent_EventDelegate); 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); 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); JsonLuaHelperWrap.Register(L); DataTableWrap.Register(L); SingleDataWrap.Register(L); SingleFieldWrap.Register(L); RecordTableWrap.Register(L); DataManagerWrap.Register(L); ConfigManagerWrap.Register(L); RecordManagerWrap.Register(L); AudioManagerWrap.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("AnimCustomMethodVector3", AnimCustomMethodVector3); L.RegFunction("AnimCustomMethodVector2", AnimCustomMethodVector2); L.RegFunction("AnimCustomMethodFloat", AnimCustomMethodFloat); L.RegFunction("InputEventHandle_InputUIOnClickEvent", InputEventHandle_InputUIOnClickEvent); L.RegFunction("InputEventHandle_InputUILongPressEvent", InputEventHandle_InputUILongPressEvent); L.RegFunction("EventHandle", EventHandle); L.RegFunction("UIAnimCallBack", UIAnimCallBack); L.RegFunction("UICallBack", UICallBack); L.RegFunction("AudioCallBack", AudioCallBack); 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_Vector3Wrap.Register(L); UnityEngine_Vector4Wrap.Register(L); UnityEngine_Vector2Wrap.Register(L); UnityEngine_ColorWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_ScreenWrap.Register(L); UnityEngine_InputWrap.Register(L); UnityEngine_MonoBehaviourWrap.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); }
public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); UtilWrap.Register(L); AppConstWrap.Register(L); LuaHelperWrap.Register(L); ByteBufferWrap.Register(L); LuaBehaviourWrap.Register(L); GameManagerWrap.Register(L); LuaManagerWrap.Register(L); PanelManagerWrap.Register(L); SoundManagerWrap.Register(L); TimerManagerWrap.Register(L); ThreadManagerWrap.Register(L); NetworkManagerWrap.Register(L); ResourceManagerWrap.Register(L); SDKManagerWrap.Register(L); UILoadingWrap.Register(L); UIResToolWrap.Register(L); UIResMgrWrap.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_WWWFormWrap.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_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_ResourcesWrap.Register(L); UnityEngine_CanvasWrap.Register(L); UnityEngine_CanvasGroupWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); L.BeginModule("SceneManagement"); UnityEngine_SceneManagement_SceneManagerWrap.Register(L); L.EndModule(); L.BeginModule("UI"); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_GraphicRaycasterWrap.Register(L); UnityEngine_UI_ClippingWrap.Register(L); UnityEngine_UI_ContentSizeFitterWrap.Register(L); UnityEngine_UI_GridLayoutGroupWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_MaskWrap.Register(L); UnityEngine_UI_LayoutGroupWrap.Register(L); UnityEngine_UI_OutlineWrap.Register(L); UnityEngine_UI_ScrollbarWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_ShadowWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); UnityEngine_UI_ToggleGroupWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_SpriteStateWrap.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); UnityEngine_EventSystems_BaseRaycasterWrap.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("Canvas"); L.RegFunction("WillRenderCanvases", UnityEngine_Canvas_WillRenderCanvases); L.EndModule(); L.BeginModule("RectTransform"); L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties); L.EndModule(); L.EndModule(); L.BeginModule("cn"); L.BeginModule("sharesdk"); L.BeginModule("unity3d"); cn_sharesdk_unity3d_PlatformTypeWrap.Register(L); cn_sharesdk_unity3d_ResponseStateWrap.Register(L); L.EndModule(); L.EndModule(); L.EndModule(); L.BeginModule("UI"); UI_MonoTableWrap.Register(L); UI_UIGroupWrap.Register(L); UI_ImageExWrap.Register(L); UI_TextExWrap.Register(L); UI_UIArtFontWrap.Register(L); UI_UIProgressExWrap.Register(L); UI_UIScrollTipsWrap.Register(L); UI_DragControlWrap.Register(L); UI_DropControlWrap.Register(L); UI_CurveMoveWrap.Register(L); UI_UIScrollWrapWrap.Register(L); UI_IHandleWrap.Register(L); UI_HandleWrap.Register(L); UI_AnimatorHandleWrap.Register(L); UI_DragListenerWrap.Register(L); UI_HandleAlphaWrap.Register(L); UI_HandleColorWrap.Register(L); UI_HandleGreyWrap.Register(L); UI_HandleImageWrap.Register(L); UI_HandleNumWrap.Register(L); UI_HandlePositionWrap.Register(L); UI_HandleProgressExWrap.Register(L); UI_HandleRotateWrap.Register(L); UI_HandleScaleWrap.Register(L); UI_HandleSequenceWrap.Register(L); UI_HandleSizeWrap.Register(L); UI_HandleStateWrap.Register(L); UI_HandleVisiableWrap.Register(L); UI_SequenceHandleWrap.Register(L); UI_SequenceHandleExWrap.Register(L); UI_SimpleHandleWrap.Register(L); UI_StateGroupWrap.Register(L); UI_StateHandleWrap.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("Action_UnityEngine_Transform", System_Action_UnityEngine_Transform); L.RegFunction("Action_NotiData", System_Action_NotiData); L.RegFunction("Action_UnityEngine_Objects", System_Action_UnityEngine_Objects); L.RegFunction("Action_int_int", System_Action_int_int); L.RegFunction("Action_UnityEngine_GameObject", System_Action_UnityEngine_GameObject); L.RegFunction("Action_UnityEngine_EventSystems_PointerEventData", System_Action_UnityEngine_EventSystems_PointerEventData); L.RegFunction("Action_object", System_Action_object); L.RegFunction("Action_UI_UIScrollWrap_int", System_Action_UI_UIScrollWrap_int); L.RegFunction("Action_UI_UIScrollWrap", System_Action_UI_UIScrollWrap); L.RegFunction("Action_UI_Handle_WndType_object", System_Action_UI_Handle_WndType_object); L.RegFunction("Func_UI_Handle_float", System_Func_UI_Handle_float); L.RegFunction("Func_UI_Handle_int", System_Func_UI_Handle_int); L.RegFunction("Func_UI_Handle_UnityEngine_Vector3", System_Func_UI_Handle_UnityEngine_Vector3); L.RegFunction("Func_UI_Handle_UnityEngine_Color", System_Func_UI_Handle_UnityEngine_Color); L.RegFunction("Func_bool", System_Func_bool); L.RegFunction("Action_UI_StateGroup_int", System_Action_UI_StateGroup_int); L.RegFunction("Action_UI_StateHandle_int", System_Action_UI_StateHandle_int); L.RegFunction("Action_UI_Handle", System_Action_UI_Handle); L.RegFunction("Action_UI_StateHandle", System_Action_UI_StateHandle); L.RegFunction("Action_LuaInterface_LuaTable", System_Action_LuaInterface_LuaTable); L.RegFunction("Action_LuaInterface_LuaTable_UI_StateHandle", System_Action_LuaInterface_LuaTable_UI_StateHandle); L.BeginModule("Threading"); L.RegFunction("ThreadStart", System_Threading_ThreadStart); L.EndModule(); L.EndModule(); L.EndModule(); }
public static void Bind(IntPtr L) { ActiveButtonWrap.Register(L); ActiveGroupWrap.Register(L); AnimationBlendModeWrap.Register(L); AnimationClipWrap.Register(L); AnimationStateWrap.Register(L); AnimationWrap.Register(L); AnimatorWrap.Register(L); ApplicationWrap.Register(L); AssetBundleWrap.Register(L); AsyncOperationWrap.Register(L); AudioClipWrap.Register(L); AudioSourceWrap.Register(L); BehaviourWrap.Register(L); BlendWeightsWrap.Register(L); BoxColliderWrap.Register(L); CC_Module_Menu_MenuLayerTypeWrap.Register(L); CC_Module_Menu_MenuManagerWrap.Register(L); CC_Runtime_AssetManagerWrap.Register(L); CC_Runtime_CooWrap.Register(L); CC_Runtime_PB_ProtoBattleVideoInfoWrap.Register(L); CC_Runtime_PB_ProtoBattleVideoRoleInfoWrap.Register(L); CC_Runtime_PB_ProtoLeagueInfoWrap.Register(L); CC_Runtime_PB_ProtoRoleBaseInfoWrap.Register(L); CC_Runtime_PB_ProtoRoleBattleInfoWrap.Register(L); CC_Runtime_PacketManagerWrap.Register(L); CC_Runtime_SocketIdWrap.Register(L); CC_Runtime_SocketManagerWrap.Register(L); CC_Runtime_Utils_DateTimeUtilsWrap.Register(L); CC_UI_BaseUIWrap.Register(L); CC_UI_LuaUIEventWrap.Register(L); CC_UI_TabButtonWrap.Register(L); CC_UI_TabGroupWrap.Register(L); CameraClearFlagsWrap.Register(L); CameraWrap.Register(L); CanvasWrap.Register(L); CharacterControllerWrap.Register(L); CityControlWrap.Register(L); ColliderWrap.Register(L); ColorUtilityWrap.Register(L); ColorWrap.Register(L); ComponentWrap.Register(L); CrashReporterWrap.Register(L); DG_Tweening_DOTweenWrap.Register(L); DG_Tweening_EaseWrap.Register(L); DG_Tweening_RotateModeWrap.Register(L); DG_Tweening_ScrambleModeWrap.Register(L); DG_Tweening_ShortcutExtensions46Wrap.Register(L); DG_Tweening_ShortcutExtensionsWrap.Register(L); DG_Tweening_TweenExtensionsWrap.Register(L); DG_Tweening_TweenSettingsExtensionsWrap.Register(L); DOTweenLuaUtilsWrap.Register(L); DebuggerWrap.Register(L); DelegateWrap.Register(L); EnumWrap.Register(L); ExtendButtonWrap.Register(L); GameObjectWrap.Register(L); Games_ConstConfigWrap.Register(L); Games_ConstConfig_IDWrap.Register(L); Games_GameConstWrap.Register(L); Games_Module_Props_PropConfigWrap.Register(L); Games_Module_Props_PropIdWrap.Register(L); Games_Module_Props_PropWrap.Register(L); Games_Module_Sound_SoundManagerWrap.Register(L); Games_Module_Sysmsgs_SysmsgManagerWrap.Register(L); Games_Module_Wars_FormationPositionWrap.Register(L); Games_Module_Wars_FormationWrap.Register(L); Games_Module_Wars_LegionTypeWrap.Register(L); Games_Module_Wars_MonsterConfigWrap.Register(L); Games_Module_Wars_OverTypeWrap.Register(L); Games_Module_Wars_SkillWarConfWrap.Register(L); Games_Module_Wars_StageConfigWrap.Register(L); Games_Module_Wars_StagePositionConfigWrap.Register(L); Games_Module_Wars_StageTypeWrap.Register(L); Games_Module_Wars_VSModeWrap.Register(L); Games_Module_Wars_WarEnterDataWrap.Register(L); Games_Module_Wars_WarEnterHeroDataWrap.Register(L); Games_Module_Wars_WarEnterLegionDataWrap.Register(L); Games_Module_Wars_WarEnterSoliderDataWrap.Register(L); Games_Module_Wars_WarModelWrap.Register(L); Games_Module_Wars_WarOverDataWrap.Register(L); Games_Module_Wars_WarOverLegionDataWrap.Register(L); Games_Module_Wars_WarRecordIOWrap.Register(L); Games_Module_Wars_WarServiceWrap.Register(L); Games_Module_Wars_WarWrap.Register(L); Games_Module_Wars_WinConfigWrap.Register(L); Games_Module_Wars_WinTypeWrap.Register(L); GuidWrap.Register(L); IEnumeratorWrap.Register(L); ImageSetMaterialWrap.Register(L); InputWrap.Register(L); KeyCodeWrap.Register(L); LightTypeWrap.Register(L); LightWrap.Register(L); MaterialWrap.Register(L); MeshColliderWrap.Register(L); MeshRendererWrap.Register(L); MiscLuaUtilWrap.Register(L); MonoBehaviourWrap.Register(L); MultiImageWrap.Register(L); NativeCodeManagerWrap.Register(L); ObjectWrap.Register(L); ParticleAnimatorWrap.Register(L); ParticleEmitterWrap.Register(L); ParticleRendererWrap.Register(L); ParticleSystemWrap.Register(L); PathUtilWrap.Register(L); PhysicsWrap.Register(L); PlayModeWrap.Register(L); PlayerPrefsUtilWrap.Register(L); PrefabTextWrap.Register(L); ProvinceControlWrap.Register(L); QualitySettingsWrap.Register(L); QueueModeWrap.Register(L); RectTransformWrap.Register(L); RectWrap.Register(L); RenderSettingsWrap.Register(L); RenderTextureWrap.Register(L); RendererWrap.Register(L); ScreenWrap.Register(L); ScrollZoomContainerWrap.Register(L); SimpleFramework_ByteBufferWrap.Register(L); SimpleFramework_LuaBehaviourWrap.Register(L); SimpleFramework_LuaHelperWrap.Register(L); SimpleFramework_UtilWrap.Register(L); SkinnedMeshRendererWrap.Register(L); SleepTimeoutWrap.Register(L); SliderWithTextWrap.Register(L); SpaceWrap.Register(L); SphereColliderWrap.Register(L); SpriteWrap.Register(L); SystemInfoWrap.Register(L); System_ObjectWrap.Register(L); TableViewWrap.Register(L); TextAnchorWrap.Register(L); TextureWrap.Register(L); TimeWrap.Register(L); TouchPhaseWrap.Register(L); TrackedReferenceWrap.Register(L); TransformWrap.Register(L); TypeWrap.Register(L); UnityEngine_Events_UnityEventWrap.Register(L); UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L); UnityEngine_UI_CanvasScalerWrap.Register(L); UnityEngine_UI_CanvasScaler_ScreenMatchModeWrap.Register(L); UnityEngine_UI_DropdownWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); WrapModeWrap.Register(L); bitWrap.Register(L); stringWrap.Register(L); }
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); 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); UtilsWrap.Register(L); LogWrap.Register(L); ResManagerWrap.Register(L); UnitySingleton_ResManagerWrap.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_PlayerPrefsWrap.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_CanvasWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_SpriteWrap.Register(L); UnityEngine_SpriteRendererWrap.Register(L); UnityEngine_RectWrap.Register(L); UnityEngine_GradientWrap.Register(L); UnityEngine_TextAnchorWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_CanvasScalerWrap.Register(L); UnityEngine_UI_GraphicRaycasterWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_RawImageWrap.Register(L); UnityEngine_UI_InputFieldWrap.Register(L); UnityEngine_UI_DropdownWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_SliderWrap.Register(L); UnityEngine_UI_ScrollbarWrap.Register(L); UnityEngine_UI_GridLayoutGroupWrap.Register(L); UnityEngine_UI_VerticalLayoutGroupWrap.Register(L); UnityEngine_UI_HorizontalLayoutGroupWrap.Register(L); UnityEngine_UI_OutlineWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_LayoutGroupWrap.Register(L); UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.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("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"); UnityEngine_Events_UnityEventWrap.Register(L); UnityEngine_Events_UnityEventBaseWrap.Register(L); 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.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_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); 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_RectWrap.Register(L); UnityEngine_SpriteWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_ToggleWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_SelectableWrap.Register(L); L.BeginModule("Toggle"); UnityEngine_UI_Toggle_ToggleEventWrap.Register(L); L.EndModule(); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_EventTriggerWrap.Register(L); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); L.EndModule(); L.BeginModule("Events"); UnityEngine_Events_UnityEvent_boolWrap.Register(L); UnityEngine_Events_UnityEventBaseWrap.Register(L); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.RegFunction("UnityAction_bool", UnityEngine_Events_UnityAction_bool); 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("QFramework"); QFramework_UIMgrWrap.Register(L); QFramework_ResMgrWrap.Register(L); QFramework_AudioManagerWrap.Register(L); QFramework_UIEventListenerWrap.Register(L); QFramework_LuaHelperWrap.Register(L); QFramework_UIHelperWrap.Register(L); QFramework_MonoSingleton_QFramework_ResMgrWrap.Register(L); QFramework_QMgrBehaviourWrap.Register(L); QFramework_QMonoBehaviourWrap.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_QFramework_AudioUnit", System_Action_QFramework_AudioUnit); L.RegFunction("Action_UnityEngine_GameObject", System_Action_UnityEngine_GameObject); L.RegFunction("Action_UnityEngine_EventSystems_BaseEventData", System_Action_UnityEngine_EventSystems_BaseEventData); L.RegFunction("Action_bool", System_Action_bool); 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); 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); }