Register() 공개 정적인 메소드

public static Register ( LuaState L ) : void
L LuaState
리턴 void
예제 #1
0
 public static void Bind(IntPtr L)
 {
     AnimationClipWrap.Register(L);
     BehaviourWrap.Register(L);
     CanvasWrap.Register(L);
     CBallCurvMotorWrap.Register(L);
     CFxFollowTargetWrap.Register(L);
     CFxOneWrap.Register(L);
     CGameSessionWrap.Register(L);
     CGhostEffectManWrap.Register(L);
     CHUDFollowTargetWrap.Register(L);
     CLinearMotorWrap.Register(L);
     CMotorWrap.Register(L);
     CMutantBezierMotorWrap.Register(L);
     ComponentWrap.Register(L);
     CParabolicMotorWrap.Register(L);
     CTargetMotorWrap.Register(L);
     DG_Tweening_DOTweenAnimationWrap.Register(L);
     DG_Tweening_DOTweenPlayerWrap.Register(L);
     EntityComponent_AnimationUnitWrap.Register(L);
     EntityComponent_CombatStateChangeBehaviourWrap.Register(L);
     EntityComponent_HorseStandBehaviourWrap.Register(L);
     EntityComponent_NpcStandBehaviourWrap.Register(L);
     GameObjectPoolWrap.Register(L);
     GBaseWrap.Register(L);
     GBloodWrap.Register(L);
     GButtonWrap.Register(L);
     GDragablePageViewWrap.Register(L);
     GNewGridBaseWrap.Register(L);
     GNewIOSToggleWrap.Register(L);
     GNewLayoutTableWrap.Register(L);
     GNewListBaseWrap.Register(L);
     GNewListLoopWrap.Register(L);
     GNewListWrap.Register(L);
     GNewTableBaseWrap.Register(L);
     GNewTabListWrap.Register(L);
     GNewUIBaseWrap.Register(L);
     GNewUI_GUISceneWrap.Register(L);
     GScaleScrollWrap.Register(L);
     GTextWrap.Register(L);
     LightWrap.Register(L);
     MonoBehaviourWrap.Register(L);
     PlayModeWrap.Register(L);
     RectTransformWrap.Register(L);
     ResourcesWrap.Register(L);
     SystemInfoWrap.Register(L);
     TimeWrap.Register(L);
     UIEventListenerWrap.Register(L);
     UITemplateWrap.Register(L);
     UnityEngine_EventSystems_UIBehaviourWrap.Register(L);
     UnityEngine_UI_ButtonWrap.Register(L);
     UnityEngine_UI_GraphicRaycasterWrap.Register(L);
     UnityEngine_UI_ImageWrap.Register(L);
     UnityEngine_UI_InputFieldWrap.Register(L);
     UnityEngine_UI_ScrollbarWrap.Register(L);
     UnityEngine_UI_SelectableWrap.Register(L);
     UnityEngine_UI_SliderWrap.Register(L);
     UnityEngine_UI_TextWrap.Register(L);
     UnityEngine_UI_ToggleWrap.Register(L);
 }
예제 #2
0
    public static void Bind(LuaState L)
    {
        float t = Time.realtimeSinceStartup;

        L.BeginModule(null);
        Common_UtilsWrap.Register(L);
        LuaResourceMgrWrap.Register(L);
        SorterTagWrap.Register(L);
        ParticleOrderAutoSorterWrap.Register(L);
        LuaInterface_DebuggerWrap.Register(L);
        TimeHelperWrap.Register(L);
        ColaHelperWrap.Register(L);
        UGUIMsgHandlerWrap.Register(L);
        LuaProfilerWrap.Register(L);
        L.RegFunction("UIEventHandler", UIEventHandler);
        L.RegFunction("UIDragEventHandlerDetail", UIDragEventHandlerDetail);
        L.RegFunction("StrValueChangeAction", StrValueChangeAction);
        L.RegFunction("IntValueChangeAction", IntValueChangeAction);
        L.RegFunction("RectValueChangeAction", RectValueChangeAction);
        L.RegFunction("FloatValueChangeAction", FloatValueChangeAction);
        L.RegFunction("BoolValueChangeAction", BoolValueChangeAction);
        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_CanvasWrap.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_AudioBehaviourWrap.Register(L);
        L.BeginModule("UI");
        UnityEngine_UI_GraphicRaycasterWrap.Register(L);
        UnityEngine_UI_TextWrap.Register(L);
        UnityEngine_UI_ImageWrap.Register(L);
        UnityEngine_UI_RawImageWrap.Register(L);
        UnityEngine_UI_MaskableGraphicWrap.Register(L);
        UnityEngine_UI_GraphicWrap.Register(L);
        L.EndModule();
        L.BeginModule("EventSystems");
        UnityEngine_EventSystems_BaseRaycasterWrap.Register(L);
        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("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_UnityEngine_GameObject", System_Action_UnityEngine_GameObject);
        L.RegFunction("Action_string_string", System_Action_string_string);
        L.RegFunction("Action_string_bytes", System_Action_string_bytes);
        L.RegFunction("Action_UnityEngine_Object", System_Action_UnityEngine_Object);
        L.RegFunction("Action_float", System_Action_float);
        L.RegFunction("Action_bool", System_Action_bool);
        L.RegFunction("Action_string", System_Action_string);
        L.RegFunction("Func_bool", System_Func_bool);
        L.RegFunction("Action_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation);
        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);
    }
