public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); ViewWrap.Register(L); BaseWrap.Register(L); ManagerWrap.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); DG_Tweening_PathModeWrap.Register(L); DG_Tweening_PathTypeWrap.Register(L); DG_Tweening_RotateModeWrap.Register(L); L.RegFunction("TweenCallback", DG_Tweening_TweenCallback); L.BeginModule("Core"); L.RegFunction("DOGetter_float", DG_Tweening_Core_DOGetter_float); L.RegFunction("DOSetter_float", DG_Tweening_Core_DOSetter_float); L.RegFunction("DOGetter_double", DG_Tweening_Core_DOGetter_double); L.RegFunction("DOSetter_double", DG_Tweening_Core_DOSetter_double); L.RegFunction("DOGetter_int", DG_Tweening_Core_DOGetter_int); L.RegFunction("DOSetter_int", DG_Tweening_Core_DOSetter_int); L.RegFunction("DOGetter_uint", DG_Tweening_Core_DOGetter_uint); L.RegFunction("DOSetter_uint", DG_Tweening_Core_DOSetter_uint); L.RegFunction("DOGetter_long", DG_Tweening_Core_DOGetter_long); L.RegFunction("DOSetter_long", DG_Tweening_Core_DOSetter_long); L.RegFunction("DOGetter_ulong", DG_Tweening_Core_DOGetter_ulong); L.RegFunction("DOSetter_ulong", DG_Tweening_Core_DOSetter_ulong); L.RegFunction("DOGetter_string", DG_Tweening_Core_DOGetter_string); L.RegFunction("DOSetter_string", DG_Tweening_Core_DOSetter_string); L.RegFunction("DOGetter_UnityEngine_Vector2", DG_Tweening_Core_DOGetter_UnityEngine_Vector2); L.RegFunction("DOSetter_UnityEngine_Vector2", DG_Tweening_Core_DOSetter_UnityEngine_Vector2); L.RegFunction("DOGetter_UnityEngine_Vector3", DG_Tweening_Core_DOGetter_UnityEngine_Vector3); L.RegFunction("DOSetter_UnityEngine_Vector3", DG_Tweening_Core_DOSetter_UnityEngine_Vector3); L.RegFunction("DOGetter_UnityEngine_Vector4", DG_Tweening_Core_DOGetter_UnityEngine_Vector4); L.RegFunction("DOSetter_UnityEngine_Vector4", DG_Tweening_Core_DOSetter_UnityEngine_Vector4); L.RegFunction("DOGetter_UnityEngine_Quaternion", DG_Tweening_Core_DOGetter_UnityEngine_Quaternion); L.RegFunction("DOSetter_UnityEngine_Quaternion", DG_Tweening_Core_DOSetter_UnityEngine_Quaternion); L.RegFunction("DOGetter_UnityEngine_Color", DG_Tweening_Core_DOGetter_UnityEngine_Color); L.RegFunction("DOSetter_UnityEngine_Color", DG_Tweening_Core_DOSetter_UnityEngine_Color); L.RegFunction("DOGetter_UnityEngine_Rect", DG_Tweening_Core_DOGetter_UnityEngine_Rect); L.RegFunction("DOSetter_UnityEngine_Rect", DG_Tweening_Core_DOSetter_UnityEngine_Rect); L.RegFunction("DOGetter_UnityEngine_RectOffset", DG_Tweening_Core_DOGetter_UnityEngine_RectOffset); L.RegFunction("DOSetter_UnityEngine_RectOffset", DG_Tweening_Core_DOSetter_UnityEngine_RectOffset); L.EndModule(); L.EndModule(); L.EndModule(); L.BeginModule("UnityEngine"); UnityEngine_ComponentWrap.Register(L); UnityEngine_TransformWrap.Register(L); UnityEngine_LightWrap.Register(L); UnityEngine_MaterialWrap.Register(L); UnityEngine_RigidbodyWrap.Register(L); UnityEngine_CameraWrap.Register(L); UnityEngine_AudioSourceWrap.Register(L); UnityEngine_BehaviourWrap.Register(L); UnityEngine_ResourcesWrap.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); UnityEngine_RectWrap.Register(L); UnityEngine_SpriteWrap.Register(L); UnityEngine_SpriteRendererWrap.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("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.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("Action_NotiData", System_Action_NotiData); L.EndModule(); L.EndModule(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }
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(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 "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 "BaseLuaWrap": BaseLuaWrap.Register(L); break; case "BehaviourWrap": BehaviourWrap.Register(L); break; case "BlendWeightsWrap": BlendWeightsWrap.Register(L); break; case "BoxColliderWrap": BoxColliderWrap.Register(L); break; case "ButtonWrap": ButtonWrap.Register(L); break; case "Button_ButtonClickedEventWrap": Button_ButtonClickedEventWrap.Register(L); break; case "ByteBufferWrap": ByteBufferWrap.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 "DG_Tweening_DOTweenWrap": DG_Tweening_DOTweenWrap.Register(L); break; case "DG_Tweening_LoopTypeWrap": DG_Tweening_LoopTypeWrap.Register(L); break; case "DG_Tweening_RotateModeWrap": DG_Tweening_RotateModeWrap.Register(L); break; case "DG_Tweening_SequenceWrap": DG_Tweening_SequenceWrap.Register(L); break; case "DG_Tweening_TweenerWrap": DG_Tweening_TweenerWrap.Register(L); break; case "DG_Tweening_TweenWrap": DG_Tweening_TweenWrap.Register(L); break; case "EnumWrap": EnumWrap.Register(L); break; case "GameObjectWrap": GameObjectWrap.Register(L); break; case "GraphicWrap": GraphicWrap.Register(L); break; case "IEnumeratorWrap": IEnumeratorWrap.Register(L); break; case "ImageWrap": ImageWrap.Register(L); break; case "InputWrap": InputWrap.Register(L); break; case "IOLuaHelperWrap": IOLuaHelperWrap.Register(L); break; case "iooWrap": iooWrap.Register(L); break; case "KeyCodeWrap": KeyCodeWrap.Register(L); break; case "LightTypeWrap": LightTypeWrap.Register(L); break; case "LightWrap": LightWrap.Register(L); break; case "LuaHelperWrap": LuaHelperWrap.Register(L); break; case "MaskableGraphicWrap": MaskableGraphicWrap.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 "NetworkManagerWrap": NetworkManagerWrap.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 "PoolManagerWrap": PoolManagerWrap.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 "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 "TestDelegateListenerWrap": TestDelegateListenerWrap.Register(L); break; case "TestEventListenerWrap": TestEventListenerWrap.Register(L); break; case "TestLuaDelegateWrap": TestLuaDelegateWrap.Register(L); break; case "TextureWrap": TextureWrap.Register(L); break; case "TextWrap": TextWrap.Register(L); break; case "TimerManagerWrap": TimerManagerWrap.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 "UIBehaviourWrap": UIBehaviourWrap.Register(L); break; case "UIEventListenerWrap": UIEventListenerWrap.Register(L); break; case "UIFollowTargetWrap": UIFollowTargetWrap.Register(L); break; case "UIProgressWrap": UIProgressWrap.Register(L); break; case "UnityEngine_Events_UnityEventBaseWrap": UnityEngine_Events_UnityEventBaseWrap.Register(L); break; case "UnityEngine_Events_UnityEventWrap": UnityEngine_Events_UnityEventWrap.Register(L); break; case "UtilCommonWrap": UtilCommonWrap.Register(L); break; case "UtilMathWrap": UtilMathWrap.Register(L); break; case "UtilWrap": UtilWrap.Register(L); break; } }