Ejemplo n.º 1
0
    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();
    }
Ejemplo n.º 2
0
    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);
    }