예제 #3
0
    public static void Bind(LuaState L)
    {
        float t = Time.realtimeSinceStartup;

        L.BeginModule(null);
        LuaInterface_DebuggerWrap.Register(L);
        ByteArrayWrap.Register(L);
        TouchTriggerWrap.Register(L);
        LinkImageTextWrap.Register(L);
        UIScrollContentWrap.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_AssetBundleRequestWrap.Register(L);
        UnityEngine_AssetBundleManifestWrap.Register(L);
        UnityEngine_AssetBundleCreateRequestWrap.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_SpriteWrap.Register(L);
        UnityEngine_RectWrap.Register(L);
        UnityEngine_FontWrap.Register(L);
        UnityEngine_FontStyleWrap.Register(L);
        UnityEngine_TextAnchorWrap.Register(L);
        UnityEngine_HorizontalWrapModeWrap.Register(L);
        UnityEngine_VerticalWrapModeWrap.Register(L);
        UnityEngine_AnimatorStateInfoWrap.Register(L);
        UnityEngine_AudioBehaviourWrap.Register(L);
        L.BeginModule("UI");
        UnityEngine_UI_TextWrap.Register(L);
        UnityEngine_UI_ContentSizeFitterWrap.Register(L);
        UnityEngine_UI_GraphicRaycasterWrap.Register(L);
        UnityEngine_UI_ButtonWrap.Register(L);
        UnityEngine_UI_ImageWrap.Register(L);
        UnityEngine_UI_InputFieldWrap.Register(L);
        UnityEngine_UI_MaskWrap.Register(L);
        UnityEngine_UI_ScrollRectWrap.Register(L);
        UnityEngine_UI_MaskableGraphicWrap.Register(L);
        UnityEngine_UI_GraphicWrap.Register(L);
        UnityEngine_UI_SelectableWrap.Register(L);
        L.BeginModule("ContentSizeFitter");
        UnityEngine_UI_ContentSizeFitter_FitModeWrap.Register(L);
        L.EndModule();
        L.BeginModule("Button");
        UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L);
        L.EndModule();
        L.BeginModule("InputField");
        UnityEngine_UI_InputField_OnChangeEventWrap.Register(L);
        UnityEngine_UI_InputField_SubmitEventWrap.Register(L);
        UnityEngine_UI_InputField_LineTypeWrap.Register(L);
        UnityEngine_UI_InputField_ContentTypeWrap.Register(L);
        L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput);
        L.EndModule();
        L.BeginModule("Toggle");
        UnityEngine_UI_Toggle_ToggleEventWrap.Register(L);
        L.EndModule();
        L.BeginModule("Dropdown");
        UnityEngine_UI_Dropdown_DropdownEventWrap.Register(L);
        L.EndModule();
        L.BeginModule("ScrollRect");
        UnityEngine_UI_ScrollRect_MovementTypeWrap.Register(L);
        L.EndModule();
        L.BeginModule("Image");
        UnityEngine_UI_Image_TypeWrap.Register(L);
        UnityEngine_UI_Image_FillMethodWrap.Register(L);
        UnityEngine_UI_Image_OriginHorizontalWrap.Register(L);
        UnityEngine_UI_Image_OriginVerticalWrap.Register(L);
        UnityEngine_UI_Image_Origin90Wrap.Register(L);
        UnityEngine_UI_Image_Origin180Wrap.Register(L);
        UnityEngine_UI_Image_Origin360Wrap.Register(L);
        L.EndModule();
        L.EndModule();
        L.BeginModule("EventSystems");
        UnityEngine_EventSystems_EventSystemWrap.Register(L);
        UnityEngine_EventSystems_PointerEventDataWrap.Register(L);
        UnityEngine_EventSystems_RaycastResultWrap.Register(L);
        UnityEngine_EventSystems_StandaloneInputModuleWrap.Register(L);
        UnityEngine_EventSystems_UIBehaviourWrap.Register(L);
        UnityEngine_EventSystems_BaseEventDataWrap.Register(L);
        UnityEngine_EventSystems_AbstractEventDataWrap.Register(L);
        UnityEngine_EventSystems_PointerInputModuleWrap.Register(L);
        UnityEngine_EventSystems_BaseInputModuleWrap.Register(L);
        UnityEngine_EventSystems_BaseRaycasterWrap.Register(L);
        L.EndModule();
        L.BeginModule("Events");
        UnityEngine_Events_UnityEventWrap.Register(L);
        UnityEngine_Events_UnityEventBaseWrap.Register(L);
        UnityEngine_Events_UnityEvent_intWrap.Register(L);
        UnityEngine_Events_UnityEvent_stringWrap.Register(L);
        UnityEngine_Events_UnityEvent_boolWrap.Register(L);
        L.RegFunction("UnityAction", UnityEngine_Events_UnityAction);
        L.RegFunction("UnityAction_int", UnityEngine_Events_UnityAction_int);
        L.RegFunction("UnityAction_string", UnityEngine_Events_UnityAction_string);
        L.RegFunction("UnityAction_bool", UnityEngine_Events_UnityAction_bool);
        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("RectTransform");
        L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties);
        L.EndModule();
        L.BeginModule("Canvas");
        L.RegFunction("WillRenderCanvases", UnityEngine_Canvas_WillRenderCanvases);
        L.EndModule();
        L.BeginModule("Font");
        L.RegFunction("FontTextureRebuildCallback", UnityEngine_Font_FontTextureRebuildCallback);
        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_EventSystems_RaycastResult", System_Predicate_UnityEngine_EventSystems_RaycastResult);
        L.RegFunction("Action_UnityEngine_EventSystems_RaycastResult", System_Action_UnityEngine_EventSystems_RaycastResult);
        L.RegFunction("Comparison_UnityEngine_EventSystems_RaycastResult", System_Comparison_UnityEngine_EventSystems_RaycastResult);
        L.RegFunction("Action_UnityEngine_Font", System_Action_UnityEngine_Font);
        L.RegFunction("Func_string_UnityEngine_GameObject", System_Func_string_UnityEngine_GameObject);
        L.BeginModule("Collections");
        L.BeginModule("Generic");
        System_Collections_Generic_List_UnityEngine_EventSystems_RaycastResultWrap.Register(L);
        L.EndModule();
        L.EndModule();
        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);
    }
예제 #4
0
    public static void Bind(LuaState L)
    {
        float t = Time.realtimeSinceStartup;

        L.BeginModule(null);
        CommonUtilWrap.Register(L);
        SorterTagWrap.Register(L);
        ParticleOrderAutoSorterWrap.Register(L);
        LuaInterface_DebuggerWrap.Register(L);
        ColaFramework_ColaHelperWrap.Register(L);
        UGUIMsgHandlerWrap.Register(L);
        UnityEngine_PlayerPrefsWrap.Register(L);
        SpriteAssetWrap.Register(L);
        SceneMgrWrap.Register(L);
        ColaFramework_ISceneCharacterWrap.Register(L);
        ColaFramework_SceneCharacterWrap.Register(L);
        UnityEngine_UI_Extensions_UGUIModelWrap.Register(L);
        AnimCtrlEnumWrap.Register(L);
        AnimCurveNamesWrap.Register(L);
        TouchHelperWrap.Register(L);
        ColaFramework_NetWork_ByteBufferWrap.Register(L);
        ColaFramework_NetWork_SocketManagerWrap.Register(L);
        ColaFramework_NetWork_NetMessageCenterWrap.Register(L);
        UnityEngine_UI_Extensions_UIComponentCollectionWrap.Register(L);
        UnityEngine_UI_Extensions_DropdownControlWrap.Register(L);
        UnityEngine_UI_Extensions_UITableViewWrap.Register(L);
        UnityEngine_UI_Extensions_UITableViewCellWrap.Register(L);
        LuaProfilerWrap.Register(L);
        L.RegFunction("UIEventHandler", UIEventHandler);
        L.RegFunction("UIDragEventHandlerDetail", UIDragEventHandlerDetail);
        L.RegFunction("StrValueChangeAction", StrValueChangeAction);
        L.RegFunction("IntValueChangeAction", IntValueChangeAction);
        L.RegFunction("RectValueChangeAction", RectValueChangeAction);
        L.RegFunction("FloatValueChangeAction", FloatValueChangeAction);
        L.RegFunction("BoolValueChangeAction", BoolValueChangeAction);
        L.RegFunction("OnSceneNameChanged", OnSceneNameChanged);
        L.RegFunction("OnSceneIndexChanged", OnSceneIndexChanged);
        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_CanvasWrap.Register(L);
        UnityEngine_SpriteWrap.Register(L);
        UnityEngine_RectTransformWrap.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_AudioBehaviourWrap.Register(L);
        L.BeginModule("UI");
        UnityEngine_UI_TextWrap.Register(L);
        UnityEngine_UI_ImageWrap.Register(L);
        UnityEngine_UI_RawImageWrap.Register(L);
        UnityEngine_UI_GraphicRaycasterWrap.Register(L);
        UnityEngine_UI_ButtonWrap.Register(L);
        UnityEngine_UI_MaskableGraphicWrap.Register(L);
        UnityEngine_UI_GraphicWrap.Register(L);
        UnityEngine_UI_SelectableWrap.Register(L);
        L.BeginModule("Extensions");
        UnityEngine_UI_Extensions_UITableViewCellEventHandlerWrap.Register(L);
        L.BeginModule("UITableView");
        L.RegFunction("OnCellInitEvent", UnityEngine_UI_Extensions_UITableView_OnCellInitEvent);
        L.RegFunction("OnProcessClick", UnityEngine_UI_Extensions_UITableView_OnProcessClick);
        L.RegFunction("OnProcessPress", UnityEngine_UI_Extensions_UITableView_OnProcessPress);
        L.RegFunction("OnScrollCompleted", UnityEngine_UI_Extensions_UITableView_OnScrollCompleted);
        L.RegFunction("OnTableScrolling", UnityEngine_UI_Extensions_UITableView_OnTableScrolling);
        L.EndModule();
        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.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.BeginModule("RectTransform");
        L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties);
        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_GameObject", System_Action_UnityEngine_GameObject);
        L.RegFunction("Action_float", System_Action_float);
        L.RegFunction("Action_bool", System_Action_bool);
        L.RegFunction("Action_string", System_Action_string);
        L.RegFunction("Func_bool", System_Func_bool);
        L.RegFunction("Action_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation);
        L.EndModule();
        L.BeginModule("ColaFramework");
        L.BeginModule("NetWork");
        L.BeginModule("NetMessageCenter");
        L.RegFunction("NetMessageAction", ColaFramework_NetWork_NetMessageCenter_NetMessageAction);
        L.EndModule();
        L.EndModule();
        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);
    }
