Exemple #1
0
 public static void Bind(IntPtr L)
 {
     AnimationWrap.Register(L);
     AnimatorWrap.Register(L);
     ApplicationWrap.Register(L);
     AssetBundleWrap.Register(L);
     BaseLuaWrap.Register(L);
     BehaviourWrap.Register(L);
     ColorWrap.Register(L);
     ComponentWrap.Register(L);
     CoreWrap.Register(L);
     DebugWrap.Register(L);
     DeviceInfoWrap.Register(L);
     DownLoadFromWebWrap.Register(L);
     EventListenerWrap.Register(L);
     EventSenderWrap.Register(L);
     GameObjectWrap.Register(L);
     JumperWrap.Register(L);
     LuaLinkerWrap.Register(L);
     LuaManagerWrap.Register(L);
     LuaScriptMgrWrap.Register(L);
     LuaToolsWrap.Register(L);
     MathWrap.Register(L);
     MonoBehaviourWrap.Register(L);
     NGUIDebugWrap.Register(L);
     ObjectWrap.Register(L);
     ResourcesWrap.Register(L);
     TimeWrap.Register(L);
     TransformWrap.Register(L);
     TweenAlphaWrap.Register(L);
     TweenPositionWrap.Register(L);
     TweenScaleWrap.Register(L);
     TypeWrap.Register(L);
     UIBasicSpriteWrap.Register(L);
     UIButtonColorWrap.Register(L);
     UIButtonWrap.Register(L);
     UICameraWrap.Register(L);
     UIEventManagerWrap.Register(L);
     UILabelWrap.Register(L);
     UIPanelWrap.Register(L);
     UIProgressBarWrap.Register(L);
     UIRectWrap.Register(L);
     UISliderWrap.Register(L);
     UISpriteWrap.Register(L);
     UITextureWrap.Register(L);
     UITweenerWrap.Register(L);
     UIWidgetContainerWrap.Register(L);
     Vector2Wrap.Register(L);
     Vector3Wrap.Register(L);
     UIWidgetWrap.Register(L);
     DirectoryWrap.Register(L);
     FileWrap.Register(L);
     yieldWrap.Register(L);
 }
Exemple #2
0
    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);
    }
