public static void Bind(LuaState L) { float t = Time.realtimeSinceStartup; L.BeginModule(null); LuaInterface_DebuggerWrap.Register(L); ScrollRectInputWrap.Register(L); ReusingScrollRectWrap.Register(L); InterpTypeWrap.Register(L); RepeatTypeWrap.Register(L); AnimDataWrap.Register(L); AnimSystemWrap.Register(L); UIBaseWrap.Register(L); UIWindowBaseWrap.Register(L); UIManagerWrap.Register(L); UIWindowLuaHelperWrap.Register(L); JsonLuaHelperWrap.Register(L); DataTableWrap.Register(L); SingleDataWrap.Register(L); SingleFieldWrap.Register(L); RecordTableWrap.Register(L); DataManagerWrap.Register(L); ConfigManagerWrap.Register(L); RecordManagerWrap.Register(L); AudioManagerWrap.Register(L); IInputEventBaseWrap.Register(L); InputUIEventTypeWrap.Register(L); InputUIEventBaseWrap.Register(L); InputUIOnScrollEventWrap.Register(L); InputUIOnClickEventWrap.Register(L); InputUILongPressEventWrap.Register(L); InputNetworkMessageEventWrap.Register(L); InputNetworkConnectStatusEventWrap.Register(L); NetworkStateWrap.Register(L); InputManagerWrap.Register(L); NetworkManagerWrap.Register(L); GameObjectManagerWrap.Register(L); L.RegFunction("AnimCallBack", AnimCallBack); L.RegFunction("AnimCustomMethodVector3", AnimCustomMethodVector3); L.RegFunction("AnimCustomMethodVector2", AnimCustomMethodVector2); L.RegFunction("AnimCustomMethodFloat", AnimCustomMethodFloat); L.RegFunction("InputEventHandle_InputUIOnClickEvent", InputEventHandle_InputUIOnClickEvent); L.RegFunction("InputEventHandle_InputUILongPressEvent", InputEventHandle_InputUILongPressEvent); L.RegFunction("EventHandle", EventHandle); L.RegFunction("UIAnimCallBack", UIAnimCallBack); L.RegFunction("UICallBack", UICallBack); L.RegFunction("AudioCallBack", AudioCallBack); L.RegFunction("InputEventCallBack", InputEventCallBack); L.RegFunction("InputEventHandle_IInputEventBase", InputEventHandle_IInputEventBase); L.BeginModule("UnityEngine"); UnityEngine_GameObjectWrap.Register(L); UnityEngine_TransformWrap.Register(L); UnityEngine_ComponentWrap.Register(L); UnityEngine_BehaviourWrap.Register(L); UnityEngine_Vector3Wrap.Register(L); UnityEngine_Vector4Wrap.Register(L); UnityEngine_Vector2Wrap.Register(L); UnityEngine_ColorWrap.Register(L); UnityEngine_RectTransformWrap.Register(L); UnityEngine_ScreenWrap.Register(L); UnityEngine_InputWrap.Register(L); UnityEngine_MonoBehaviourWrap.Register(L); L.BeginModule("UI"); UnityEngine_UI_SelectableWrap.Register(L); UnityEngine_UI_GraphicWrap.Register(L); UnityEngine_UI_MaskableGraphicWrap.Register(L); UnityEngine_UI_ScrollRectWrap.Register(L); UnityEngine_UI_ButtonWrap.Register(L); UnityEngine_UI_ImageWrap.Register(L); UnityEngine_UI_TextWrap.Register(L); L.EndModule(); L.BeginModule("EventSystems"); UnityEngine_EventSystems_UIBehaviourWrap.Register(L); L.EndModule(); L.BeginModule("Events"); L.RegFunction("UnityAction", UnityEngine_Events_UnityAction); L.EndModule(); L.BeginModule("RectTransform"); L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties); L.EndModule(); L.EndModule(); L.BeginModule("System"); L.RegFunction("Predicate_string", System_Predicate_string); L.RegFunction("Action_string", System_Action_string); L.RegFunction("Comparison_string", System_Comparison_string); L.BeginModule("Collections"); L.BeginModule("Generic"); System_Collections_Generic_List_stringWrap.Register(L); System_Collections_Generic_Dictionary_string_objectWrap.Register(L); System_Collections_Generic_Dictionary_string_SingleDataWrap.Register(L); System_Collections_Generic_Dictionary_string_stringWrap.Register(L); System_Collections_Generic_Dictionary_string_SingleFieldWrap.Register(L); L.EndModule(); L.EndModule(); L.EndModule(); L.EndModule(); Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t); }
public static void Bind(IntPtr L, string type = null) { AnimationBlendModeWrap.Register(L); AnimationClipWrap.Register(L); AnimationStateWrap.Register(L); AnimationWrap.Register(L); AppConstWrap.Register(L); ApplicationWrap.Register(L); AssetBundleWrap.Register(L); AssetInfoWrap.Register(L); AsyncOperationWrap.Register(L); AudioClipWrap.Register(L); AudioSourceWrap.Register(L); AutomicIntWrap.Register(L); BehaviourWrap.Register(L); BlendWeightsWrap.Register(L); BoxColliderWrap.Register(L); ButtonWrap.Register(L); CameraClearFlagsWrap.Register(L); CameraMgrWrap.Register(L); CameraWrap.Register(L); CanvasWrap.Register(L); CharacterControllerWrap.Register(L); ColliderWrap.Register(L); ComponentWrap.Register(L); Constans_SkillTargetWrap.Register(L); Constans_SkillTypeWrap.Register(L); DebuggerWrap.Register(L); DelegateFactoryWrap.Register(L); DelegateWrap.Register(L); DropdownWrap.Register(L); EnumWrap.Register(L); ErrorManagerWrap.Register(L); ErrorModelWrap.Register(L); EventDefWrap.Register(L); FightUnitMgrWrap.Register(L); GameDataWrap.Register(L); GameObjectWrap.Register(L); IEnumeratorWrap.Register(L); ImageWrap.Register(L); InputFieldWrap.Register(L); InputManagerWrap.Register(L); InputWrap.Register(L); KeyCodeWrap.Register(L); LightTypeWrap.Register(L); LightWrap.Register(L); LuaEnumTypeWrap.Register(L); MapUtilsWrap.Register(L); MaskWrap.Register(L); MaterialWrap.Register(L); MeshColliderWrap.Register(L); MeshRendererWrap.Register(L); MonoBehaviourWrap.Register(L); MultipleTimeLengthButtonTriggerWrap.Register(L); MusicManagerWrap.Register(L); NetWorkScriptWrap.Register(L); ObjectWrap.Register(L); OneByOne_AccountDTOWrap.Register(L); OneByOne_AttackDTOWrap.Register(L); OneByOne_DamageDTOWrap.Register(L); OneByOne_FightBuildModelWrap.Register(L); OneByOne_FightPlayerModelWrap.Register(L); OneByOne_FightProtocolWrap.Register(L); OneByOne_FightRoomModelWrap.Register(L); OneByOne_FightSkillWrap.Register(L); OneByOne_FightSoldierModelWrap.Register(L); OneByOne_LoginProtocolWrap.Register(L); OneByOne_MatchProtocolWrap.Register(L); OneByOne_MoveDTOWrap.Register(L); OneByOne_ProtocolWrap.Register(L); OneByOne_SelectModelWrap.Register(L); OneByOne_SelectProtocolWrap.Register(L); OneByOne_SelectRoomDTOWrap.Register(L); OneByOne_UserDTOWrap.Register(L); OneByOne_UserProtocolWrap.Register(L); ParticleAnimatorWrap.Register(L); ParticleEmitterWrap.Register(L); ParticleRendererWrap.Register(L); ParticleSystemWrap.Register(L); PhysicsWrap.Register(L); PlayerBehaviourFacadeWrap.Register(L); PlayerControllerWrap.Register(L); PlayerPrefsWrap.Register(L); PlayModeWrap.Register(L); QualitySettingsWrap.Register(L); QueueModeWrap.Register(L); RawImageWrap.Register(L); RectMask2DWrap.Register(L); RectTransformWrap.Register(L); RendererWrap.Register(L); RenderSettingsWrap.Register(L); RenderTextureWrap.Register(L); ResourceLoaderWrap.Register(L); SceneLoaderWrap.Register(L); ScreenWrap.Register(L); ScrollbarWrap.Register(L); ScrollRectWrap.Register(L); SelectableWrap.Register(L); SkillButtonWrap.Register(L); SkillTipSingletonWrap.Register(L); SkinnedMeshRendererWrap.Register(L); SleepTimeoutWrap.Register(L); SliderWrap.Register(L); SocketModelWrap.Register(L); SpaceWrap.Register(L); SphereColliderWrap.Register(L); SpriteWrap.Register(L); stringWrap.Register(L); System_ObjectWrap.Register(L); TestDelegateListenerWrap.Register(L); TestEventListenerWrap.Register(L); TestLuaDelegateWrap.Register(L); TextureWrap.Register(L); TextWrap.Register(L); TimeWrap.Register(L); ToggleGroupWrap.Register(L); ToggleWrap.Register(L); TouchPhaseWrap.Register(L); TrackedReferenceWrap.Register(L); TransformFinderWrap.Register(L); TransformWrap.Register(L); TransUtilsWrap.Register(L); TypeWrap.Register(L); UIutilsWrap.Register(L); UnityEngine_SceneManagement_SceneManagerWrap.Register(L); UtilWrap.Register(L); WWWWrap.Register(L); }