예제 #5
0
    public static void Bind(LuaState L)
    {
        float t = Time.realtimeSinceStartup;

        L.BeginModule(null);
        DebuggerWrap.Register(L);
        L.BeginModule("UnityEngine");
        UnityEngine_ComponentWrap.Register(L);
        UnityEngine_TransformWrap.Register(L);
        UnityEngine_RectTransformWrap.Register(L);
        UnityEngine_RectWrap.Register(L);
        UnityEngine_MaterialWrap.Register(L);
        UnityEngine_LightWrap.Register(L);
        UnityEngine_RigidbodyWrap.Register(L);
        UnityEngine_CameraWrap.Register(L);
        UnityEngine_AudioSourceWrap.Register(L);
        UnityEngine_LineRendererWrap.Register(L);
        UnityEngine_TrailRendererWrap.Register(L);
        UnityEngine_BehaviourWrap.Register(L);
        UnityEngine_MonoBehaviourWrap.Register(L);
        UnityEngine_GameObjectWrap.Register(L);
        UnityEngine_TrackedReferenceWrap.Register(L);
        UnityEngine_SystemInfoWrap.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_CanvasWrap.Register(L);
        UnityEngine_PlayerPrefsWrap.Register(L);
        UnityEngine_RuntimeAnimatorControllerWrap.Register(L);
        UnityEngine_AnimationEventWrap.Register(L);
        UnityEngine_AvatarIKGoalWrap.Register(L);
        UnityEngine_ControllerColliderHitWrap.Register(L);
        UnityEngine_AnimatorStateInfoWrap.Register(L);
        UnityEngine_RectTransformUtilityWrap.Register(L);
        L.BeginModule("UI");
        UnityEngine_UI_TextWrap.Register(L);
        UnityEngine_UI_ImageWrap.Register(L);
        UnityEngine_UI_RawImageWrap.Register(L);
        UnityEngine_UI_ButtonWrap.Register(L);
        UnityEngine_UI_ToggleWrap.Register(L);
        UnityEngine_UI_SliderWrap.Register(L);
        UnityEngine_UI_ScrollbarWrap.Register(L);
        UnityEngine_UI_DropdownWrap.Register(L);
        UnityEngine_UI_InputFieldWrap.Register(L);
        UnityEngine_UI_ScrollRectWrap.Register(L);
        UnityEngine_UI_GraphicRaycasterWrap.Register(L);
        UnityEngine_UI_MaskableGraphicWrap.Register(L);
        UnityEngine_UI_GraphicWrap.Register(L);
        UnityEngine_UI_SelectableWrap.Register(L);
        L.BeginModule("Button");
        UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L);
        L.EndModule();
        L.BeginModule("Scrollbar");
        UnityEngine_UI_Scrollbar_ScrollEventWrap.Register(L);
        L.EndModule();
        L.BeginModule("Toggle");
        UnityEngine_UI_Toggle_ToggleEventWrap.Register(L);
        L.EndModule();
        L.BeginModule("Slider");
        UnityEngine_UI_Slider_SliderEventWrap.Register(L);
        L.EndModule();
        L.BeginModule("ScrollRect");
        UnityEngine_UI_ScrollRect_ScrollRectEventWrap.Register(L);
        L.EndModule();
        L.EndModule();
        L.BeginModule("EventSystems");
        UnityEngine_EventSystems_PointerEventDataWrap.Register(L);
        UnityEngine_EventSystems_UIBehaviourWrap.Register(L);
        UnityEngine_EventSystems_BaseEventDataWrap.Register(L);
        UnityEngine_EventSystems_AbstractEventDataWrap.Register(L);
        UnityEngine_EventSystems_BaseRaycasterWrap.Register(L);
        L.EndModule();
        L.BeginModule("Experimental");
        L.BeginModule("Director");
        UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L);
        L.EndModule();
        L.EndModule();
        L.BeginModule("Events");
        UnityEngine_Events_UnityEventWrap.Register(L);
        UnityEngine_Events_UnityEventBaseWrap.Register(L);
        UnityEngine_Events_UnityEvent_floatWrap.Register(L);
        UnityEngine_Events_UnityEvent_boolWrap.Register(L);
        UnityEngine_Events_UnityEvent_UnityEngine_Vector2Wrap.Register(L);
        L.RegFunction("UnityAction", UnityEngine_Events_UnityAction);
        L.RegFunction("UnityAction_float", UnityEngine_Events_UnityAction_float);
        L.RegFunction("UnityAction_bool", UnityEngine_Events_UnityAction_bool);
        L.RegFunction("UnityAction_UnityEngine_Vector2", UnityEngine_Events_UnityAction_UnityEngine_Vector2);
        L.EndModule();
        L.EndModule();
        L.BeginModule("Game");
        Game_LuaObjectWrap.Register(L);
        Game_UtilsWrap.Register(L);
        Game_LuaGameWrap.Register(L);
        Game_LoaderWrap.Register(L);
        L.EndModule();
        L.BeginModule("System");
        L.RegFunction("Action", System_Action);
        L.EndModule();
        L.EndModule();
        Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t);
    }