Exemple #3
0
    public static void Bind(LuaState L)
    {
        float t = Time.realtimeSinceStartup;

        L.BeginModule(null);
        LuaInterface_DebuggerWrap.Register(L);
        UIPanelWrap.Register(L);
        UILabelWrap.Register(L);
        UIGridWrap.Register(L);
        UtilWrap.Register(L);
        LuaHelperWrap.Register(L);
        LuaBehaviourWrap.Register(L);
        LuaManagerWrap.Register(L);
        ResourceMgrWrap.Register(L);
        SceneMgrWrap.Register(L);
        UIRectWrap.Register(L);
        UIWidgetWrap.Register(L);
        UIWidgetContainerWrap.Register(L);
        MonoSingletonMgr_LuaManagerWrap.Register(L);
        SingletonManager_ResourceMgrWrap.Register(L);
        MonoSingletonMgr_SceneMgrWrap.Register(L);
        L.BeginModule("UnityEngine");
        UnityEngine_ComponentWrap.Register(L);
        UnityEngine_TransformWrap.Register(L);
        UnityEngine_MaterialWrap.Register(L);
        UnityEngine_LightWrap.Register(L);
        UnityEngine_CameraWrap.Register(L);
        UnityEngine_AudioSourceWrap.Register(L);
        UnityEngine_BehaviourWrap.Register(L);
        UnityEngine_MonoBehaviourWrap.Register(L);
        UnityEngine_GameObjectWrap.Register(L);
        UnityEngine_TrackedReferenceWrap.Register(L);
        UnityEngine_ApplicationWrap.Register(L);
        UnityEngine_PhysicsWrap.Register(L);
        UnityEngine_ColliderWrap.Register(L);
        UnityEngine_TimeWrap.Register(L);
        UnityEngine_TextureWrap.Register(L);
        UnityEngine_Texture2DWrap.Register(L);
        UnityEngine_ShaderWrap.Register(L);
        UnityEngine_RendererWrap.Register(L);
        UnityEngine_WWWWrap.Register(L);
        UnityEngine_ScreenWrap.Register(L);
        UnityEngine_CameraClearFlagsWrap.Register(L);
        UnityEngine_AudioClipWrap.Register(L);
        UnityEngine_AssetBundleWrap.Register(L);
        UnityEngine_ParticleSystemWrap.Register(L);
        UnityEngine_AsyncOperationWrap.Register(L);
        UnityEngine_LightTypeWrap.Register(L);
        UnityEngine_SleepTimeoutWrap.Register(L);
        UnityEngine_AnimatorWrap.Register(L);
        UnityEngine_InputWrap.Register(L);
        UnityEngine_KeyCodeWrap.Register(L);
        UnityEngine_SkinnedMeshRendererWrap.Register(L);
        UnityEngine_SpaceWrap.Register(L);
        UnityEngine_AnimationBlendModeWrap.Register(L);
        UnityEngine_QueueModeWrap.Register(L);
        UnityEngine_PlayModeWrap.Register(L);
        UnityEngine_WrapModeWrap.Register(L);
        UnityEngine_QualitySettingsWrap.Register(L);
        UnityEngine_RenderSettingsWrap.Register(L);
        UnityEngine_ResourcesWrap.Register(L);
        L.BeginModule("Experimental");
        L.BeginModule("Director");
        UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L);
        L.EndModule();
        L.EndModule();
        L.BeginModule("Events");
        L.RegFunction("UnityAction", UnityEngine_Events_UnityAction);
        L.EndModule();
        L.BeginModule("Camera");
        L.RegFunction("CameraCallback", UnityEngine_Camera_CameraCallback);
        L.EndModule();
        L.BeginModule("Application");
        L.RegFunction("LogCallback", UnityEngine_Application_LogCallback);
        L.RegFunction("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback);
        L.EndModule();
        L.BeginModule("AudioClip");
        L.RegFunction("PCMReaderCallback", UnityEngine_AudioClip_PCMReaderCallback);
        L.RegFunction("PCMSetPositionCallback", UnityEngine_AudioClip_PCMSetPositionCallback);
        L.EndModule();
        L.EndModule();
        L.BeginModule("System");
        L.RegFunction("Action", System_Action);
        L.RegFunction("Predicate_int", System_Predicate_int);
        L.RegFunction("Action_int", System_Action_int);
        L.RegFunction("Comparison_int", System_Comparison_int);
        L.RegFunction("Func_int_int", System_Func_int_int);
        L.RegFunction("Comparison_UnityEngine_Transform", System_Comparison_UnityEngine_Transform);
        L.RegFunction("Action_UnityEngine_Object", System_Action_UnityEngine_Object);
        L.RegFunction("Action_float", System_Action_float);
        L.EndModule();
        L.BeginModule("UIPanel");
        L.RegFunction("OnGeometryUpdated", UIPanel_OnGeometryUpdated);
        L.RegFunction("OnClippingMoved", UIPanel_OnClippingMoved);
        L.EndModule();
        L.BeginModule("UIWidget");
        L.RegFunction("OnDimensionsChanged", UIWidget_OnDimensionsChanged);
        L.RegFunction("OnPostFillCallback", UIWidget_OnPostFillCallback);
        L.RegFunction("HitCheck", UIWidget_HitCheck);
        L.EndModule();
        L.BeginModule("UIDrawCall");
        L.RegFunction("OnRenderCallback", UIDrawCall_OnRenderCallback);
        L.EndModule();
        L.BeginModule("UIGrid");
        L.RegFunction("OnReposition", UIGrid_OnReposition);
        L.EndModule();
        L.EndModule();
        L.BeginPreLoad();
        L.AddPreLoad("UnityEngine.MeshRenderer", LuaOpen_UnityEngine_MeshRenderer, typeof(UnityEngine.MeshRenderer));
        L.AddPreLoad("UnityEngine.ParticleEmitter", LuaOpen_UnityEngine_ParticleEmitter, typeof(UnityEngine.ParticleEmitter));
        L.AddPreLoad("UnityEngine.ParticleRenderer", LuaOpen_UnityEngine_ParticleRenderer, typeof(UnityEngine.ParticleRenderer));
        L.AddPreLoad("UnityEngine.ParticleAnimator", LuaOpen_UnityEngine_ParticleAnimator, typeof(UnityEngine.ParticleAnimator));
        L.AddPreLoad("UnityEngine.BoxCollider", LuaOpen_UnityEngine_BoxCollider, typeof(UnityEngine.BoxCollider));
        L.AddPreLoad("UnityEngine.MeshCollider", LuaOpen_UnityEngine_MeshCollider, typeof(UnityEngine.MeshCollider));
        L.AddPreLoad("UnityEngine.SphereCollider", LuaOpen_UnityEngine_SphereCollider, typeof(UnityEngine.SphereCollider));
        L.AddPreLoad("UnityEngine.CharacterController", LuaOpen_UnityEngine_CharacterController, typeof(UnityEngine.CharacterController));
        L.AddPreLoad("UnityEngine.CapsuleCollider", LuaOpen_UnityEngine_CapsuleCollider, typeof(UnityEngine.CapsuleCollider));
        L.AddPreLoad("UnityEngine.Animation", LuaOpen_UnityEngine_Animation, typeof(UnityEngine.Animation));
        L.AddPreLoad("UnityEngine.AnimationClip", LuaOpen_UnityEngine_AnimationClip, typeof(UnityEngine.AnimationClip));
        L.AddPreLoad("UnityEngine.AnimationState", LuaOpen_UnityEngine_AnimationState, typeof(UnityEngine.AnimationState));
        L.AddPreLoad("UnityEngine.BlendWeights", LuaOpen_UnityEngine_BlendWeights, typeof(UnityEngine.BlendWeights));
        L.AddPreLoad("UnityEngine.RenderTexture", LuaOpen_UnityEngine_RenderTexture, typeof(UnityEngine.RenderTexture));
        L.AddPreLoad("UnityEngine.Rigidbody", LuaOpen_UnityEngine_Rigidbody, typeof(UnityEngine.Rigidbody));
        L.EndPreLoad();
        Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t);
    }
    public static void Bind(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 "GConsoleCoreWrap": GConsoleCoreWrap.Register(L); break;

        case "GConsoleWrap": GConsoleWrap.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 "LuaManagerWrap": LuaManagerWrap.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 "NavMeshAgentWrap": NavMeshAgentWrap.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 "RendererWrap": RendererWrap.Register(L); break;

        case "RenderSettingsWrap": RenderSettingsWrap.Register(L); break;

        case "RenderTextureWrap": RenderTextureWrap.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 "stringWrap": stringWrap.Register(L); break;

        case "System_ObjectWrap": System_ObjectWrap.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 "UtilWrap": UtilWrap.Register(L); break;

        case "WWWWrap": WWWWrap.Register(L); break;
        }
    }
