Esempio n. 1
0
 public static void Bind(IntPtr L, string type = null)
 {
     AnimationBlendModeWrap.Register(L);
     AnimationClipWrap.Register(L);
     AnimationStateWrap.Register(L);
     AnimationWrap.Register(L);
     AppConstWrap.Register(L);
     ApplicationWrap.Register(L);
     AssetBundleWrap.Register(L);
     AssetInfoWrap.Register(L);
     AsyncOperationWrap.Register(L);
     AudioClipWrap.Register(L);
     AudioSourceWrap.Register(L);
     AutomicIntWrap.Register(L);
     BehaviourWrap.Register(L);
     BlendWeightsWrap.Register(L);
     BoxColliderWrap.Register(L);
     ButtonWrap.Register(L);
     CameraClearFlagsWrap.Register(L);
     CameraMgrWrap.Register(L);
     CameraWrap.Register(L);
     CanvasWrap.Register(L);
     CharacterControllerWrap.Register(L);
     ColliderWrap.Register(L);
     ComponentWrap.Register(L);
     Constans_SkillTargetWrap.Register(L);
     Constans_SkillTypeWrap.Register(L);
     DebuggerWrap.Register(L);
     DelegateFactoryWrap.Register(L);
     DelegateWrap.Register(L);
     DropdownWrap.Register(L);
     EnumWrap.Register(L);
     ErrorManagerWrap.Register(L);
     ErrorModelWrap.Register(L);
     EventDefWrap.Register(L);
     FightUnitMgrWrap.Register(L);
     GameDataWrap.Register(L);
     GameObjectWrap.Register(L);
     IEnumeratorWrap.Register(L);
     ImageWrap.Register(L);
     InputFieldWrap.Register(L);
     InputManagerWrap.Register(L);
     InputWrap.Register(L);
     KeyCodeWrap.Register(L);
     LightTypeWrap.Register(L);
     LightWrap.Register(L);
     LuaEnumTypeWrap.Register(L);
     MapUtilsWrap.Register(L);
     MaskWrap.Register(L);
     MaterialWrap.Register(L);
     MeshColliderWrap.Register(L);
     MeshRendererWrap.Register(L);
     MonoBehaviourWrap.Register(L);
     MultipleTimeLengthButtonTriggerWrap.Register(L);
     MusicManagerWrap.Register(L);
     NetWorkScriptWrap.Register(L);
     ObjectWrap.Register(L);
     OneByOne_AccountDTOWrap.Register(L);
     OneByOne_AttackDTOWrap.Register(L);
     OneByOne_DamageDTOWrap.Register(L);
     OneByOne_FightBuildModelWrap.Register(L);
     OneByOne_FightPlayerModelWrap.Register(L);
     OneByOne_FightProtocolWrap.Register(L);
     OneByOne_FightRoomModelWrap.Register(L);
     OneByOne_FightSkillWrap.Register(L);
     OneByOne_FightSoldierModelWrap.Register(L);
     OneByOne_LoginProtocolWrap.Register(L);
     OneByOne_MatchProtocolWrap.Register(L);
     OneByOne_MoveDTOWrap.Register(L);
     OneByOne_ProtocolWrap.Register(L);
     OneByOne_SelectModelWrap.Register(L);
     OneByOne_SelectProtocolWrap.Register(L);
     OneByOne_SelectRoomDTOWrap.Register(L);
     OneByOne_UserDTOWrap.Register(L);
     OneByOne_UserProtocolWrap.Register(L);
     ParticleAnimatorWrap.Register(L);
     ParticleEmitterWrap.Register(L);
     ParticleRendererWrap.Register(L);
     ParticleSystemWrap.Register(L);
     PhysicsWrap.Register(L);
     PlayerBehaviourFacadeWrap.Register(L);
     PlayerControllerWrap.Register(L);
     PlayerPrefsWrap.Register(L);
     PlayModeWrap.Register(L);
     QualitySettingsWrap.Register(L);
     QueueModeWrap.Register(L);
     RawImageWrap.Register(L);
     RectMask2DWrap.Register(L);
     RectTransformWrap.Register(L);
     RendererWrap.Register(L);
     RenderSettingsWrap.Register(L);
     RenderTextureWrap.Register(L);
     ResourceLoaderWrap.Register(L);
     SceneLoaderWrap.Register(L);
     ScreenWrap.Register(L);
     ScrollbarWrap.Register(L);
     ScrollRectWrap.Register(L);
     SelectableWrap.Register(L);
     SkillButtonWrap.Register(L);
     SkillTipSingletonWrap.Register(L);
     SkinnedMeshRendererWrap.Register(L);
     SleepTimeoutWrap.Register(L);
     SliderWrap.Register(L);
     SocketModelWrap.Register(L);
     SpaceWrap.Register(L);
     SphereColliderWrap.Register(L);
     SpriteWrap.Register(L);
     stringWrap.Register(L);
     System_ObjectWrap.Register(L);
     TestDelegateListenerWrap.Register(L);
     TestEventListenerWrap.Register(L);
     TestLuaDelegateWrap.Register(L);
     TextureWrap.Register(L);
     TextWrap.Register(L);
     TimeWrap.Register(L);
     ToggleGroupWrap.Register(L);
     ToggleWrap.Register(L);
     TouchPhaseWrap.Register(L);
     TrackedReferenceWrap.Register(L);
     TransformFinderWrap.Register(L);
     TransformWrap.Register(L);
     TransUtilsWrap.Register(L);
     TypeWrap.Register(L);
     UIutilsWrap.Register(L);
     UnityEngine_SceneManagement_SceneManagerWrap.Register(L);
     UtilWrap.Register(L);
     WWWWrap.Register(L);
 }