예제 #6
0
    public static void Bind(LuaState L)
    {
        float t = Time.realtimeSinceStartup;

        L.BeginModule(null);
        LuaInterface_DebuggerWrap.Register(L);
        MonoManagerWrap.Register(L);
        LuaProfilerWrap.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_YieldInstructionWrap.Register(L);
        UnityEngine_WaitForEndOfFrameWrap.Register(L);
        UnityEngine_WaitForFixedUpdateWrap.Register(L);
        UnityEngine_WaitForSecondsWrap.Register(L);
        UnityEngine_ObjectWrap.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_RandomWrap.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_TextAssetWrap.Register(L);
        UnityEngine_DebugWrap.Register(L);
        UnityEngine_SpriteRendererWrap.Register(L);
        UnityEngine_AudioListenerWrap.Register(L);
        UnityEngine_SystemInfoWrap.Register(L);
        UnityEngine_RectTransformWrap.Register(L);
        UnityEngine_CanvasWrap.Register(L);
        UnityEngine_CanvasGroupWrap.Register(L);
        UnityEngine_AudioBehaviourWrap.Register(L);
        L.BeginModule("SceneManagement");
        UnityEngine_SceneManagement_SceneManagerWrap.Register(L);
        L.EndModule();
        L.BeginModule("UI");
        UnityEngine_UI_GraphicRaycasterWrap.Register(L);
        UnityEngine_UI_ButtonWrap.Register(L);
        UnityEngine_UI_ImageWrap.Register(L);
        UnityEngine_UI_RawImageWrap.Register(L);
        UnityEngine_UI_SliderWrap.Register(L);
        UnityEngine_UI_InputFieldWrap.Register(L);
        UnityEngine_UI_ScrollbarWrap.Register(L);
        UnityEngine_UI_ToggleWrap.Register(L);
        UnityEngine_UI_ToggleGroupWrap.Register(L);
        UnityEngine_UI_MaskWrap.Register(L);
        UnityEngine_UI_TextWrap.Register(L);
        UnityEngine_UI_CanvasScalerWrap.Register(L);
        UnityEngine_UI_DropdownWrap.Register(L);
        UnityEngine_UI_SelectableWrap.Register(L);
        UnityEngine_UI_MaskableGraphicWrap.Register(L);
        UnityEngine_UI_GraphicWrap.Register(L);
        L.BeginModule("Dropdown");
        UnityEngine_UI_Dropdown_DropdownEventWrap.Register(L);
        UnityEngine_UI_Dropdown_OptionDataWrap.Register(L);
        L.EndModule();
        L.BeginModule("Toggle");
        UnityEngine_UI_Toggle_ToggleEventWrap.Register(L);
        L.EndModule();
        L.BeginModule("InputField");
        UnityEngine_UI_InputField_OnChangeEventWrap.Register(L);
        L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput);
        L.EndModule();
        L.EndModule();
        L.BeginModule("Events");
        UnityEngine_Events_UnityEventWrap.Register(L);
        UnityEngine_Events_UnityEventBaseWrap.Register(L);
        UnityEngine_Events_UnityEvent_intWrap.Register(L);
        UnityEngine_Events_UnityEvent_boolWrap.Register(L);
        UnityEngine_Events_UnityEvent_stringWrap.Register(L);
        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.RegFunction("UnityAction_int", UnityEngine_Events_UnityAction_int);
        L.RegFunction("UnityAction_bool", UnityEngine_Events_UnityAction_bool);
        L.RegFunction("UnityAction_string", UnityEngine_Events_UnityAction_string);
        L.EndModule();
        L.BeginModule("EventSystems");
        UnityEngine_EventSystems_EventSystemWrap.Register(L);
        UnityEngine_EventSystems_StandaloneInputModuleWrap.Register(L);
        UnityEngine_EventSystems_BaseRaycasterWrap.Register(L);
        UnityEngine_EventSystems_UIBehaviourWrap.Register(L);
        UnityEngine_EventSystems_PointerInputModuleWrap.Register(L);
        UnityEngine_EventSystems_BaseInputModuleWrap.Register(L);
        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("Generic");
        Generic_ObjectExternionsWrap.Register(L);
        Generic_GameObjectExternionsWrap.Register(L);
        Generic_ComponentExternionsWrap.Register(L);
        Generic_ResourcesExternionsWrap.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("Func_bool", System_Func_bool);
        L.RegFunction("Action_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation);
        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);
    }
예제 #7
0
    public static void Bind(LuaState L)
    {
        float t = Time.realtimeSinceStartup;

        L.BeginModule(null);
        LuaInterface_DebuggerWrap.Register(L);
        LuaBehaviourWrap.Register(L);
        UILuaBehaviourWrap.Register(L);
        GameResFactoryWrap.Register(L);
        BaseWrap.Register(L);
        ManagerWrap.Register(L);
        ByteBufferWrap.Register(L);
        NetworkManagerWrap.Register(L);
        LuaHelperWrap.Register(L);
        GlobalsWrap.Register(L);
        LeanTweenTypeWrap.Register(L);
        LTDescrImplWrap.Register(L);
        LTBezierWrap.Register(L);
        LTBezierPathWrap.Register(L);
        LTEventWrap.Register(L);
        LTSplineWrap.Register(L);
        LeanTweenWrap.Register(L);
        LeanAudioWrap.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);
        UnityEngine_SpriteWrap.Register(L);
        UnityEngine_RectWrap.Register(L);
        UnityEngine_RectTransformWrap.Register(L);
        UnityEngine_RectTransformUtilityWrap.Register(L);
        UnityEngine_CanvasWrap.Register(L);
        L.BeginModule("Experimental");
        L.BeginModule("Director");
        UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L);
        L.EndModule();
        L.EndModule();
        L.BeginModule("UI");
        UnityEngine_UI_GraphicWrap.Register(L);
        UnityEngine_UI_MaskableGraphicWrap.Register(L);
        UnityEngine_UI_ImageWrap.Register(L);
        UnityEngine_UI_TextWrap.Register(L);
        UnityEngine_UI_ToggleWrap.Register(L);
        UnityEngine_UI_ToggleGroupWrap.Register(L);
        UnityEngine_UI_InputFieldWrap.Register(L);
        UnityEngine_UI_LayoutGroupWrap.Register(L);
        UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.Register(L);
        UnityEngine_UI_VerticalLayoutGroupWrap.Register(L);
        UnityEngine_UI_HorizontalLayoutGroupWrap.Register(L);
        UnityEngine_UI_ContentSizeFitterWrap.Register(L);
        UnityEngine_UI_DropdownWrap.Register(L);
        UnityEngine_UI_MaskWrap.Register(L);
        UnityEngine_UI_RectMask2DWrap.Register(L);
        UnityEngine_UI_LayoutElementWrap.Register(L);
        UnityEngine_UI_SliderWrap.Register(L);
        UnityEngine_UI_ScrollbarWrap.Register(L);
        UnityEngine_UI_SelectableWrap.Register(L);
        UnityEngine_UI_ButtonWrap.Register(L);
        UnityEngine_UI_GraphicRaycasterWrap.Register(L);
        UnityEngine_UI_ScrollRectWrap.Register(L);
        UnityEngine_UI_LoopScrollRectWrap.Register(L);
        UnityEngine_UI_LoopVerticalScrollRectWrap.Register(L);
        UnityEngine_UI_LoopHorizontalScrollRectWrap.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.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.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("Action_float", System_Action_float);
        L.RegFunction("Action_float_float", System_Action_float_float);
        L.RegFunction("Action_float_object", System_Action_float_object);
        L.RegFunction("Action_UnityEngine_Vector2", System_Action_UnityEngine_Vector2);
        L.RegFunction("Action_UnityEngine_Vector3", System_Action_UnityEngine_Vector3);
        L.RegFunction("Action_UnityEngine_Vector3_object", System_Action_UnityEngine_Vector3_object);
        L.RegFunction("Action_UnityEngine_Color", System_Action_UnityEngine_Color);
        L.RegFunction("Action_object", System_Action_object);
        L.RegFunction("Action_LTEvent", System_Action_LTEvent);
        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);
    }
예제 #8
0
    public static void Bind(LuaState L)
    {
        float t = Time.realtimeSinceStartup;

        L.BeginModule(null);
        LuaInterface_DebuggerWrap.Register(L);
        LuaProfilerWrap.Register(L);
        UtilsWrap.Register(L);
        LogWrap.Register(L);
        ResManagerWrap.Register(L);
        UnitySingleton_ResManagerWrap.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_PlayerPrefsWrap.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_CanvasWrap.Register(L);
        UnityEngine_RectTransformWrap.Register(L);
        UnityEngine_SpriteWrap.Register(L);
        UnityEngine_SpriteRendererWrap.Register(L);
        UnityEngine_RectWrap.Register(L);
        UnityEngine_GradientWrap.Register(L);
        UnityEngine_TextAnchorWrap.Register(L);
        L.BeginModule("UI");
        UnityEngine_UI_CanvasScalerWrap.Register(L);
        UnityEngine_UI_GraphicRaycasterWrap.Register(L);
        UnityEngine_UI_TextWrap.Register(L);
        UnityEngine_UI_ImageWrap.Register(L);
        UnityEngine_UI_RawImageWrap.Register(L);
        UnityEngine_UI_InputFieldWrap.Register(L);
        UnityEngine_UI_DropdownWrap.Register(L);
        UnityEngine_UI_ToggleWrap.Register(L);
        UnityEngine_UI_SelectableWrap.Register(L);
        UnityEngine_UI_ButtonWrap.Register(L);
        UnityEngine_UI_SliderWrap.Register(L);
        UnityEngine_UI_ScrollbarWrap.Register(L);
        UnityEngine_UI_GridLayoutGroupWrap.Register(L);
        UnityEngine_UI_VerticalLayoutGroupWrap.Register(L);
        UnityEngine_UI_HorizontalLayoutGroupWrap.Register(L);
        UnityEngine_UI_OutlineWrap.Register(L);
        UnityEngine_UI_ScrollRectWrap.Register(L);
        UnityEngine_UI_MaskableGraphicWrap.Register(L);
        UnityEngine_UI_GraphicWrap.Register(L);
        UnityEngine_UI_LayoutGroupWrap.Register(L);
        UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.Register(L);
        UnityEngine_UI_ShadowWrap.Register(L);
        UnityEngine_UI_BaseMeshEffectWrap.Register(L);
        L.BeginModule("Button");
        UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L);
        L.EndModule();
        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");
        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("Canvas");
        L.RegFunction("WillRenderCanvases", UnityEngine_Canvas_WillRenderCanvases);
        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("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.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);
    }