Exemple #5
0
    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();
    }
Exemple #6
0
    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);
        ViewWrap.Register(L);
        BaseWrap.Register(L);
        ManagerWrap.Register(L);
        L.BeginModule("UnityEngine");
        UnityEngine_ComponentWrap.Register(L);
        UnityEngine_TransformWrap.Register(L);
        UnityEngine_MaterialWrap.Register(L);
        UnityEngine_LightWrap.Register(L);
        UnityEngine_RigidbodyWrap.Register(L);
        UnityEngine_CameraWrap.Register(L);
        UnityEngine_AudioSourceWrap.Register(L);
        UnityEngine_BehaviourWrap.Register(L);
        UnityEngine_MonoBehaviourWrap.Register(L);
        UnityEngine_GameObjectWrap.Register(L);
        UnityEngine_TrackedReferenceWrap.Register(L);
        UnityEngine_ApplicationWrap.Register(L);
        UnityEngine_PhysicsWrap.Register(L);
        UnityEngine_ColliderWrap.Register(L);
        UnityEngine_TimeWrap.Register(L);
        UnityEngine_TextureWrap.Register(L);
        UnityEngine_Texture2DWrap.Register(L);
        UnityEngine_ShaderWrap.Register(L);
        UnityEngine_RendererWrap.Register(L);
        UnityEngine_WWWWrap.Register(L);
        UnityEngine_ScreenWrap.Register(L);
        UnityEngine_CameraClearFlagsWrap.Register(L);
        UnityEngine_AudioClipWrap.Register(L);
        UnityEngine_AssetBundleWrap.Register(L);
        UnityEngine_ParticleSystemWrap.Register(L);
        UnityEngine_AsyncOperationWrap.Register(L);
        UnityEngine_LightTypeWrap.Register(L);
        UnityEngine_SleepTimeoutWrap.Register(L);
        UnityEngine_AnimatorWrap.Register(L);
        UnityEngine_InputWrap.Register(L);
        UnityEngine_KeyCodeWrap.Register(L);
        UnityEngine_SkinnedMeshRendererWrap.Register(L);
        UnityEngine_SpaceWrap.Register(L);
        UnityEngine_MeshRendererWrap.Register(L);
        UnityEngine_ParticleEmitterWrap.Register(L);
        UnityEngine_ParticleRendererWrap.Register(L);
        UnityEngine_ParticleAnimatorWrap.Register(L);
        UnityEngine_BoxColliderWrap.Register(L);
        UnityEngine_MeshColliderWrap.Register(L);
        UnityEngine_SphereColliderWrap.Register(L);
        UnityEngine_CharacterControllerWrap.Register(L);
        UnityEngine_CapsuleColliderWrap.Register(L);
        UnityEngine_AnimationWrap.Register(L);
        UnityEngine_AnimationClipWrap.Register(L);
        UnityEngine_AnimationStateWrap.Register(L);
        UnityEngine_AnimationBlendModeWrap.Register(L);
        UnityEngine_QueueModeWrap.Register(L);
        UnityEngine_PlayModeWrap.Register(L);
        UnityEngine_WrapModeWrap.Register(L);
        UnityEngine_QualitySettingsWrap.Register(L);
        UnityEngine_RenderSettingsWrap.Register(L);
        UnityEngine_BlendWeightsWrap.Register(L);
        UnityEngine_RenderTextureWrap.Register(L);
        UnityEngine_RectTransformWrap.Register(L);
        L.BeginModule("UI");
        UnityEngine_UI_TextWrap.Register(L);
        UnityEngine_UI_MaskableGraphicWrap.Register(L);
        UnityEngine_UI_GraphicWrap.Register(L);
        L.EndModule();
        L.BeginModule("Experimental");
        L.BeginModule("Director");
        UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L);
        L.EndModule();
        L.EndModule();
        L.BeginModule("EventSystems");
        UnityEngine_EventSystems_UIBehaviourWrap.Register(L);
        L.EndModule();
        L.BeginModule("Events");
        L.RegFunction("UnityAction", UnityEngine_Events_UnityAction);
        L.EndModule();
        L.BeginModule("Camera");
        L.RegFunction("CameraCallback", UnityEngine_Camera_CameraCallback);
        L.EndModule();
        L.BeginModule("Application");
        L.RegFunction("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback);
        L.RegFunction("LogCallback", UnityEngine_Application_LogCallback);
        L.EndModule();
        L.BeginModule("AudioClip");
        L.RegFunction("PCMReaderCallback", UnityEngine_AudioClip_PCMReaderCallback);
        L.RegFunction("PCMSetPositionCallback", UnityEngine_AudioClip_PCMSetPositionCallback);
        L.EndModule();
        L.BeginModule("RectTransform");
        L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties);
        L.EndModule();
        L.EndModule();
        L.BeginModule("System");
        L.RegFunction("Action", System_Action);
        L.RegFunction("Action_NotiData", System_Action_NotiData);
        L.RegFunction("Action_UnityEngine_Objects", System_Action_UnityEngine_Objects);
        L.EndModule();
        L.EndModule();
        Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t);
    }
    public static void Bind(LuaState L)
    {
        float t = Time.realtimeSinceStartup;

        L.BeginModule(null);
        LuaInterface_DebuggerWrap.Register(L);
        TestHelperWrap.Register(L);
        LuaProfilerWrap.Register(L);
        LuaManagerWrap.Register(L);
        MixedLabelWrap.Register(L);
        ViewWrap.Register(L);
        BaseWrap.Register(L);
        ManagerWrap.Register(L);
        L.RegFunction("NetworkEventHandler", NetworkEventHandler);
        L.BeginModule("Protocols");
        Protocols_NetworkControllerWrap.Register(L);
        Protocols_ProtoBodyWrap.Register(L);
        Protocols_ProtocolWrap.Register(L);
        Protocols_ProtoIDWrap.Register(L);
        L.BeginModule("ProtoBody");
        L.RegFunction("DeserializeFunc", Protocols_ProtoBody_DeserializeFunc);
        L.EndModule();
        L.EndModule();
        L.BeginModule("UnityEngine");
        UnityEngine_ComponentWrap.Register(L);
        UnityEngine_TransformWrap.Register(L);
        UnityEngine_MaterialWrap.Register(L);
        UnityEngine_LightWrap.Register(L);
        UnityEngine_CameraWrap.Register(L);
        UnityEngine_AudioSourceWrap.Register(L);
        UnityEngine_BehaviourWrap.Register(L);
        UnityEngine_MonoBehaviourWrap.Register(L);
        UnityEngine_GameObjectWrap.Register(L);
        UnityEngine_TrackedReferenceWrap.Register(L);
        UnityEngine_ApplicationWrap.Register(L);
        UnityEngine_PhysicsWrap.Register(L);
        UnityEngine_ColliderWrap.Register(L);
        UnityEngine_TimeWrap.Register(L);
        UnityEngine_TextureWrap.Register(L);
        UnityEngine_Texture2DWrap.Register(L);
        UnityEngine_ShaderWrap.Register(L);
        UnityEngine_RendererWrap.Register(L);
        UnityEngine_WWWWrap.Register(L);
        UnityEngine_ScreenWrap.Register(L);
        UnityEngine_CameraClearFlagsWrap.Register(L);
        UnityEngine_AudioClipWrap.Register(L);
        UnityEngine_AssetBundleWrap.Register(L);
        UnityEngine_ParticleSystemWrap.Register(L);
        UnityEngine_AsyncOperationWrap.Register(L);
        UnityEngine_LightTypeWrap.Register(L);
        UnityEngine_SleepTimeoutWrap.Register(L);
        UnityEngine_AnimatorWrap.Register(L);
        UnityEngine_InputWrap.Register(L);
        UnityEngine_KeyCodeWrap.Register(L);
        UnityEngine_SkinnedMeshRendererWrap.Register(L);
        UnityEngine_SpaceWrap.Register(L);
        UnityEngine_AnimationBlendModeWrap.Register(L);
        UnityEngine_QueueModeWrap.Register(L);
        UnityEngine_PlayModeWrap.Register(L);
        UnityEngine_WrapModeWrap.Register(L);
        UnityEngine_QualitySettingsWrap.Register(L);
        UnityEngine_RenderSettingsWrap.Register(L);
        UnityEngine_ResourcesWrap.Register(L);
        UnityEngine_RectTransformWrap.Register(L);
        L.BeginModule("UI");
        UnityEngine_UI_TextWrap.Register(L);
        UnityEngine_UI_MaskableGraphicWrap.Register(L);
        UnityEngine_UI_GraphicWrap.Register(L);
        L.EndModule();
        L.BeginModule("EventSystems");
        UnityEngine_EventSystems_UIBehaviourWrap.Register(L);
        L.EndModule();
        L.BeginModule("Events");
        L.RegFunction("UnityAction", UnityEngine_Events_UnityAction);
        L.EndModule();
        L.BeginModule("Camera");
        L.RegFunction("CameraCallback", UnityEngine_Camera_CameraCallback);
        L.EndModule();
        L.BeginModule("Application");
        L.RegFunction("LowMemoryCallback", UnityEngine_Application_LowMemoryCallback);
        L.RegFunction("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback);
        L.RegFunction("LogCallback", UnityEngine_Application_LogCallback);
        L.EndModule();
        L.BeginModule("AudioClip");
        L.RegFunction("PCMReaderCallback", UnityEngine_AudioClip_PCMReaderCallback);
        L.RegFunction("PCMSetPositionCallback", UnityEngine_AudioClip_PCMSetPositionCallback);
        L.EndModule();
        L.BeginModule("RectTransform");
        L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties);
        L.EndModule();
        L.EndModule();
        L.BeginModule("LuaFramework");
        LuaFramework_UtilWrap.Register(L);
        LuaFramework_AppConstWrap.Register(L);
        LuaFramework_LuaHelperWrap.Register(L);
        LuaFramework_ByteBufferWrap.Register(L);
        LuaFramework_LuaBehaviourWrap.Register(L);
        LuaFramework_GameManagerWrap.Register(L);
        LuaFramework_PanelManagerWrap.Register(L);
        LuaFramework_SoundManagerWrap.Register(L);
        LuaFramework_TimerManagerWrap.Register(L);
        LuaFramework_ThreadManagerWrap.Register(L);
        LuaFramework_NetworkManagerWrap.Register(L);
        LuaFramework_ResourceManagerWrap.Register(L);
        L.EndModule();
        L.BeginModule("System");
        L.RegFunction("Action", System_Action);
        L.RegFunction("Predicate_int", System_Predicate_int);
        L.RegFunction("Action_int", System_Action_int);
        L.RegFunction("Comparison_int", System_Comparison_int);
        L.RegFunction("Func_int_int", System_Func_int_int);
        L.RegFunction("Action_System_IO_Stream_Protocols_ProtoBody", System_Action_System_IO_Stream_Protocols_ProtoBody);
        L.RegFunction("Action_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation);
        L.RegFunction("Action_NotiData", System_Action_NotiData);
        L.EndModule();
        L.EndModule();
        L.BeginPreLoad();
        L.AddPreLoad("UnityEngine.MeshRenderer", LuaOpen_UnityEngine_MeshRenderer, typeof(UnityEngine.MeshRenderer));
        L.AddPreLoad("UnityEngine.BoxCollider", LuaOpen_UnityEngine_BoxCollider, typeof(UnityEngine.BoxCollider));
        L.AddPreLoad("UnityEngine.MeshCollider", LuaOpen_UnityEngine_MeshCollider, typeof(UnityEngine.MeshCollider));
        L.AddPreLoad("UnityEngine.SphereCollider", LuaOpen_UnityEngine_SphereCollider, typeof(UnityEngine.SphereCollider));
        L.AddPreLoad("UnityEngine.CharacterController", LuaOpen_UnityEngine_CharacterController, typeof(UnityEngine.CharacterController));
        L.AddPreLoad("UnityEngine.CapsuleCollider", LuaOpen_UnityEngine_CapsuleCollider, typeof(UnityEngine.CapsuleCollider));
        L.AddPreLoad("UnityEngine.Animation", LuaOpen_UnityEngine_Animation, typeof(UnityEngine.Animation));
        L.AddPreLoad("UnityEngine.AnimationClip", LuaOpen_UnityEngine_AnimationClip, typeof(UnityEngine.AnimationClip));
        L.AddPreLoad("UnityEngine.AnimationState", LuaOpen_UnityEngine_AnimationState, typeof(UnityEngine.AnimationState));
        L.AddPreLoad("UnityEngine.BlendWeights", LuaOpen_UnityEngine_BlendWeights, typeof(UnityEngine.BlendWeights));
        L.AddPreLoad("UnityEngine.RenderTexture", LuaOpen_UnityEngine_RenderTexture, typeof(UnityEngine.RenderTexture));
        L.AddPreLoad("UnityEngine.Rigidbody", LuaOpen_UnityEngine_Rigidbody, typeof(UnityEngine.Rigidbody));
        L.EndPreLoad();
        Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t);
    }