Пример #1
0
 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);
 }
Пример #2
0
    public static void Bind(LuaState L)
    {
        float t = Time.realtimeSinceStartup;

        L.BeginModule(null);
        LuaInterface_DebuggerWrap.Register(L);
        CUtilWrap.Register(L);
        LuaProfilerWrap.Register(L);
        LeanTweenWrap.Register(L);
        LeanTweenTypeWrap.Register(L);
        LTDescrImplWrap.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_CanvasWrap.Register(L);
        UnityEngine_RenderModeWrap.Register(L);
        UnityEngine_RectWrap.Register(L);
        L.BeginModule("UI");
        UnityEngine_UI_CanvasScalerWrap.Register(L);
        UnityEngine_UI_GraphicRaycasterWrap.Register(L);
        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.BeginModule("CanvasScaler");
        UnityEngine_UI_CanvasScaler_ScaleModeWrap.Register(L);
        UnityEngine_UI_CanvasScaler_ScreenMatchModeWrap.Register(L);
        L.EndModule();
        L.BeginModule("Button");
        UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L);
        L.EndModule();
        L.EndModule();
        L.BeginModule("EventSystems");
        UnityEngine_EventSystems_EventSystemWrap.Register(L);
        UnityEngine_EventSystems_StandaloneInputModuleWrap.Register(L);
        UnityEngine_EventSystems_PointerEventDataWrap.Register(L);
        UnityEngine_EventSystems_UIBehaviourWrap.Register(L);
        UnityEngine_EventSystems_BaseRaycasterWrap.Register(L);
        UnityEngine_EventSystems_PointerInputModuleWrap.Register(L);
        UnityEngine_EventSystems_BaseInputModuleWrap.Register(L);
        UnityEngine_EventSystems_BaseEventDataWrap.Register(L);
        UnityEngine_EventSystems_AbstractEventDataWrap.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("RectTransform");
        L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties);
        L.EndModule();
        L.BeginModule("Canvas");
        L.RegFunction("WillRenderCanvases", UnityEngine_Canvas_WillRenderCanvases);
        L.EndModule();
        L.EndModule();
        L.BeginModule("FXGame");
        FXGame_LuaBehaviourWrap.Register(L);
        L.EndModule();
        L.BeginModule("System");
        L.RegFunction("Action", System_Action);
        L.RegFunction("Predicate_int", System_Predicate_int);
        L.RegFunction("Action_int", System_Action_int);
        L.RegFunction("Comparison_int", System_Comparison_int);
        L.RegFunction("Func_int_int", System_Func_int_int);
        L.RegFunction("Action_object", System_Action_object);
        L.RegFunction("Action_float", System_Action_float);
        L.RegFunction("Action_float_float", System_Action_float_float);
        L.RegFunction("Action_UnityEngine_Color", System_Action_UnityEngine_Color);
        L.RegFunction("Action_UnityEngine_Vector2", System_Action_UnityEngine_Vector2);
        L.RegFunction("Action_UnityEngine_Vector3", System_Action_UnityEngine_Vector3);
        L.RegFunction("Action_float_object", System_Action_float_object);
        L.RegFunction("Action_LTEvent", System_Action_LTEvent);
        L.RegFunction("Action_UnityEngine_Vector3_object", System_Action_UnityEngine_Vector3_object);
        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);
    }