예제 #9
0
    public static void Bind(LuaState L)
    {
        float t = Time.realtimeSinceStartup;

        L.BeginModule(null);
        LuaInterface_DebuggerWrap.Register(L);
        LuaProfilerWrap.Register(L);
        L.BeginModule("System");
        System_DateTimeWrap.Register(L);
        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("Predicate_UnityEngine_Vector2", System_Predicate_UnityEngine_Vector2);
        L.RegFunction("Action_UnityEngine_Vector2", System_Action_UnityEngine_Vector2);
        L.RegFunction("Comparison_UnityEngine_Vector2", System_Comparison_UnityEngine_Vector2);
        L.RegFunction("Predicate_string", System_Predicate_string);
        L.RegFunction("Action_string", System_Action_string);
        L.RegFunction("Comparison_string", System_Comparison_string);
        L.RegFunction("Predicate_double", System_Predicate_double);
        L.RegFunction("Action_double", System_Action_double);
        L.RegFunction("Comparison_double", System_Comparison_double);
        L.RegFunction("Predicate_bool", System_Predicate_bool);
        L.RegFunction("Action_bool", System_Action_bool);
        L.RegFunction("Comparison_bool", System_Comparison_bool);
        L.RegFunction("Func_bool", System_Func_bool);
        L.RegFunction("Action_UnityEngine_AsyncOperation", System_Action_UnityEngine_AsyncOperation);
        L.BeginModule("IO");
        System_IO_DirectoryWrap.Register(L);
        System_IO_FileWrap.Register(L);
        L.EndModule();
        L.BeginModule("Collections");
        L.BeginModule("Generic");
        System_Collections_Generic_List_intWrap.Register(L);
        System_Collections_Generic_List_UnityEngine_Vector2Wrap.Register(L);
        System_Collections_Generic_List_stringWrap.Register(L);
        System_Collections_Generic_List_doubleWrap.Register(L);
        System_Collections_Generic_List_boolWrap.Register(L);
        L.EndModule();
        L.EndModule();
        L.EndModule();
        L.BeginModule("UnityEngine");
        UnityEngine_RectTransformUtilityWrap.Register(L);
        UnityEngine_RectWrap.Register(L);
        UnityEngine_SpriteWrap.Register(L);
        UnityEngine_CanvasWrap.Register(L);
        UnityEngine_CanvasGroupWrap.Register(L);
        UnityEngine_AudioListenerWrap.Register(L);
        UnityEngine_ParticleSystemRendererWrap.Register(L);
        UnityEngine_TrailRendererWrap.Register(L);
        UnityEngine_RectTransformWrap.Register(L);
        UnityEngine_RuntimePlatformWrap.Register(L);
        UnityEngine_RectOffsetWrap.Register(L);
        UnityEngine_NetworkReachabilityWrap.Register(L);
        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_AudioBehaviourWrap.Register(L);
        L.BeginModule("UI");
        UnityEngine_UI_ImageWrap.Register(L);
        UnityEngine_UI_SliderWrap.Register(L);
        UnityEngine_UI_ToggleWrap.Register(L);
        UnityEngine_UI_ToggleGroupWrap.Register(L);
        UnityEngine_UI_OutlineWrap.Register(L);
        UnityEngine_UI_DropdownWrap.Register(L);
        UnityEngine_UI_ShadowWrap.Register(L);
        UnityEngine_UI_ScrollRectWrap.Register(L);
        UnityEngine_UI_ScrollbarWrap.Register(L);
        UnityEngine_UI_LayoutGroupWrap.Register(L);
        UnityEngine_UI_LayoutElementWrap.Register(L);
        UnityEngine_UI_CanvasScalerWrap.Register(L);
        UnityEngine_UI_InputFieldWrap.Register(L);
        UnityEngine_UI_BaseMeshEffectWrap.Register(L);
        UnityEngine_UI_TextWrap.Register(L);
        UnityEngine_UI_GridLayoutGroupWrap.Register(L);
        UnityEngine_UI_HorizontalLayoutGroupWrap.Register(L);
        UnityEngine_UI_GraphicRaycasterWrap.Register(L);
        UnityEngine_UI_ButtonWrap.Register(L);
        UnityEngine_UI_ContentSizeFitterWrap.Register(L);
        UnityEngine_UI_MaskableGraphicWrap.Register(L);
        UnityEngine_UI_GraphicWrap.Register(L);
        UnityEngine_UI_SelectableWrap.Register(L);
        UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.Register(L);
        L.BeginModule("Toggle");
        UnityEngine_UI_Toggle_ToggleEventWrap.Register(L);
        L.EndModule();
        L.BeginModule("Dropdown");
        UnityEngine_UI_Dropdown_OptionDataWrap.Register(L);
        L.EndModule();
        L.BeginModule("ScrollRect");
        UnityEngine_UI_ScrollRect_MovementTypeWrap.Register(L);
        UnityEngine_UI_ScrollRect_ScrollRectEventWrap.Register(L);
        L.EndModule();
        L.BeginModule("Scrollbar");
        UnityEngine_UI_Scrollbar_ScrollEventWrap.Register(L);
        UnityEngine_UI_Scrollbar_DirectionWrap.Register(L);
        L.EndModule();
        L.BeginModule("InputField");
        UnityEngine_UI_InputField_OnChangeEventWrap.Register(L);
        L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput);
        L.EndModule();
        L.BeginModule("GridLayoutGroup");
        UnityEngine_UI_GridLayoutGroup_AxisWrap.Register(L);
        L.EndModule();
        L.BeginModule("Button");
        UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L);
        L.EndModule();
        L.BeginModule("ContentSizeFitter");
        UnityEngine_UI_ContentSizeFitter_FitModeWrap.Register(L);
        L.EndModule();
        L.EndModule();
        L.BeginModule("EventSystems");
        UnityEngine_EventSystems_EventTriggerWrap.Register(L);
        UnityEngine_EventSystems_AbstractEventDataWrap.Register(L);
        UnityEngine_EventSystems_BaseRaycasterWrap.Register(L);
        UnityEngine_EventSystems_EventSystemWrap.Register(L);
        UnityEngine_EventSystems_UIBehaviourWrap.Register(L);
        L.EndModule();
        L.BeginModule("SceneManagement");
        UnityEngine_SceneManagement_SceneManagerWrap.Register(L);
        UnityEngine_SceneManagement_LoadSceneModeWrap.Register(L);
        L.EndModule();
        L.BeginModule("Profiling");
        UnityEngine_Profiling_ProfilerWrap.Register(L);
        L.EndModule();
        L.BeginModule("Events");
        UnityEngine_Events_UnityEvent_boolWrap.Register(L);
        UnityEngine_Events_UnityEventBaseWrap.Register(L);
        UnityEngine_Events_UnityEvent_UnityEngine_Vector2Wrap.Register(L);
        UnityEngine_Events_UnityEvent_floatWrap.Register(L);
        UnityEngine_Events_UnityEvent_stringWrap.Register(L);
        UnityEngine_Events_UnityEventWrap.Register(L);
        L.RegFunction("UnityAction", UnityEngine_Events_UnityAction);
        L.RegFunction("UnityAction_bool", UnityEngine_Events_UnityAction_bool);
        L.RegFunction("UnityAction_UnityEngine_Vector2", UnityEngine_Events_UnityAction_UnityEngine_Vector2);
        L.RegFunction("UnityAction_float", UnityEngine_Events_UnityAction_float);
        L.RegFunction("UnityAction_string", UnityEngine_Events_UnityAction_string);
        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("Canvas");
        L.RegFunction("WillRenderCanvases", UnityEngine_Canvas_WillRenderCanvases);
        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("Multiverse");
        L.BeginModule("Runtime");
        Multiverse_Runtime_LuaScriptWrap.Register(L);
        Multiverse_Runtime_ApplicationControllerWrap.Register(L);
        Multiverse_Runtime_MonoSingleton_Multiverse_Runtime_ApplicationControllerWrap.Register(L);
        L.EndModule();
        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);
    }