Esempio n. 2
0
    public static void Bind(LuaState L)
    {
        float t = Time.realtimeSinceStartup;

        L.BeginModule(null);
        LuaInterface_DebuggerWrap.Register(L);
        LuaProfilerWrap.Register(L);
        SchedulerWrap.Register(L);
        EventTriggerWrap.Register(L);
        GameDataWrap.Register(L);
        GameConstWrap.Register(L);
        PlayDataConfigWrap.Register(L);
        CommonMethodWrap.Register(L);
        EmojiDataConfigWrap.Register(L);
        UIManagerWrap.Register(L);
        UserEventManagerWrap.Register(L);
        ClientWrap.Register(L);
        CommonRequestWrap.Register(L);
        TipsManagerWrap.Register(L);
        LoadLayerManagerWrap.Register(L);
        ResourceManagerWrap.Register(L);
        LanguageWrap.Register(L);
        FunctionWrap.Register(L);
        PolygonWrap.Register(L);
        LuaHelperWrap.Register(L);
        LuaScriptManagerWrap.Register(L);
        LuaPlayInterfaceWrap.Register(L);
        BCUITweenerWrap.Register(L);
        BCTweenAlphaWrap.Register(L);
        BCTweenColorWrap.Register(L);
        BCTweenGroupWrap.Register(L);
        BCTweenPositionWrap.Register(L);
        BCTweenScaleWrap.Register(L);
        BCTweenTweenerWrap.Register(L);
        BCTweenAnythingWrap.Register(L);
        BCTweenRandTriggerWrap.Register(L);
        BCTweenNumTextWrap.Register(L);
        DataReaderWrap.Register(L);
        PlayBaseWrap.Register(L);
        UIBaseWrap.Register(L);
        L.RegFunction("SchedulerCallback", SchedulerCallback);
        L.RegFunction("EventCallback", EventCallback);
        L.RegFunction("RequestCallback", RequestCallback);
        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_AudioBehaviourWrap.Register(L);
        L.BeginModule("UI");
        UnityEngine_UI_LoopScrollRectWrap.Register(L);
        UnityEngine_UI_LoopHorizontalScrollRectWrap.Register(L);
        UnityEngine_UI_LoopVerticalScrollRectWrap.Register(L);
        UnityEngine_UI_GraphicWrap.Register(L);
        L.EndModule();
        L.BeginModule("EventSystems");
        UnityEngine_EventSystems_UIBehaviourWrap.Register(L);
        L.EndModule();
        L.BeginModule("Events");
        L.RegFunction("UnityAction", UnityEngine_Events_UnityAction);
        L.EndModule();
        L.BeginModule("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("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.RegFunction("Action_UnityEngine_GameObject", System_Action_UnityEngine_GameObject);
        L.RegFunction("Action_bool", System_Action_bool);
        L.RegFunction("Action_rep_message_start_game", System_Action_rep_message_start_game);
        L.RegFunction("Action_bytes", System_Action_bytes);
        L.RegFunction("Action_UnityEngine_Sprite", System_Action_UnityEngine_Sprite);
        L.RegFunction("Action_UnityEngine_Transform_int", System_Action_UnityEngine_Transform_int);
        L.RegFunction("Action_bool_int", System_Action_bool_int);
        L.EndModule();
        L.BeginModule("EventTrigger");
        L.RegFunction("VoidDelegate", EventTrigger_VoidDelegate);
        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);
    }