예제 #10
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();
    }
예제 #11
0
    public static void Bind(LuaState L)
    {
        float t = Time.realtimeSinceStartup;

        L.BeginModule(null);
        DebuggerWrap.Register(L);
        LuaBehaviourWrap.Register(L);
        GameResFactoryWrap.Register(L);
        BaseWrap.Register(L);
        ManagerWrap.Register(L);
        ByteBufferWrap.Register(L);
        NetworkManagerWrap.Register(L);
        LuaHelperWrap.Register(L);
        LeanTweenTypeWrap.Register(L);
        LTDescrImplWrap.Register(L);
        LTBezierWrap.Register(L);
        LTBezierPathWrap.Register(L);
        LTEventWrap.Register(L);
        LTSplineWrap.Register(L);
        LeanTweenWrap.Register(L);
        LeanAudioWrap.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);
        L.EndModule();
        L.EndModule();
        L.BeginModule("UnityEngine");
        UnityEngine_ComponentWrap.Register(L);
        UnityEngine_BehaviourWrap.Register(L);
        UnityEngine_MonoBehaviourWrap.Register(L);
        UnityEngine_GameObjectWrap.Register(L);
        UnityEngine_TransformWrap.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_MaterialWrap.Register(L);
        UnityEngine_RendererWrap.Register(L);
        UnityEngine_WWWWrap.Register(L);
        UnityEngine_ScreenWrap.Register(L);
        UnityEngine_CameraWrap.Register(L);
        UnityEngine_CameraClearFlagsWrap.Register(L);
        UnityEngine_AudioClipWrap.Register(L);
        UnityEngine_AudioSourceWrap.Register(L);
        UnityEngine_AssetBundleWrap.Register(L);
        UnityEngine_ParticleSystemWrap.Register(L);
        UnityEngine_AsyncOperationWrap.Register(L);
        UnityEngine_LightWrap.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_RigidbodyWrap.Register(L);
        UnityEngine_SpriteWrap.Register(L);
        UnityEngine_RectWrap.Register(L);
        UnityEngine_RectTransformWrap.Register(L);
        UnityEngine_RectTransformUtilityWrap.Register(L);
        UnityEngine_CanvasWrap.Register(L);
        L.BeginModule("Experimental");
        L.BeginModule("Director");
        UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L);
        L.EndModule();
        L.EndModule();
        L.BeginModule("UI");
        UnityEngine_UI_GraphicWrap.Register(L);
        UnityEngine_UI_MaskableGraphicWrap.Register(L);
        UnityEngine_UI_ImageWrap.Register(L);
        UnityEngine_UI_TextWrap.Register(L);
        UnityEngine_UI_ToggleWrap.Register(L);
        UnityEngine_UI_ToggleGroupWrap.Register(L);
        UnityEngine_UI_InputFieldWrap.Register(L);
        UnityEngine_UI_LayoutGroupWrap.Register(L);
        UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.Register(L);
        UnityEngine_UI_VerticalLayoutGroupWrap.Register(L);
        UnityEngine_UI_HorizontalLayoutGroupWrap.Register(L);
        UnityEngine_UI_ContentSizeFitterWrap.Register(L);
        UnityEngine_UI_DropdownWrap.Register(L);
        UnityEngine_UI_MaskWrap.Register(L);
        UnityEngine_UI_LayoutElementWrap.Register(L);
        UnityEngine_UI_SliderWrap.Register(L);
        UnityEngine_UI_ScrollbarWrap.Register(L);
        UnityEngine_UI_SelectableWrap.Register(L);
        UnityEngine_UI_ButtonWrap.Register(L);
        UnityEngine_UI_GraphicRaycasterWrap.Register(L);
        UnityEngine_UI_ScrollRectWrap.Register(L);
        UnityEngine_UI_LoopScrollRectWrap.Register(L);
        UnityEngine_UI_LoopVerticalScrollRectWrap.Register(L);
        UnityEngine_UI_LoopHorizontalScrollRectWrap.Register(L);
        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.EndModule();
        L.EndModule();
        L.BeginModule("System");
        L.RegFunction("Action", System_Action);
        L.RegFunction("Action_float", System_Action_float);
        L.RegFunction("Action_float_float", System_Action_float_float);
        L.RegFunction("Action_float_object", System_Action_float_object);
        L.RegFunction("Action_UnityEngine_Vector2", System_Action_UnityEngine_Vector2);
        L.RegFunction("Action_UnityEngine_Vector3", System_Action_UnityEngine_Vector3);
        L.RegFunction("Action_UnityEngine_Vector3_object", System_Action_UnityEngine_Vector3_object);
        L.RegFunction("Action_UnityEngine_Color", System_Action_UnityEngine_Color);
        L.RegFunction("Action_object", System_Action_object);
        L.RegFunction("Action_LTEvent", System_Action_LTEvent);
        L.EndModule();
        L.EndModule();
        Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t);
    }
예제 #12
0
    public static void Bind(LuaState L)
    {
        float t = Time.realtimeSinceStartup;

        L.BeginModule(null);
        DebuggerWrap.Register(L);
        UITextGradientWrap.Register(L);
        NTGLuaScriptWrap.Register(L);
        NTGLuaScriptExtWrap.Register(L);
        TGNetServiceWrap.Register(L);
        NTGApplicationControllerWrap.Register(L);
        NTGResourceControllerWrap.Register(L);
        NTGEventTriggerProxyWrap.Register(L);
        NTGBattleMemberAttrsWrap.Register(L);
        NTGBattleUnitControllerWrap.Register(L);
        NTGBattlePlayerControllerWrap.Register(L);
        L.BeginModule("System");
        System_DateTimeWrap.Register(L);
        L.RegFunction("Action", System_Action);
        L.RegFunction("ActionSelf", System_Action_Self);
        L.BeginModule("IO");
        System_IO_DirectoryWrap.Register(L);
        System_IO_FileWrap.Register(L);
        L.EndModule();
        L.BeginModule("Collections");
        System_Collections_QueueWrap.Register(L);
        System_Collections_StackWrap.Register(L);
        System_Collections_ArrayListWrap.Register(L);
        L.EndModule();
        L.BeginModule("ComponentModel");
        L.RegFunction("PropertyChangedEventHandler", System_ComponentModel_PropertyChangedEventHandler);
        L.RegFunction("PropertyChangedEventHandlerSelf", System_ComponentModel_PropertyChangedEventHandler_Self);
        L.EndModule();
        L.EndModule();
        L.BeginModule("UnityEngine");
        UnityEngine_CoroutineWrap.Register(L);
        UnityEngine_RectWrap.Register(L);
        UnityEngine_SpriteWrap.Register(L);
        UnityEngine_CanvasWrap.Register(L);
        UnityEngine_CanvasGroupWrap.Register(L);
        UnityEngine_AudioListenerWrap.Register(L);
        UnityEngine_ParticleSystemRendererWrap.Register(L);
        UnityEngine_TrailRendererWrap.Register(L);
        UnityEngine_RectTransformWrap.Register(L);
        UnityEngine_RuntimePlatformWrap.Register(L);
        UnityEngine_RectOffsetWrap.Register(L);
        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);
        L.BeginModule("UI");
        UnityEngine_UI_ImageWrap.Register(L);
        UnityEngine_UI_SliderWrap.Register(L);
        UnityEngine_UI_ToggleWrap.Register(L);
        UnityEngine_UI_OutlineWrap.Register(L);
        UnityEngine_UI_ShadowWrap.Register(L);
        UnityEngine_UI_ScrollRectWrap.Register(L);
        UnityEngine_UI_ScrollbarWrap.Register(L);
        UnityEngine_UI_LayoutGroupWrap.Register(L);
        UnityEngine_UI_LayoutElementWrap.Register(L);
        UnityEngine_UI_CanvasScalerWrap.Register(L);
        UnityEngine_UI_InputFieldWrap.Register(L);
        UnityEngine_UI_BaseMeshEffectWrap.Register(L);
        UnityEngine_UI_TextWrap.Register(L);
        UnityEngine_UI_GridLayoutGroupWrap.Register(L);
        UnityEngine_UI_HorizontalLayoutGroupWrap.Register(L);
        UnityEngine_UI_GraphicRaycasterWrap.Register(L);
        UnityEngine_UI_ButtonWrap.Register(L);
        UnityEngine_UI_MaskableGraphicWrap.Register(L);
        UnityEngine_UI_GraphicWrap.Register(L);
        UnityEngine_UI_SelectableWrap.Register(L);
        UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.Register(L);
        L.BeginModule("InputField");
        L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput);
        L.RegFunction("OnValidateInputSelf", UnityEngine_UI_InputField_OnValidateInput_Self);
        L.EndModule();
        L.EndModule();
        L.BeginModule("EventSystems");
        UnityEngine_EventSystems_EventTriggerWrap.Register(L);
        UnityEngine_EventSystems_AbstractEventDataWrap.Register(L);
        UnityEngine_EventSystems_BaseRaycasterWrap.Register(L);
        UnityEngine_EventSystems_EventSystemWrap.Register(L);
        UnityEngine_EventSystems_PointerEventDataWrap.Register(L);
        UnityEngine_EventSystems_BaseEventDataWrap.Register(L);
        UnityEngine_EventSystems_UIBehaviourWrap.Register(L);
        L.EndModule();
        L.BeginModule("Experimental");
        L.BeginModule("Director");
        UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L);
        L.EndModule();
        L.EndModule();
        L.BeginModule("SceneManagement");
        UnityEngine_SceneManagement_SceneManagerWrap.Register(L);
        UnityEngine_SceneManagement_LoadSceneModeWrap.Register(L);
        UnityEngine_SceneManagement_SceneWrap.Register(L);
        L.EndModule();
        L.BeginModule("Events");
        L.RegFunction("UnityAction", UnityEngine_Events_UnityAction);
        L.RegFunction("UnityActionSelf", UnityEngine_Events_UnityAction_Self);
        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_SceneManagement_LoadSceneModeSelf", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_LoadSceneMode_Self);
        L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene);
        L.RegFunction("UnityAction_UnityEngine_SceneManagement_SceneSelf", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene_Self);
        L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene);
        L.RegFunction("UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_SceneSelf", UnityEngine_Events_UnityAction_UnityEngine_SceneManagement_Scene_UnityEngine_SceneManagement_Scene_Self);
        L.EndModule();
        L.BeginModule("Canvas");
        L.RegFunction("WillRenderCanvases", UnityEngine_Canvas_WillRenderCanvases);
        L.RegFunction("WillRenderCanvasesSelf", UnityEngine_Canvas_WillRenderCanvases_Self);
        L.EndModule();
        L.BeginModule("RectTransform");
        L.RegFunction("ReapplyDrivenProperties", UnityEngine_RectTransform_ReapplyDrivenProperties);
        L.RegFunction("ReapplyDrivenPropertiesSelf", UnityEngine_RectTransform_ReapplyDrivenProperties_Self);
        L.EndModule();
        L.BeginModule("Camera");
        L.RegFunction("CameraCallback", UnityEngine_Camera_CameraCallback);
        L.RegFunction("CameraCallbackSelf", UnityEngine_Camera_CameraCallback_Self);
        L.EndModule();
        L.BeginModule("Application");
        L.RegFunction("LogCallback", UnityEngine_Application_LogCallback);
        L.RegFunction("LogCallbackSelf", UnityEngine_Application_LogCallback_Self);
        L.RegFunction("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback);
        L.RegFunction("AdvertisingIdentifierCallbackSelf", UnityEngine_Application_AdvertisingIdentifierCallback_Self);
        L.EndModule();
        L.BeginModule("AudioClip");
        L.RegFunction("PCMReaderCallback", UnityEngine_AudioClip_PCMReaderCallback);
        L.RegFunction("PCMReaderCallbackSelf", UnityEngine_AudioClip_PCMReaderCallback_Self);
        L.RegFunction("PCMSetPositionCallback", UnityEngine_AudioClip_PCMSetPositionCallback);
        L.RegFunction("PCMSetPositionCallbackSelf", UnityEngine_AudioClip_PCMSetPositionCallback_Self);
        L.EndModule();
        L.EndModule();
        L.BeginModule("TGNetService");
        TGNetService_NetRequestWrap.Register(L);
        TGNetService_NetEventWrap.Register(L);
        L.RegFunction("NetEventHanlder", TGNetService_NetEventHanlder);
        L.RegFunction("NetEventHanlderSelf", TGNetService_NetEventHanlder_Self);
        L.EndModule();
        L.BeginModule("NTGResourceController");
        NTGResourceController_AssetLoaderWrap.Register(L);
        L.EndModule();
        L.BeginModule("NTGBattleUIController");
        NTGBattleUIController_BattleUpdateDataWrap.Register(L);
        NTGBattleUIController_BattleUpdateSkillDataWrap.Register(L);
        NTGBattleUIController_BattleUpdatePlayerDataWrap.Register(L);
        NTGBattleUIController_UIBattleInfoItemWrap.Register(L);
        L.EndModule();
        L.BeginModule("NTGBattleUnitController");
        NTGBattleUnitController_UnitBuffWrap.Register(L);
        L.EndModule();
        L.BeginModule("Newtonsoft");
        L.BeginModule("Json");
        L.BeginModule("Linq");
        Newtonsoft_Json_Linq_JObjectWrap.Register(L);
        Newtonsoft_Json_Linq_JContainerWrap.Register(L);
        Newtonsoft_Json_Linq_JTokenWrap.Register(L);
        Newtonsoft_Json_Linq_JPropertyWrap.Register(L);
        Newtonsoft_Json_Linq_JValueWrap.Register(L);
        Newtonsoft_Json_Linq_JArrayWrap.Register(L);
        L.EndModule();
        L.EndModule();
        L.EndModule();
        L.BeginModule("NTGEventTriggerProxy");
        L.RegFunction("PointerEventDelegate", NTGEventTriggerProxy_PointerEventDelegate);
        L.RegFunction("PointerEventDelegateSelf", NTGEventTriggerProxy_PointerEventDelegate_Self);
        L.RegFunction("BaseEventDelegate", NTGEventTriggerProxy_BaseEventDelegate);
        L.RegFunction("BaseEventDelegateSelf", NTGEventTriggerProxy_BaseEventDelegate_Self);
        L.RegFunction("AxisBaseEventDelegate", NTGEventTriggerProxy_AxisBaseEventDelegate);
        L.RegFunction("AxisBaseEventDelegateSelf", NTGEventTriggerProxy_AxisBaseEventDelegate_Self);
        L.EndModule();
        L.EndModule();
        Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t);
    }
예제 #13
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);
    }
예제 #14
0
    public static void Bind(LuaState L)
    {
        float realtimeSinceStartup = Time.realtimeSinceStartup;

        L.BeginModule(null);
        ViewWrap.Register(L);
        BaseWrap.Register(L);
        ManagerWrap.Register(L);
        L.BeginModule("UnityEngine");
        UnityEngine_ComponentWrap.Register(L);
        UnityEngine_BehaviourWrap.Register(L);
        UnityEngine_MonoBehaviourWrap.Register(L);
        UnityEngine_GameObjectWrap.Register(L);
        UnityEngine_TransformWrap.Register(L);
        UnityEngine_ApplicationWrap.Register(L);
        UnityEngine_ColliderWrap.Register(L);
        UnityEngine_TimeWrap.Register(L);
        UnityEngine_ShaderWrap.Register(L);
        UnityEngine_MaterialWrap.Register(L);
        UnityEngine_RendererWrap.Register(L);
        UnityEngine_WWWWrap.Register(L);
        UnityEngine_ScreenWrap.Register(L);
        UnityEngine_CameraWrap.Register(L);
        UnityEngine_AudioSourceWrap.Register(L);
        UnityEngine_AnimatorWrap.Register(L);
        UnityEngine_InputWrap.Register(L);
        UnityEngine_SkinnedMeshRendererWrap.Register(L);
        UnityEngine_WWWFormWrap.Register(L);
        UnityEngine_SystemInfoWrap.Register(L);
        UnityEngine_MeshRendererWrap.Register(L);
        UnityEngine_BoxColliderWrap.Register(L);
        UnityEngine_RectTransformWrap.Register(L);
        UnityEngine_RectWrap.Register(L);
        UnityEngine_SpriteWrap.Register(L);
        UnityEngine_TextAnchorWrap.Register(L);
        L.BeginModule("UI");
        UnityEngine_UI_TextWrap.Register(L);
        UnityEngine_UI_InputFieldWrap.Register(L);
        UnityEngine_UI_ToggleWrap.Register(L);
        UnityEngine_UI_ImageWrap.Register(L);
        UnityEngine_UI_RawImageWrap.Register(L);
        UnityEngine_UI_SliderWrap.Register(L);
        UnityEngine_UI_HorizontalLayoutGroupWrap.Register(L);
        UnityEngine_UI_ButtonWrap.Register(L);
        UnityEngine_UI_GraphicWrap.Register(L);
        UnityEngine_UI_MaskableGraphicWrap.Register(L);
        UnityEngine_UI_GraphicRaycasterWrap.Register(L);
        UnityEngine_UI_SelectableWrap.Register(L);
        UnityEngine_UI_HorizontalOrVerticalLayoutGroupWrap.Register(L);
        UnityEngine_UI_LayoutGroupWrap.Register(L);
        L.BeginModule("InputField");
        L.RegFunction("OnValidateInput", new LuaCSFunction(LuaBinder.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("Experimental");
        L.BeginModule("Director");
        UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L);
        L.EndModule();
        L.EndModule();
        L.BeginModule("Events");
        L.RegFunction("UnityAction", new LuaCSFunction(LuaBinder.UnityEngine_Events_UnityAction));
        L.EndModule();
        L.BeginModule("Application");
        L.RegFunction("LogCallback", new LuaCSFunction(LuaBinder.UnityEngine_Application_LogCallback));
        L.EndModule();
        L.BeginModule("Camera");
        L.RegFunction("CameraCallback", new LuaCSFunction(LuaBinder.UnityEngine_Camera_CameraCallback));
        L.EndModule();
        L.BeginModule("RectTransform");
        L.RegFunction("ReapplyDrivenProperties", new LuaCSFunction(LuaBinder.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_PrefabLoaderWrap.Register(L);
        LuaFramework_SoundManagerWrap.Register(L);
        LuaFramework_NetworkManagerWrap.Register(L);
        LuaFramework_ResourceManagerWrap.Register(L);
        L.EndModule();
        L.BeginModule("Hummingbird");
        L.BeginModule("Model");
        Hummingbird_Model_GameConfigInfoWrap.Register(L);
        Hummingbird_Model_DeviceDrainModelWrap.Register(L);
        L.EndModule();
        L.BeginModule("SeaBattle");
        L.BeginModule("Controller");
        L.BeginModule("CameraControll");
        Hummingbird_SeaBattle_Controller_CameraControll_HandleInputInViewPortRectWrap.Register(L);
        Hummingbird_SeaBattle_Controller_CameraControll_HandleCameraActionWrap.Register(L);
        L.EndModule();
        L.BeginModule("Map");
        Hummingbird_SeaBattle_Controller_Map_WorldMapControllerWrap.Register(L);
        Hummingbird_SeaBattle_Controller_Map_BusinessSysMapControllerWrap.Register(L);
        Hummingbird_SeaBattle_Controller_Map_FubenTwoDMapControllerWrap.Register(L);
        L.EndModule();
        L.BeginModule("Guide");
        Hummingbird_SeaBattle_Controller_Guide_GuideHighlightMaskWrap.Register(L);
        L.EndModule();
        L.EndModule();
        L.BeginModule("Utility");
        Hummingbird_SeaBattle_Utility_TweenUtilWrap.Register(L);
        Hummingbird_SeaBattle_Utility_NumberTextWrap.Register(L);
        L.BeginModule("RichText");
        Hummingbird_SeaBattle_Utility_RichText_RichTextWrap.Register(L);
        L.EndModule();
        L.BeginModule("FNScrollRect");
        Hummingbird_SeaBattle_Utility_FNScrollRect_FNScrollViewWrap.Register(L);
        L.EndModule();
        L.BeginModule("Platform");
        Hummingbird_SeaBattle_Utility_Platform_PlatformUtilWrap.Register(L);
        L.EndModule();
        L.EndModule();
        L.BeginModule("Common");
        Hummingbird_SeaBattle_Common_FrameEventReceiverWrap.Register(L);
        L.EndModule();
        L.EndModule();
        L.EndModule();
        L.BeginModule("System");
        L.RegFunction("Action", new LuaCSFunction(LuaBinder.System_Action));
        L.RegFunction("Action_bool", new LuaCSFunction(LuaBinder.System_Action_bool));
        L.RegFunction("Action_UnityEngine_AssetBundle", new LuaCSFunction(LuaBinder.System_Action_UnityEngine_AssetBundle));
        L.RegFunction("Action_UnityEngine_Objects", new LuaCSFunction(LuaBinder.System_Action_UnityEngine_Objects));
        L.RegFunction("Action_UnityEngine_Vector3", new LuaCSFunction(LuaBinder.System_Action_UnityEngine_Vector3));
        L.RegFunction("Action_string", new LuaCSFunction(LuaBinder.System_Action_string));
        L.RegFunction("Action_int", new LuaCSFunction(LuaBinder.System_Action_int));
        L.EndModule();
        L.EndModule();
        Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - realtimeSinceStartup);
    }