Esempio n. 1
1
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Lerp", Lerp),
            new LuaMethod("ClampIndex", ClampIndex),
            new LuaMethod("RepeatIndex", RepeatIndex),
            new LuaMethod("WrapAngle", WrapAngle),
            new LuaMethod("Wrap01", Wrap01),
            new LuaMethod("HexToDecimal", HexToDecimal),
            new LuaMethod("DecimalToHexChar", DecimalToHexChar),
            new LuaMethod("DecimalToHex24", DecimalToHex24),
            new LuaMethod("DecimalToHex32", DecimalToHex32),
            new LuaMethod("ColorToInt", ColorToInt),
            new LuaMethod("IntToColor", IntToColor),
            new LuaMethod("IntToBinary", IntToBinary),
            new LuaMethod("HexToColor", HexToColor),
            new LuaMethod("ConvertToTexCoords", ConvertToTexCoords),
            new LuaMethod("ConvertToPixels", ConvertToPixels),
            new LuaMethod("MakePixelPerfect", MakePixelPerfect),
            new LuaMethod("ConstrainRect", ConstrainRect),
            new LuaMethod("SpringDampen", SpringDampen),
            new LuaMethod("SpringLerp", SpringLerp),
            new LuaMethod("RotateTowards", RotateTowards),
            new LuaMethod("DistanceToRectangle", DistanceToRectangle),
            new LuaMethod("AdjustByDPI", AdjustByDPI),
            new LuaMethod("ScreenToPixels", ScreenToPixels),
            new LuaMethod("ScreenToParentPixels", ScreenToParentPixels),
            new LuaMethod("New", _CreateNGUIMath),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaScriptMgr.RegisterLib(L, "NGUIMath", regs);
    }
Esempio n. 2
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Destroy", Destroy),
            new LuaMethod("DestroyImmediate", DestroyImmediate),
            new LuaMethod("Instantiate", Instantiate),
            new LuaMethod("InstantiateLocal", InstantiateLocal),
            new LuaMethod("InstantiateGlobal", InstantiateGlobal),
            new LuaMethod("SetParent", SetParent),
            new LuaMethod("GetType", GetType),
            new LuaMethod("Find", Find),
            new LuaMethod("FindWithTag", FindWithTag),
            new LuaMethod("GetComponentInChildren", GetComponentInChildren),
            new LuaMethod("GetComponent", GetComponent),
            new LuaMethod("GetComponents", GetComponents),
            new LuaMethod("GetComponentsInChildren", GetComponentsInChildren),
            new LuaMethod("GetAllChild", GetAllChild),
            new LuaMethod("ForeachChild", ForeachChild),
            new LuaMethod("Raycast", Raycast),
            new LuaMethod("RefreshShader", RefreshShader),
            new LuaMethod("GetAngle", GetAngle),
            new LuaMethod("GetUTF8String", GetUTF8String),
            new LuaMethod("GetBytes", GetBytes),
            new LuaMethod("GCCollect", GCCollect),
            new LuaMethod("New", _CreateLuaHelper),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
        };

        LuaScriptMgr.RegisterLib(L, "LuaHelper", typeof(LuaHelper), regs, fields, typeof(object));
    }
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("GetActiveScene", GetActiveScene),
			new LuaMethod("SetActiveScene", SetActiveScene),
			new LuaMethod("GetSceneByPath", GetSceneByPath),
			new LuaMethod("GetSceneByName", GetSceneByName),
			new LuaMethod("GetSceneAt", GetSceneAt),
			new LuaMethod("LoadScene", LoadScene),
			new LuaMethod("LoadSceneAsync", LoadSceneAsync),
			new LuaMethod("CreateScene", CreateScene),
			new LuaMethod("UnloadScene", UnloadScene),
			new LuaMethod("MergeScenes", MergeScenes),
			new LuaMethod("MoveGameObjectToScene", MoveGameObjectToScene),
			new LuaMethod("New", _CreateUnityEngine_SceneManagement_SceneManager),
			new LuaMethod("GetClassType", GetClassType),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("sceneCount", get_sceneCount, null),
			new LuaField("sceneCountInBuildSettings", get_sceneCountInBuildSettings, null),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.SceneManagement.SceneManager", typeof(UnityEngine.SceneManagement.SceneManager), regs, fields, typeof(object));
	}
Esempio n. 4
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("LoadAudioData", LoadAudioData),
            new LuaMethod("UnloadAudioData", UnloadAudioData),
            new LuaMethod("GetData", GetData),
            new LuaMethod("SetData", SetData),
            new LuaMethod("Create", Create),
            new LuaMethod("New", _CreateAudioClip),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("length", get_length, null),
            new LuaField("samples", get_samples, null),
            new LuaField("channels", get_channels, null),
            new LuaField("frequency", get_frequency, null),
            new LuaField("loadType", get_loadType, null),
            new LuaField("preloadAudioData", get_preloadAudioData, null),
            new LuaField("loadState", get_loadState, null),
            new LuaField("loadInBackground", get_loadInBackground, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.AudioClip", typeof(AudioClip), regs, fields, typeof(Object));
    }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Action_GameObject", Action_GameObject),
            new LuaMethod("Action", Action),
            new LuaMethod("UnityEngine_Events_UnityAction", UnityEngine_Events_UnityAction),
            new LuaMethod("System_Reflection_MemberFilter", System_Reflection_MemberFilter),
            new LuaMethod("System_Reflection_TypeFilter", System_Reflection_TypeFilter),
            new LuaMethod("TestLuaDelegate_VoidDelegate", TestLuaDelegate_VoidDelegate),
            new LuaMethod("LuaBehaviours_LuaMethord", LuaBehaviours_LuaMethord),
            new LuaMethod("LuaBehaviours_LuaMethordBool", LuaBehaviours_LuaMethordBool),
            new LuaMethod("LuaBehaviours_LuaMethordCollision", LuaBehaviours_LuaMethordCollision),
            new LuaMethod("LuaBehaviours_LuaMethordCollision2D", LuaBehaviours_LuaMethordCollision2D),
            new LuaMethod("LuaBehaviours_LuaMethordGameObject", LuaBehaviours_LuaMethordGameObject),
            new LuaMethod("LuaBehaviours_LuaMethordCollider", LuaBehaviours_LuaMethordCollider),
            new LuaMethod("LuaBehaviours_LuaMethordCollider2D", LuaBehaviours_LuaMethordCollider2D),
            new LuaMethod("Camera_CameraCallback", Camera_CameraCallback),
            new LuaMethod("AudioClip_PCMReaderCallback", AudioClip_PCMReaderCallback),
            new LuaMethod("AudioClip_PCMSetPositionCallback", AudioClip_PCMSetPositionCallback),
            new LuaMethod("Application_LogCallback", Application_LogCallback),
            new LuaMethod("Clear", Clear),
            new LuaMethod("New", _CreateDelegateFactory),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaScriptMgr.RegisterLib(L, "DelegateFactory", regs);
    }
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("Play", Play),
			new LuaMethod("Pause", Pause),
			new LuaMethod("Stop", Stop),
			new LuaMethod("GetPixel", GetPixel),
			new LuaMethod("GetPixels", GetPixels),
			new LuaMethod("GetPixels32", GetPixels32),
			new LuaMethod("New", _CreateWebCamTexture),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("isPlaying", get_isPlaying, null),
			new LuaField("deviceName", get_deviceName, set_deviceName),
			new LuaField("requestedFPS", get_requestedFPS, set_requestedFPS),
			new LuaField("requestedWidth", get_requestedWidth, set_requestedWidth),
			new LuaField("requestedHeight", get_requestedHeight, set_requestedHeight),
			new LuaField("devices", get_devices, null),
			new LuaField("videoRotationAngle", get_videoRotationAngle, null),
			new LuaField("videoVerticallyMirrored", get_videoVerticallyMirrored, null),
			new LuaField("didUpdateThisFrame", get_didUpdateThisFrame, null),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.WebCamTexture", typeof(WebCamTexture), regs, fields, typeof(Texture));
	}
Esempio n. 7
0
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("New", _CreateTime),
			new LuaMethod("GetClassType", GetClassType),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("time", get_time, null),
			new LuaField("timeSinceLevelLoad", get_timeSinceLevelLoad, null),
			new LuaField("deltaTime", get_deltaTime, null),
			new LuaField("fixedTime", get_fixedTime, null),
			new LuaField("unscaledTime", get_unscaledTime, null),
			new LuaField("unscaledDeltaTime", get_unscaledDeltaTime, null),
			new LuaField("fixedDeltaTime", get_fixedDeltaTime, set_fixedDeltaTime),
			new LuaField("maximumDeltaTime", get_maximumDeltaTime, set_maximumDeltaTime),
			new LuaField("smoothDeltaTime", get_smoothDeltaTime, null),
			new LuaField("timeScale", get_timeScale, set_timeScale),
			new LuaField("frameCount", get_frameCount, null),
			new LuaField("renderedFrameCount", get_renderedFrameCount, null),
			new LuaField("realtimeSinceStartup", get_realtimeSinceStartup, null),
			new LuaField("captureFramerate", get_captureFramerate, set_captureFramerate),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.Time", typeof(Time), regs, fields, typeof(object));
	}
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("Close", Close),
			new LuaMethod("WriteByte", WriteByte),
			new LuaMethod("WriteInt", WriteInt),
			new LuaMethod("WriteShort", WriteShort),
			new LuaMethod("WriteLong", WriteLong),
			new LuaMethod("WriteFloat", WriteFloat),
			new LuaMethod("WriteDouble", WriteDouble),
			new LuaMethod("WriteString", WriteString),
			new LuaMethod("WriteBytes", WriteBytes),
			new LuaMethod("WriteBuffer", WriteBuffer),
			new LuaMethod("ReadByte", ReadByte),
			new LuaMethod("ReadInt", ReadInt),
			new LuaMethod("ReadShort", ReadShort),
			new LuaMethod("ReadLong", ReadLong),
			new LuaMethod("ReadFloat", ReadFloat),
			new LuaMethod("ReadDouble", ReadDouble),
			new LuaMethod("ReadString", ReadString),
			new LuaMethod("ReadBytes", ReadBytes),
			new LuaMethod("ReadBuffer", ReadBuffer),
			new LuaMethod("ToBytes", ToBytes),
			new LuaMethod("Flush", Flush),
			new LuaMethod("New", _CreateSimpleFramework_ByteBuffer),
			new LuaMethod("GetClassType", GetClassType),
		};

		LuaField[] fields = new LuaField[]
		{
		};

		LuaScriptMgr.RegisterLib(L, "SimpleFramework.ByteBuffer", typeof(SimpleFramework.ByteBuffer), regs, fields, typeof(object));
	}
Esempio n. 9
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("New", _CreateParticleRenderer),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("particleRenderMode", get_particleRenderMode, set_particleRenderMode),
            new LuaField("lengthScale", get_lengthScale, set_lengthScale),
            new LuaField("velocityScale", get_velocityScale, set_velocityScale),
            new LuaField("cameraVelocityScale", get_cameraVelocityScale, set_cameraVelocityScale),
            new LuaField("maxParticleSize", get_maxParticleSize, set_maxParticleSize),
            new LuaField("uvAnimationXTile", get_uvAnimationXTile, set_uvAnimationXTile),
            new LuaField("uvAnimationYTile", get_uvAnimationYTile, set_uvAnimationYTile),
            new LuaField("uvAnimationCycles", get_uvAnimationCycles, set_uvAnimationCycles),
            new LuaField("maxPartileSize", get_maxPartileSize, set_maxPartileSize),
            new LuaField("uvTiles", get_uvTiles, set_uvTiles),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.ParticleRenderer", typeof(ParticleRenderer), regs, fields, typeof(Renderer));
    }
Esempio n. 10
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("onCustomerHandle", onCustomerHandle),
            new LuaMethod("onPressHandle", onPressHandle),
            new LuaMethod("onClickHandle", onClickHandle),
            new LuaMethod("onDragHandle", onDragHandle),
            new LuaMethod("onDropHandle", onDropHandle),
            new LuaMethod("onSelectHandle", onSelectHandle),
            new LuaMethod("onCancelHandle", onCancelHandle),
            new LuaMethod("New", _CreateUGUIEvent),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("onCustomerFn", get_onCustomerFn, set_onCustomerFn),
            new LuaField("onPressFn", get_onPressFn, set_onPressFn),
            new LuaField("onClickFn", get_onClickFn, set_onClickFn),
            new LuaField("onDragFn", get_onDragFn, set_onDragFn),
            new LuaField("onDropFn", get_onDropFn, set_onDropFn),
            new LuaField("onSelectFn", get_onSelectFn, set_onSelectFn),
            new LuaField("onCancelFn", get_onCancelFn, set_onCancelFn),
        };

        LuaScriptMgr.RegisterLib(L, "UGUIEvent", typeof(UGUIEvent), regs, fields, null);
    }
Esempio n. 11
0
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("GetLights", GetLights),
			new LuaMethod("New", _CreateLight),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("type", get_type, set_type),
			new LuaField("color", get_color, set_color),
			new LuaField("intensity", get_intensity, set_intensity),
			new LuaField("bounceIntensity", get_bounceIntensity, set_bounceIntensity),
			new LuaField("shadows", get_shadows, set_shadows),
			new LuaField("shadowStrength", get_shadowStrength, set_shadowStrength),
			new LuaField("shadowBias", get_shadowBias, set_shadowBias),
			new LuaField("shadowNormalBias", get_shadowNormalBias, set_shadowNormalBias),
			new LuaField("range", get_range, set_range),
			new LuaField("spotAngle", get_spotAngle, set_spotAngle),
			new LuaField("cookieSize", get_cookieSize, set_cookieSize),
			new LuaField("cookie", get_cookie, set_cookie),
			new LuaField("flare", get_flare, set_flare),
			new LuaField("renderMode", get_renderMode, set_renderMode),
			new LuaField("alreadyLightmapped", get_alreadyLightmapped, set_alreadyLightmapped),
			new LuaField("cullingMask", get_cullingMask, set_cullingMask),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.Light", typeof(Light), regs, fields, typeof(Behaviour));
	}
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Dispose", Dispose),
            new LuaMethod("Release", Release),
            new LuaMethod("Clear", Clear),
            new LuaMethod("DrawMesh", DrawMesh),
            new LuaMethod("DrawRenderer", DrawRenderer),
            new LuaMethod("SetRenderTarget", SetRenderTarget),
            new LuaMethod("Blit", Blit),
            new LuaMethod("GetTemporaryRT", GetTemporaryRT),
            new LuaMethod("ReleaseTemporaryRT", ReleaseTemporaryRT),
            new LuaMethod("ClearRenderTarget", ClearRenderTarget),
            new LuaMethod("SetGlobalFloat", SetGlobalFloat),
            new LuaMethod("SetGlobalVector", SetGlobalVector),
            new LuaMethod("SetGlobalColor", SetGlobalColor),
            new LuaMethod("SetGlobalMatrix", SetGlobalMatrix),
            new LuaMethod("SetGlobalTexture", SetGlobalTexture),
            new LuaMethod("New", _CreateUnityEngine_Rendering_CommandBuffer),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("name", get_name, set_name),
            new LuaField("sizeInBytes", get_sizeInBytes, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Rendering.CommandBuffer", typeof(UnityEngine.Rendering.CommandBuffer), regs, fields, typeof(object));
    }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Rebuild", Rebuild),
            new LuaMethod("OnPointerDown", OnPointerDown),
            new LuaMethod("OnDrag", OnDrag),
            new LuaMethod("OnMove", OnMove),
            new LuaMethod("FindSelectableOnLeft", FindSelectableOnLeft),
            new LuaMethod("FindSelectableOnRight", FindSelectableOnRight),
            new LuaMethod("FindSelectableOnUp", FindSelectableOnUp),
            new LuaMethod("FindSelectableOnDown", FindSelectableOnDown),
            new LuaMethod("OnInitializePotentialDrag", OnInitializePotentialDrag),
            new LuaMethod("SetDirection", SetDirection),
            new LuaMethod("New", _CreateUnityEngine_UI_Slider),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("fillRect", get_fillRect, set_fillRect),
            new LuaField("handleRect", get_handleRect, set_handleRect),
            new LuaField("direction", get_direction, set_direction),
            new LuaField("minValue", get_minValue, set_minValue),
            new LuaField("maxValue", get_maxValue, set_maxValue),
            new LuaField("wholeNumbers", get_wholeNumbers, set_wholeNumbers),
            new LuaField("value", get_value, set_value),
            new LuaField("normalizedValue", get_normalizedValue, set_normalizedValue),
            new LuaField("onValueChanged", get_onValueChanged, set_onValueChanged),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.UI.Slider", typeof(UnityEngine.UI.Slider), regs, fields, typeof(UnityEngine.UI.Selectable));
    }
Esempio n. 14
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("SetResolution", SetResolution),
            new LuaMethod("New", _CreateScreen),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("resolutions", get_resolutions, null),
            new LuaField("currentResolution", get_currentResolution, null),
            new LuaField("width", get_width, null),
            new LuaField("height", get_height, null),
            new LuaField("dpi", get_dpi, null),
            new LuaField("fullScreen", get_fullScreen, set_fullScreen),
            new LuaField("autorotateToPortrait", get_autorotateToPortrait, set_autorotateToPortrait),
            new LuaField("autorotateToPortraitUpsideDown", get_autorotateToPortraitUpsideDown, set_autorotateToPortraitUpsideDown),
            new LuaField("autorotateToLandscapeLeft", get_autorotateToLandscapeLeft, set_autorotateToLandscapeLeft),
            new LuaField("autorotateToLandscapeRight", get_autorotateToLandscapeRight, set_autorotateToLandscapeRight),
            new LuaField("orientation", get_orientation, set_orientation),
            new LuaField("sleepTimeout", get_sleepTimeout, set_sleepTimeout),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Screen", typeof(Screen), regs, fields, typeof(object));
    }
Esempio n. 15
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Invoke", Invoke),
            new LuaMethod("InvokeRepeating", InvokeRepeating),
            new LuaMethod("CancelInvoke", CancelInvoke),
            new LuaMethod("IsInvoking", IsInvoking),
            new LuaMethod("StartCoroutine", StartCoroutine),
            new LuaMethod("StartCoroutine_Auto", StartCoroutine_Auto),
            new LuaMethod("StopCoroutine", StopCoroutine),
            new LuaMethod("StopAllCoroutines", StopAllCoroutines),
            new LuaMethod("print", print),
            new LuaMethod("New", _CreateMonoBehaviour),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("useGUILayout", get_useGUILayout, set_useGUILayout),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.MonoBehaviour", typeof(MonoBehaviour), regs, fields, typeof(Behaviour));
    }
Esempio n. 16
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("CreateDelegate", CreateDelegate),
            new LuaMethod("DynamicInvoke", DynamicInvoke),
            new LuaMethod("Clone", Clone),
            new LuaMethod("GetObjectData", GetObjectData),
            new LuaMethod("GetInvocationList", GetInvocationList),
            new LuaMethod("Combine", Combine),
            new LuaMethod("Remove", Remove),
            new LuaMethod("RemoveAll", RemoveAll),
            new LuaMethod("GetHashCode", GetHashCode),
            new LuaMethod("Equals", Equals),
            new LuaMethod("New", _CreateDelegate),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__add", Lua_Add),
            new LuaMethod("__sub", Lua_Sub),
            new LuaMethod("__eq", Lua_Eq),
            new LuaMethod("unbind", Lua_UnBind),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("Method", get_Method, null),
            new LuaField("Target", get_Target, null),
        };

        LuaScriptMgr.RegisterLib(L, "System.Delegate", typeof(Delegate), regs, fields, typeof(object));
    }
Esempio n. 17
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("GetComponent", GetComponent),
            new LuaMethod("GetComponentInChildren", GetComponentInChildren),
            new LuaMethod("GetComponentsInChildren", GetComponentsInChildren),
            new LuaMethod("GetComponentInParent", GetComponentInParent),
            new LuaMethod("GetComponentsInParent", GetComponentsInParent),
            new LuaMethod("GetComponents", GetComponents),
            new LuaMethod("CompareTag", CompareTag),
            new LuaMethod("SendMessageUpwards", SendMessageUpwards),
            new LuaMethod("SendMessage", SendMessage),
            new LuaMethod("BroadcastMessage", BroadcastMessage),
            new LuaMethod("New", _CreateComponent),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
            new LuaMethod("unbind", Lua_UnBind),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("transform", get_transform, null),
            new LuaField("gameObject", get_gameObject, null),
            new LuaField("tag", get_tag, set_tag),
            new LuaField("isNil", get_isNil, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Component", typeof(Component), regs, fields, typeof(Object));
    }
Esempio n. 18
0
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("GetTypeCode", GetTypeCode),
			new LuaMethod("GetValues", GetValues),
			new LuaMethod("GetNames", GetNames),
			new LuaMethod("GetName", GetName),
			new LuaMethod("IsDefined", IsDefined),
			new LuaMethod("GetUnderlyingType", GetUnderlyingType),
			new LuaMethod("Parse", Parse),
			new LuaMethod("CompareTo", CompareTo),
			new LuaMethod("ToString", ToString),
			new LuaMethod("ToObject", ToObject),
			new LuaMethod("Format", Format),
			new LuaMethod("GetHashCode", GetHashCode),
			new LuaMethod("Equals", Equals),
			new LuaMethod("New", _CreateEnum),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__tostring", Lua_ToString),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
		};

		LuaScriptMgr.RegisterLib(L, "System.Enum", typeof(Enum), regs, fields, null);
	}
Esempio n. 19
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("BeginLoad", BeginLoad),
            new LuaMethod("RemapVariantName", RemapVariantName),
            new LuaMethod("New", _CreateCTransport),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("key", get_key, set_key),
            new LuaField("m_AssetBundleManifest", get_m_AssetBundleManifest, set_m_AssetBundleManifest),
            new LuaField("OnProcess", get_OnProcess, set_OnProcess),
            new LuaField("OnComplete", get_OnComplete, set_OnComplete),
            new LuaField("OnError", get_OnError, set_OnError),
            new LuaField("isFree", get_isFree, null),
            new LuaField("req", get_req, null),
            new LuaField("Variants", get_Variants, set_Variants),
        };

        LuaScriptMgr.RegisterLib(L, "CTransport", typeof(CTransport), regs, fields, typeof(MonoBehaviour));
    }
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("CreateFromMemory", CreateFromMemory),
			new LuaMethod("CreateFromMemoryImmediate", CreateFromMemoryImmediate),
			new LuaMethod("CreateFromFile", CreateFromFile),
			new LuaMethod("Contains", Contains),
			new LuaMethod("LoadAsset", LoadAsset),
			new LuaMethod("LoadAssetAsync", LoadAssetAsync),
			new LuaMethod("LoadAssetWithSubAssets", LoadAssetWithSubAssets),
			new LuaMethod("LoadAssetWithSubAssetsAsync", LoadAssetWithSubAssetsAsync),
			new LuaMethod("LoadAllAssets", LoadAllAssets),
			new LuaMethod("LoadAllAssetsAsync", LoadAllAssetsAsync),
			new LuaMethod("Unload", Unload),
			new LuaMethod("GetAllAssetNames", GetAllAssetNames),
			new LuaMethod("GetAllScenePaths", GetAllScenePaths),
			new LuaMethod("New", _CreateAssetBundle),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("mainAsset", get_mainAsset, null),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.AssetBundle", typeof(AssetBundle), regs, fields, typeof(Object));
	}
Esempio n. 21
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Equals", Equals),
            new LuaMethod("GetHashCode", GetHashCode),
            new LuaMethod("GetInstanceID", GetInstanceID),
            new LuaMethod("Instantiate", Instantiate),
            new LuaMethod("FindObjectsOfType", FindObjectsOfType),
            new LuaMethod("FindObjectOfType", FindObjectOfType),
            new LuaMethod("DontDestroyOnLoad", DontDestroyOnLoad),
            new LuaMethod("ToString", ToString),
            new LuaMethod("DestroyObject", DestroyObject),
            new LuaMethod("DestroyImmediate", DestroyImmediate),
            new LuaMethod("Destroy", Destroy),
            new LuaMethod("New", _CreateObject),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__tostring", Lua_ToString),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("name", get_name, set_name),
            new LuaField("hideFlags", get_hideFlags, set_hideFlags),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Object", typeof(Object), regs, fields, typeof(object));
    }
Esempio n. 22
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("DrawMesh", DrawMesh),
            new LuaMethod("DrawMeshNow", DrawMeshNow),
            new LuaMethod("DrawProcedural", DrawProcedural),
            new LuaMethod("DrawProceduralIndirect", DrawProceduralIndirect),
            new LuaMethod("DrawTexture", DrawTexture),
            new LuaMethod("ExecuteCommandBuffer", ExecuteCommandBuffer),
            new LuaMethod("Blit", Blit),
            new LuaMethod("BlitMultiTap", BlitMultiTap),
            new LuaMethod("SetRandomWriteTarget", SetRandomWriteTarget),
            new LuaMethod("ClearRandomWriteTargets", ClearRandomWriteTargets),
            new LuaMethod("SetRenderTarget", SetRenderTarget),
            new LuaMethod("New", _CreateGraphics),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("activeColorBuffer", get_activeColorBuffer, null),
            new LuaField("activeDepthBuffer", get_activeDepthBuffer, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Graphics", typeof(Graphics), regs, fields, typeof(object));
    }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("New", _CreateSimpleFramework_AppConst),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("DebugMode", get_DebugMode, set_DebugMode),
            new LuaField("UpdateMode", get_UpdateMode, set_UpdateMode),
            new LuaField("TimerInterval", get_TimerInterval, set_TimerInterval),
            new LuaField("GameFrameRate", get_GameFrameRate, set_GameFrameRate),
            new LuaField("UsePbc", get_UsePbc, set_UsePbc),
            new LuaField("UseLpeg", get_UseLpeg, set_UseLpeg),
            new LuaField("UsePbLua", get_UsePbLua, set_UsePbLua),
            new LuaField("UseCJson", get_UseCJson, set_UseCJson),
            new LuaField("LuaEncode", get_LuaEncode, set_LuaEncode),
            new LuaField("UserId", get_UserId, set_UserId),
            new LuaField("AppName", get_AppName, set_AppName),
            new LuaField("AppPrefix", get_AppPrefix, set_AppPrefix),
            new LuaField("ExtName", get_ExtName, set_ExtName),
            new LuaField("AssetDirname", get_AssetDirname, set_AssetDirname),
            new LuaField("WebUrl", get_WebUrl, set_WebUrl),
            new LuaField("SocketPort", get_SocketPort, set_SocketPort),
            new LuaField("SocketAddress", get_SocketAddress, set_SocketAddress),
        };

        LuaScriptMgr.RegisterLib(L, "SimpleFramework.AppConst", typeof(SimpleFramework.AppConst), regs, fields, typeof(object));
    }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("New", _CreateAnimationEvent),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("stringParameter", get_stringParameter, set_stringParameter),
            new LuaField("floatParameter", get_floatParameter, set_floatParameter),
            new LuaField("intParameter", get_intParameter, set_intParameter),
            new LuaField("objectReferenceParameter", get_objectReferenceParameter, set_objectReferenceParameter),
            new LuaField("functionName", get_functionName, set_functionName),
            new LuaField("time", get_time, set_time),
            new LuaField("messageOptions", get_messageOptions, set_messageOptions),
            new LuaField("isFiredByLegacy", get_isFiredByLegacy, null),
            new LuaField("isFiredByAnimator", get_isFiredByAnimator, null),
            new LuaField("animationState", get_animationState, null),
            new LuaField("animatorStateInfo", get_animatorStateInfo, null),
            new LuaField("animatorClipInfo", get_animatorClipInfo, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.AnimationEvent", typeof(AnimationEvent), regs, fields, typeof(object));
    }
Esempio n. 25
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("GetHashCode", GetHashCode),
            new LuaMethod("Equals", Equals),
            new LuaMethod("New", _CreateBoneWeight),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("weight0", get_weight0, set_weight0),
            new LuaField("weight1", get_weight1, set_weight1),
            new LuaField("weight2", get_weight2, set_weight2),
            new LuaField("weight3", get_weight3, set_weight3),
            new LuaField("boneIndex0", get_boneIndex0, set_boneIndex0),
            new LuaField("boneIndex1", get_boneIndex1, set_boneIndex1),
            new LuaField("boneIndex2", get_boneIndex2, set_boneIndex2),
            new LuaField("boneIndex3", get_boneIndex3, set_boneIndex3),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.BoneWeight", typeof(BoneWeight), regs, fields, null);
    }
Esempio n. 26
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("OverlapPoint", OverlapPoint),
            new LuaMethod("IsTouching", IsTouching),
            new LuaMethod("IsTouchingLayers", IsTouchingLayers),
            new LuaMethod("New", _CreateCollider2D),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("isTrigger", get_isTrigger, set_isTrigger),
            new LuaField("usedByEffector", get_usedByEffector, set_usedByEffector),
            new LuaField("offset", get_offset, set_offset),
            new LuaField("attachedRigidbody", get_attachedRigidbody, null),
            new LuaField("shapeCount", get_shapeCount, null),
            new LuaField("bounds", get_bounds, null),
            new LuaField("sharedMaterial", get_sharedMaterial, set_sharedMaterial),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Collider2D", typeof(Collider2D), regs, fields, typeof(Behaviour));
    }
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("GetLocalCorners", GetLocalCorners),
			new LuaMethod("GetWorldCorners", GetWorldCorners),
			new LuaMethod("SetInsetAndSizeFromParentEdge", SetInsetAndSizeFromParentEdge),
			new LuaMethod("SetSizeWithCurrentAnchors", SetSizeWithCurrentAnchors),
			new LuaMethod("New", _CreateRectTransform),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("rect", get_rect, null),
			new LuaField("anchorMin", get_anchorMin, set_anchorMin),
			new LuaField("anchorMax", get_anchorMax, set_anchorMax),
			new LuaField("anchoredPosition3D", get_anchoredPosition3D, set_anchoredPosition3D),
			new LuaField("anchoredPosition", get_anchoredPosition, set_anchoredPosition),
			new LuaField("sizeDelta", get_sizeDelta, set_sizeDelta),
			new LuaField("pivot", get_pivot, set_pivot),
			new LuaField("offsetMin", get_offsetMin, set_offsetMin),
			new LuaField("offsetMax", get_offsetMax, set_offsetMax),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.RectTransform", typeof(RectTransform), regs, fields, typeof(Transform));
	}
Esempio n. 28
0
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("DrawLine", DrawLine),
			new LuaMethod("DrawRay", DrawRay),
			new LuaMethod("Break", Break),
			new LuaMethod("DebugBreak", DebugBreak),
			new LuaMethod("Log", Log),
			new LuaMethod("LogFormat", LogFormat),
			new LuaMethod("LogError", LogError),
			new LuaMethod("LogErrorFormat", LogErrorFormat),
			new LuaMethod("ClearDeveloperConsole", ClearDeveloperConsole),
			new LuaMethod("LogException", LogException),
			new LuaMethod("LogWarning", LogWarning),
			new LuaMethod("LogWarningFormat", LogWarningFormat),
			new LuaMethod("Assert", Assert),
			new LuaMethod("AssertFormat", AssertFormat),
			new LuaMethod("LogAssertion", LogAssertion),
			new LuaMethod("LogAssertionFormat", LogAssertionFormat),
			new LuaMethod("New", _CreateDebug),
			new LuaMethod("GetClassType", GetClassType),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("logger", get_logger, null),
			new LuaField("developerConsoleVisible", get_developerConsoleVisible, set_developerConsoleVisible),
			new LuaField("isDebugBuild", get_isDebugBuild, null),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.Debug", typeof(Debug), regs, fields, typeof(object));
	}
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("SimpleMove", SimpleMove),
			new LuaMethod("Move", Move),
			new LuaMethod("New", _CreateCharacterController),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("isGrounded", get_isGrounded, null),
			new LuaField("velocity", get_velocity, null),
			new LuaField("collisionFlags", get_collisionFlags, null),
			new LuaField("radius", get_radius, set_radius),
			new LuaField("height", get_height, set_height),
			new LuaField("center", get_center, set_center),
			new LuaField("slopeLimit", get_slopeLimit, set_slopeLimit),
			new LuaField("stepOffset", get_stepOffset, set_stepOffset),
			new LuaField("detectCollisions", get_detectCollisions, set_detectCollisions),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.CharacterController", typeof(CharacterController), regs, fields, typeof(Collider));
	}
Esempio n. 30
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("SetGlobalAnisotropicFilteringLimits", SetGlobalAnisotropicFilteringLimits),
            new LuaMethod("GetNativeTexturePtr", GetNativeTexturePtr),
            new LuaMethod("New", _CreateTexture),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("masterTextureLimit", get_masterTextureLimit, set_masterTextureLimit),
            new LuaField("anisotropicFiltering", get_anisotropicFiltering, set_anisotropicFiltering),
            new LuaField("width", get_width, set_width),
            new LuaField("height", get_height, set_height),
            new LuaField("filterMode", get_filterMode, set_filterMode),
            new LuaField("anisoLevel", get_anisoLevel, set_anisoLevel),
            new LuaField("wrapMode", get_wrapMode, set_wrapMode),
            new LuaField("mipMapBias", get_mipMapBias, set_mipMapBias),
            new LuaField("texelSize", get_texelSize, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Texture", typeof(Texture), regs, fields, typeof(Object));
    }
Esempio n. 31
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Int", Int),
            new LuaMethod("Float", Float),
            new LuaMethod("Long", Long),
            new LuaMethod("Random", Random),
            new LuaMethod("Uid", Uid),
            new LuaMethod("GetTime", GetTime),
            new LuaMethod("Child", Child),
            new LuaMethod("Peer", Peer),
            new LuaMethod("Vibrate", Vibrate),
            new LuaMethod("Encode", Encode),
            new LuaMethod("Decode", Decode),
            new LuaMethod("IsNumeric", IsNumeric),
            new LuaMethod("HashToMD5Hex", HashToMD5Hex),
            new LuaMethod("md5", md5),
            new LuaMethod("md5file", md5file),
            new LuaMethod("ClearChild", ClearChild),
            new LuaMethod("GetKey", GetKey),
            new LuaMethod("GetInt", GetInt),
            new LuaMethod("HasKey", HasKey),
            new LuaMethod("SetInt", SetInt),
            new LuaMethod("GetString", GetString),
            new LuaMethod("SetString", SetString),
            new LuaMethod("RemoveData", RemoveData),
            new LuaMethod("ClearMemory", ClearMemory),
            new LuaMethod("IsNumber", IsNumber),
            new LuaMethod("GetFileText", GetFileText),
            new LuaMethod("AppContentPath", AppContentPath),
            new LuaMethod("LuaPath", LuaPath),
            new LuaMethod("SearchLuaPath", SearchLuaPath),
            new LuaMethod("AddLuaPath", AddLuaPath),
            new LuaMethod("RemoveLuaPath", RemoveLuaPath),
            new LuaMethod("Log", Log),
            new LuaMethod("LogWarning", LogWarning),
            new LuaMethod("LogError", LogError),
            new LuaMethod("LoadAsset", LoadAsset),
            new LuaMethod("LoadObject", LoadObject),
            new LuaMethod("AddComponent", AddComponent),
            new LuaMethod("LoadPrefab", LoadPrefab),
            new LuaMethod("CallMethod", CallMethod),
            new LuaMethod("CheckEnvironment", CheckEnvironment),
            new LuaMethod("DelayToInvokeDo", DelayToInvokeDo),
            new LuaMethod("New", _CreateSimpleFramework_Util),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("DataPath", get_DataPath, null),
            new LuaField("NetAvailable", get_NetAvailable, null),
            new LuaField("IsWifi", get_IsWifi, null),
            new LuaField("isLogin", get_isLogin, null),
            new LuaField("isMain", get_isMain, null),
            new LuaField("isFight", get_isFight, null),
        };

        LuaScriptMgr.RegisterLib(L, "SimpleFramework.Util", typeof(SimpleFramework.Util), regs, fields, typeof(object));
    }
Esempio n. 32
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Slerp", Slerp),
            new LuaMethod("SlerpUnclamped", SlerpUnclamped),
            new LuaMethod("OrthoNormalize", OrthoNormalize),
            new LuaMethod("RotateTowards", RotateTowards),
            new LuaMethod("Lerp", Lerp),
            new LuaMethod("LerpUnclamped", LerpUnclamped),
            new LuaMethod("MoveTowards", MoveTowards),
            new LuaMethod("SmoothDamp", SmoothDamp),
            new LuaMethod("get_Item", get_Item),
            new LuaMethod("set_Item", set_Item),
            new LuaMethod("Set", Set),
            new LuaMethod("Scale", Scale),
            new LuaMethod("Cross", Cross),
            new LuaMethod("GetHashCode", GetHashCode),
            new LuaMethod("Equals", Equals),
            new LuaMethod("Reflect", Reflect),
            new LuaMethod("Normalize", Normalize),
            new LuaMethod("Dot", Dot),
            new LuaMethod("Project", Project),
            new LuaMethod("ProjectOnPlane", ProjectOnPlane),
            new LuaMethod("Angle", Angle),
            new LuaMethod("SignedAngle", SignedAngle),
            new LuaMethod("Distance", Distance),
            new LuaMethod("ClampMagnitude", ClampMagnitude),
            new LuaMethod("Magnitude", Magnitude),
            new LuaMethod("SqrMagnitude", SqrMagnitude),
            new LuaMethod("Min", Min),
            new LuaMethod("Max", Max),
            new LuaMethod("ToString", ToString),
            new LuaMethod("New", _CreateVector3),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__tostring", Lua_ToString),
            new LuaMethod("__add", Lua_Add),
            new LuaMethod("__sub", Lua_Sub),
            new LuaMethod("__mul", Lua_Mul),
            new LuaMethod("__div", Lua_Div),
            new LuaMethod("__eq", Lua_Eq),
            new LuaMethod("__unm", Lua_Neg),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("kEpsilon", get_kEpsilon, null),
            new LuaField("x", get_x, set_x),
            new LuaField("y", get_y, set_y),
            new LuaField("z", get_z, set_z),
            new LuaField("normalized", get_normalized, null),
            new LuaField("magnitude", get_magnitude, null),
            new LuaField("sqrMagnitude", get_sqrMagnitude, null),
            new LuaField("zero", get_zero, null),
            new LuaField("one", get_one, null),
            new LuaField("forward", get_forward, null),
            new LuaField("back", get_back, null),
            new LuaField("up", get_up, null),
            new LuaField("down", get_down, null),
            new LuaField("left", get_left, null),
            new LuaField("right", get_right, null),
            new LuaField("positiveInfinity", get_positiveInfinity, null),
            new LuaField("negativeInfinity", get_negativeInfinity, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Vector3", typeof(Vector3), regs, fields, null);
    }
 public static void Register(IntPtr L)
 {
     LuaMethod[] regs   = new LuaMethod[] { new LuaMethod("setUserInfo", new LuaCSFunction(com_tencent_pandora_CUserDataWrap.setUserInfo)), new LuaMethod("SetPara", new LuaCSFunction(com_tencent_pandora_CUserDataWrap.SetPara)), new LuaMethod("New", new LuaCSFunction(com_tencent_pandora_CUserDataWrap._Createcom_tencent_pandora_CUserData)), new LuaMethod("GetClassType", new LuaCSFunction(com_tencent_pandora_CUserDataWrap.GetClassType)) };
     LuaField[]  fields = new LuaField[] { new LuaField("user", new LuaCSFunction(com_tencent_pandora_CUserDataWrap.get_user), new LuaCSFunction(com_tencent_pandora_CUserDataWrap.set_user)) };
     LuaScriptMgr.RegisterLib(L, "com.tencent.pandora.CUserData", typeof(CUserData), regs, fields, typeof(object));
 }
 public static void Register(IntPtr L)
 {
     LuaMethod[] regs   = new LuaMethod[] { new LuaMethod("DefaultCenter", new LuaCSFunction(com_tencent_pandora_NotificationCenterWrap.DefaultCenter)), new LuaMethod("AddObserver", new LuaCSFunction(com_tencent_pandora_NotificationCenterWrap.AddObserver)), new LuaMethod("RemoveObserver", new LuaCSFunction(com_tencent_pandora_NotificationCenterWrap.RemoveObserver)), new LuaMethod("PostNotification", new LuaCSFunction(com_tencent_pandora_NotificationCenterWrap.PostNotification)), new LuaMethod("Clean", new LuaCSFunction(com_tencent_pandora_NotificationCenterWrap.Clean)), new LuaMethod("New", new LuaCSFunction(com_tencent_pandora_NotificationCenterWrap._Createcom_tencent_pandora_NotificationCenter)), new LuaMethod("GetClassType", new LuaCSFunction(com_tencent_pandora_NotificationCenterWrap.GetClassType)), new LuaMethod("__eq", new LuaCSFunction(com_tencent_pandora_NotificationCenterWrap.Lua_Eq)) };
     LuaField[]  fields = new LuaField[] { new LuaField("blPLNewsOpen", new LuaCSFunction(com_tencent_pandora_NotificationCenterWrap.get_blPLNewsOpen), new LuaCSFunction(com_tencent_pandora_NotificationCenterWrap.set_blPLNewsOpen)), new LuaField("blNewsOpen", new LuaCSFunction(com_tencent_pandora_NotificationCenterWrap.get_blNewsOpen), new LuaCSFunction(com_tencent_pandora_NotificationCenterWrap.set_blNewsOpen)) };
     LuaScriptMgr.RegisterLib(L, "com.tencent.pandora.NotificationCenter", typeof(NotificationCenter), regs, fields, typeof(MonoBehaviour));
 }
Esempio n. 35
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Update", Update),
            new LuaMethod("Prepare", Prepare),
            new LuaMethod("GetSymbol", GetSymbol),
            new LuaMethod("GetGlyphWidth", GetGlyphWidth),
            new LuaMethod("GetGlyph", GetGlyph),
            new LuaMethod("ParseAlpha", ParseAlpha),
            new LuaMethod("ParseColor", ParseColor),
            new LuaMethod("ParseColor24", ParseColor24),
            new LuaMethod("ParseColor32", ParseColor32),
            new LuaMethod("EncodeColor", EncodeColor),
            new LuaMethod("EncodeAlpha", EncodeAlpha),
            new LuaMethod("EncodeColor24", EncodeColor24),
            new LuaMethod("EncodeColor32", EncodeColor32),
            new LuaMethod("ParseSymbol", ParseSymbol),
            new LuaMethod("IsHex", IsHex),
            new LuaMethod("StripSymbols", StripSymbols),
            new LuaMethod("Align", Align),
            new LuaMethod("GetExactCharacterIndex", GetExactCharacterIndex),
            new LuaMethod("GetApproximateCharacterIndex", GetApproximateCharacterIndex),
            new LuaMethod("EndLine", EndLine),
            new LuaMethod("CalculatePrintedSize", CalculatePrintedSize),
            new LuaMethod("CalculateOffsetToFit", CalculateOffsetToFit),
            new LuaMethod("GetEndOfLineThatFits", GetEndOfLineThatFits),
            new LuaMethod("WrapText", WrapText),
            new LuaMethod("Print", Print),
            new LuaMethod("PrintApproximateCharacterPositions", PrintApproximateCharacterPositions),
            new LuaMethod("PrintExactCharacterPositions", PrintExactCharacterPositions),
            new LuaMethod("PrintCaretAndSelection", PrintCaretAndSelection),
            new LuaMethod("ReplaceLink", ReplaceLink),
            new LuaMethod("InsertHyperlink", InsertHyperlink),
            new LuaMethod("ReplaceLinks", ReplaceLinks),
            new LuaMethod("New", _CreateNGUIText),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("bitmapFont", get_bitmapFont, set_bitmapFont),
            new LuaField("dynamicFont", get_dynamicFont, set_dynamicFont),
            new LuaField("glyph", get_glyph, set_glyph),
            new LuaField("fontSize", get_fontSize, set_fontSize),
            new LuaField("fontScale", get_fontScale, set_fontScale),
            new LuaField("pixelDensity", get_pixelDensity, set_pixelDensity),
            new LuaField("fontStyle", get_fontStyle, set_fontStyle),
            new LuaField("alignment", get_alignment, set_alignment),
            new LuaField("tint", get_tint, set_tint),
            new LuaField("rectWidth", get_rectWidth, set_rectWidth),
            new LuaField("rectHeight", get_rectHeight, set_rectHeight),
            new LuaField("regionWidth", get_regionWidth, set_regionWidth),
            new LuaField("regionHeight", get_regionHeight, set_regionHeight),
            new LuaField("maxLines", get_maxLines, set_maxLines),
            new LuaField("gradient", get_gradient, set_gradient),
            new LuaField("gradientBottom", get_gradientBottom, set_gradientBottom),
            new LuaField("gradientTop", get_gradientTop, set_gradientTop),
            new LuaField("encoding", get_encoding, set_encoding),
            new LuaField("spacingX", get_spacingX, set_spacingX),
            new LuaField("spacingY", get_spacingY, set_spacingY),
            new LuaField("premultiply", get_premultiply, set_premultiply),
            new LuaField("symbolStyle", get_symbolStyle, set_symbolStyle),
            new LuaField("finalSize", get_finalSize, set_finalSize),
            new LuaField("finalSpacingX", get_finalSpacingX, set_finalSpacingX),
            new LuaField("finalLineHeight", get_finalLineHeight, set_finalLineHeight),
            new LuaField("baseline", get_baseline, set_baseline),
            new LuaField("useSymbols", get_useSymbols, set_useSymbols),
        };

        LuaScriptMgr.RegisterLib(L, "NGUIText", typeof(NGUIText), regs, fields, null);
    }
 public static void Register(IntPtr L)
 {
     LuaMethod[] regs   = new LuaMethod[] { new LuaMethod("GetImage", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.GetImage)), new LuaMethod("GetImageOfMuti", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.GetImageOfMuti)), new LuaMethod("IsImgDownSucc", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.IsImgDownSucc)), new LuaMethod("isImageCached", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.isImageCached)), new LuaMethod("getImageCacheFile", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.getImageCacheFile)), new LuaMethod("SetLuaFileName", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.SetLuaFileName)), new LuaMethod("PreDownImg", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.PreDownImg)), new LuaMethod("ShowImageByUrl", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.ShowImageByUrl)), new LuaMethod("downloadTotalCnt", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.downloadTotalCnt)), new LuaMethod("BreakCoroutine", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.BreakCoroutine)), new LuaMethod("GetTextureIO", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.GetTextureIO)), new LuaMethod("CacheImage", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.CacheImage)), new LuaMethod("New", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap._Createcom_tencent_pandora_GetNewsImage)), new LuaMethod("GetClassType", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.GetClassType)), new LuaMethod("__eq", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.Lua_Eq)) };
     LuaField[]  fields = new LuaField[] { new LuaField("gUItexture", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.get_gUItexture), new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.set_gUItexture)), new LuaField("gUItextures", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.get_gUItextures), new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.set_gUItextures)), new LuaField("waitTimeOut", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.get_waitTimeOut), new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.set_waitTimeOut)), new LuaField("iSourceImgWidth", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.get_iSourceImgWidth), new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.set_iSourceImgWidth)), new LuaField("iSourceImgHeight", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.get_iSourceImgHeight), new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.set_iSourceImgHeight)), new LuaField("isLoading", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.get_isLoading), new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.set_isLoading)), new LuaField("isResize", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.get_isResize), new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.set_isResize)), new LuaField("ListPreToLoading", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.get_ListPreToLoading), new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.set_ListPreToLoading)), new LuaField("dicSuccImgs", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.get_dicSuccImgs), new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.set_dicSuccImgs)), new LuaField("dicFailImgs", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.get_dicFailImgs), new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.set_dicFailImgs)), new LuaField("m_nDownLoadNumber", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.get_m_nDownLoadNumber), new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.set_m_nDownLoadNumber)), new LuaField("picDic", new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.get_picDic), new LuaCSFunction(com_tencent_pandora_GetNewsImageWrap.set_picDic)) };
     LuaScriptMgr.RegisterLib(L, "com.tencent.pandora.GetNewsImage", typeof(GetNewsImage), regs, fields, typeof(MonoBehaviour));
 }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("PathLength", PathLength),
            new LuaMethod("PathGetPoint", PathGetPoint),
            new LuaMethod("IsPlaying", IsPlaying),
            new LuaMethod("IsInitialized", IsInitialized),
            new LuaMethod("IsComplete", IsComplete),
            new LuaMethod("IsBackwards", IsBackwards),
            new LuaMethod("IsActive", IsActive),
            new LuaMethod("ElapsedDirectionalPercentage", ElapsedDirectionalPercentage),
            new LuaMethod("ElapsedPercentage", ElapsedPercentage),
            new LuaMethod("Elapsed", Elapsed),
            new LuaMethod("Duration", Duration),
            new LuaMethod("Delay", Delay),
            new LuaMethod("CompletedLoops", CompletedLoops),
            new LuaMethod("WaitForStart", WaitForStart),
            new LuaMethod("WaitForPosition", WaitForPosition),
            new LuaMethod("WaitForElapsedLoops", WaitForElapsedLoops),
            new LuaMethod("WaitForKill", WaitForKill),
            new LuaMethod("WaitForRewind", WaitForRewind),
            new LuaMethod("WaitForCompletion", WaitForCompletion),
            new LuaMethod("GotoWaypoint", GotoWaypoint),
            new LuaMethod("TogglePause", TogglePause),
            new LuaMethod("Rewind", Rewind),
            new LuaMethod("Restart", Restart),
            new LuaMethod("PlayForward", PlayForward),
            new LuaMethod("PlayBackwards", PlayBackwards),
            new LuaMethod("Play", Play),
            new LuaMethod("Pause", Pause),
            new LuaMethod("Kill", Kill),
            new LuaMethod("Goto", Goto),
            new LuaMethod("ForceInit", ForceInit),
            new LuaMethod("Flip", Flip),
            new LuaMethod("Complete", Complete),
            new LuaMethod("SetSpeedBased", SetSpeedBased),
            new LuaMethod("SetRelative", SetRelative),
            new LuaMethod("SetDelay", SetDelay),
            new LuaMethod("SetAs", SetAs),
            new LuaMethod("OnWaypointChange", OnWaypointChange),
            new LuaMethod("OnKill", OnKill),
            new LuaMethod("OnComplete", OnComplete),
            new LuaMethod("OnStepComplete", OnStepComplete),
            new LuaMethod("OnUpdate", OnUpdate),
            new LuaMethod("OnRewind", OnRewind),
            new LuaMethod("OnPause", OnPause),
            new LuaMethod("OnPlay", OnPlay),
            new LuaMethod("OnStart", OnStart),
            new LuaMethod("SetUpdate", SetUpdate),
            new LuaMethod("SetRecyclable", SetRecyclable),
            new LuaMethod("SetEase", SetEase),
            new LuaMethod("SetLoops", SetLoops),
            new LuaMethod("SetTarget", SetTarget),
            new LuaMethod("SetId", SetId),
            new LuaMethod("SetAutoKill", SetAutoKill),
            new LuaMethod("New", _CreateDG_Tweening_Tween),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("timeScale", get_timeScale, set_timeScale),
            new LuaField("isBackwards", get_isBackwards, set_isBackwards),
            new LuaField("id", get_id, set_id),
            new LuaField("target", get_target, set_target),
            new LuaField("easeOvershootOrAmplitude", get_easeOvershootOrAmplitude, set_easeOvershootOrAmplitude),
            new LuaField("easePeriod", get_easePeriod, set_easePeriod),
            new LuaField("fullPosition", get_fullPosition, set_fullPosition),
        };

        LuaScriptMgr.RegisterLib(L, "DG.Tweening.Tween", typeof(DG.Tweening.Tween), regs, fields, typeof(DG.Tweening.Core.ABSSequentiable));
    }
Esempio n. 38
0
 public static void Register(IntPtr L)
 {
     LuaMethod[] regs = new LuaMethod[]
     {
         new LuaMethod("Init", new LuaCSFunction(HotfixWrap.Init)),
         new LuaMethod("LuaWait", new LuaCSFunction(HotfixWrap.LuaWait)),
         new LuaMethod("LuaLoop", new LuaCSFunction(HotfixWrap.LuaLoop)),
         new LuaMethod("RemoveTimer", new LuaCSFunction(HotfixWrap.RemoveTimer)),
         new LuaMethod("SendLuaPtc", new LuaCSFunction(HotfixWrap.SendLuaPtc)),
         new LuaMethod("SendLuaBytePtc", new LuaCSFunction(HotfixWrap.SendLuaBytePtc)),
         new LuaMethod("RegistNotifyID", new LuaCSFunction(HotfixWrap.RegistNotifyID)),
         new LuaMethod("RegistPtc", new LuaCSFunction(HotfixWrap.RegistPtc)),
         new LuaMethod("RegisterLuaRPC", new LuaCSFunction(HotfixWrap.RegisterLuaRPC)),
         new LuaMethod("SendLuaRPC", new LuaCSFunction(HotfixWrap.SendLuaRPC)),
         new LuaMethod("SendLuaRPCWithReq", new LuaCSFunction(HotfixWrap.SendLuaRPCWithReq)),
         new LuaMethod("SendLuaByteRPC", new LuaCSFunction(HotfixWrap.SendLuaByteRPC)),
         new LuaMethod("SendLuaByteRPCWithReq", new LuaCSFunction(HotfixWrap.SendLuaByteRPCWithReq)),
         new LuaMethod("LuaMessageBoxConfirm", new LuaCSFunction(HotfixWrap.LuaMessageBoxConfirm)),
         new LuaMethod("LuaShowSystemTip", new LuaCSFunction(HotfixWrap.LuaShowSystemTip)),
         new LuaMethod("LuaShowSystemTipErrCode", new LuaCSFunction(HotfixWrap.LuaShowSystemTipErrCode)),
         new LuaMethod("LuaShowItemAccess", new LuaCSFunction(HotfixWrap.LuaShowItemAccess)),
         new LuaMethod("LuaShowItemTooltipDialog", new LuaCSFunction(HotfixWrap.LuaShowItemTooltipDialog)),
         new LuaMethod("LuaShowDetailTooltipDialog", new LuaCSFunction(HotfixWrap.LuaShowDetailTooltipDialog)),
         new LuaMethod("LuaShowItemTooltipDialogByUID", new LuaCSFunction(HotfixWrap.LuaShowItemTooltipDialogByUID)),
         new LuaMethod("SetPlayer", new LuaCSFunction(HotfixWrap.SetPlayer)),
         new LuaMethod("GetPlayer", new LuaCSFunction(HotfixWrap.GetPlayer)),
         new LuaMethod("CallPlayerMethod", new LuaCSFunction(HotfixWrap.CallPlayerMethod)),
         new LuaMethod("SetDocumentMember", new LuaCSFunction(HotfixWrap.SetDocumentMember)),
         new LuaMethod("GetDocumentMember", new LuaCSFunction(HotfixWrap.GetDocumentMember)),
         new LuaMethod("GetGetDocumentLongMember", new LuaCSFunction(HotfixWrap.GetGetDocumentLongMember)),
         new LuaMethod("GetDocumentStaticMember", new LuaCSFunction(HotfixWrap.GetDocumentStaticMember)),
         new LuaMethod("CallDocumentMethod", new LuaCSFunction(HotfixWrap.CallDocumentMethod)),
         new LuaMethod("CallDocumentLongMethod", new LuaCSFunction(HotfixWrap.CallDocumentLongMethod)),
         new LuaMethod("CallDocumentStaticMethod", new LuaCSFunction(HotfixWrap.CallDocumentStaticMethod)),
         new LuaMethod("GetSingleMember", new LuaCSFunction(HotfixWrap.GetSingleMember)),
         new LuaMethod("GetSingleLongMember", new LuaCSFunction(HotfixWrap.GetSingleLongMember)),
         new LuaMethod("SetSingleMember", new LuaCSFunction(HotfixWrap.SetSingleMember)),
         new LuaMethod("CallSingleMethod", new LuaCSFunction(HotfixWrap.CallSingleMethod)),
         new LuaMethod("CallSingleLongMethod", new LuaCSFunction(HotfixWrap.CallSingleLongMethod)),
         new LuaMethod("GetEnumType", new LuaCSFunction(HotfixWrap.GetEnumType)),
         new LuaMethod("GetStringTable", new LuaCSFunction(HotfixWrap.GetStringTable)),
         new LuaMethod("GetGlobalString", new LuaCSFunction(HotfixWrap.GetGlobalString)),
         new LuaMethod("GetObjectString", new LuaCSFunction(HotfixWrap.GetObjectString)),
         new LuaMethod("GetLuaLong", new LuaCSFunction(HotfixWrap.GetLuaLong)),
         new LuaMethod("RefreshPlayerName", new LuaCSFunction(HotfixWrap.RefreshPlayerName)),
         new LuaMethod("OpenSys", new LuaCSFunction(HotfixWrap.OpenSys)),
         new LuaMethod("AttachSysRedPointRelative", new LuaCSFunction(HotfixWrap.AttachSysRedPointRelative)),
         new LuaMethod("AttachSysRedPointRelativeUI", new LuaCSFunction(HotfixWrap.AttachSysRedPointRelativeUI)),
         new LuaMethod("DetachSysRedPointRelative", new LuaCSFunction(HotfixWrap.DetachSysRedPointRelative)),
         new LuaMethod("DetachSysRedPointRelativeUI", new LuaCSFunction(HotfixWrap.DetachSysRedPointRelativeUI)),
         new LuaMethod("ForceUpdateSysRedPointImmediately", new LuaCSFunction(HotfixWrap.ForceUpdateSysRedPointImmediately)),
         new LuaMethod("GetSysRedPointState", new LuaCSFunction(HotfixWrap.GetSysRedPointState)),
         new LuaMethod("LuaDoFile", new LuaCSFunction(HotfixWrap.LuaDoFile)),
         new LuaMethod("LuaGetFunction", new LuaCSFunction(HotfixWrap.LuaGetFunction)),
         new LuaMethod("LuaTableBuffer", new LuaCSFunction(HotfixWrap.LuaTableBuffer)),
         new LuaMethod("LuaTableBin", new LuaCSFunction(HotfixWrap.LuaTableBin)),
         new LuaMethod("ReturnableStream", new LuaCSFunction(HotfixWrap.ReturnableStream)),
         new LuaMethod("ReadLong", new LuaCSFunction(HotfixWrap.ReadLong)),
         new LuaMethod("ReadFileSize", new LuaCSFunction(HotfixWrap.ReadFileSize)),
         new LuaMethod("CheckFileSize", new LuaCSFunction(HotfixWrap.CheckFileSize)),
         new LuaMethod("ReadRowSize", new LuaCSFunction(HotfixWrap.ReadRowSize)),
         new LuaMethod("CheckRowSize", new LuaCSFunction(HotfixWrap.CheckRowSize)),
         new LuaMethod("LuaProtoBuffer", new LuaCSFunction(HotfixWrap.LuaProtoBuffer)),
         new LuaMethod("LuaProtoBuffer1", new LuaCSFunction(HotfixWrap.LuaProtoBuffer1)),
         new LuaMethod("SetClickCallback", new LuaCSFunction(HotfixWrap.SetClickCallback)),
         new LuaMethod("SetPressCallback", new LuaCSFunction(HotfixWrap.SetPressCallback)),
         new LuaMethod("SetDragCallback", new LuaCSFunction(HotfixWrap.SetDragCallback)),
         new LuaMethod("SetSubmmitCallback", new LuaCSFunction(HotfixWrap.SetSubmmitCallback)),
         new LuaMethod("InitWrapContent", new LuaCSFunction(HotfixWrap.InitWrapContent)),
         new LuaMethod("SetWrapContentCount", new LuaCSFunction(HotfixWrap.SetWrapContentCount)),
         new LuaMethod("SetupPool", new LuaCSFunction(HotfixWrap.SetupPool)),
         new LuaMethod("DrawItemView", new LuaCSFunction(HotfixWrap.DrawItemView)),
         new LuaMethod("SetTexture", new LuaCSFunction(HotfixWrap.SetTexture)),
         new LuaMethod("DestoryTexture", new LuaCSFunction(HotfixWrap.DestoryTexture)),
         new LuaMethod("EnableMainDummy", new LuaCSFunction(HotfixWrap.EnableMainDummy)),
         new LuaMethod("SetMainDummy", new LuaCSFunction(HotfixWrap.SetMainDummy)),
         new LuaMethod("SetMainAnimation", new LuaCSFunction(HotfixWrap.SetMainAnimation)),
         new LuaMethod("ResetMainAnimation", new LuaCSFunction(HotfixWrap.ResetMainAnimation)),
         new LuaMethod("CreateCommonDummy", new LuaCSFunction(HotfixWrap.CreateCommonDummy)),
         new LuaMethod("SetDummyAnim", new LuaCSFunction(HotfixWrap.SetDummyAnim)),
         new LuaMethod("SetMainDummyAnim", new LuaCSFunction(HotfixWrap.SetMainDummyAnim)),
         new LuaMethod("DestroyDummy", new LuaCSFunction(HotfixWrap.DestroyDummy)),
         new LuaMethod("ParseSeq", new LuaCSFunction(HotfixWrap.ParseSeq)),
         new LuaMethod("TransInt64", new LuaCSFunction(HotfixWrap.TransInt64)),
         new LuaMethod("TansString", new LuaCSFunction(HotfixWrap.TansString)),
         new LuaMethod("OpInit64", new LuaCSFunction(HotfixWrap.OpInit64)),
         new LuaMethod("PrintBytes", new LuaCSFunction(HotfixWrap.PrintBytes)),
         new LuaMethod("New", new LuaCSFunction(HotfixWrap._CreateHotfix)),
         new LuaMethod("GetClassType", new LuaCSFunction(HotfixWrap.GetClassType))
     };
     LuaField[] fields = new LuaField[]
     {
         new LuaField("m_uiUtility", new LuaCSFunction(HotfixWrap.get_m_uiUtility), new LuaCSFunction(HotfixWrap.set_m_uiUtility)),
         new LuaField("luaExtion", new LuaCSFunction(HotfixWrap.get_luaExtion), null),
         new LuaField("GameSysMgr", new LuaCSFunction(HotfixWrap.get_GameSysMgr), null),
         new LuaField("onlineReTime", new LuaCSFunction(HotfixWrap.get_onlineReTime), null)
     };
     LuaScriptMgr.RegisterLib(L, "Hotfix", typeof(Hotfix), regs, fields, typeof(object));
 }
Esempio n. 39
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Int", Int),
            new LuaMethod("Float", Float),
            new LuaMethod("Long", Long),
            new LuaMethod("Random", Random),
            new LuaMethod("Uid", Uid),
            new LuaMethod("GetTime", GetTime),
            new LuaMethod("Child", Child),
            new LuaMethod("Peer", Peer),
            new LuaMethod("Vibrate", Vibrate),
            new LuaMethod("Encode", Encode),
            new LuaMethod("Decode", Decode),
            new LuaMethod("IsNumeric", IsNumeric),
            new LuaMethod("HashToMD5Hex", HashToMD5Hex),
            new LuaMethod("md5", md5),
            new LuaMethod("md5file", md5file),
            new LuaMethod("CompressFile", CompressFile),
            new LuaMethod("DecompressFile", DecompressFile),
            new LuaMethod("Compress", Compress),
            new LuaMethod("Decompress", Decompress),
            new LuaMethod("ClearChild", ClearChild),
            new LuaMethod("GetKey", GetKey),
            new LuaMethod("GetInt", GetInt),
            new LuaMethod("HasKey", HasKey),
            new LuaMethod("SetInt", SetInt),
            new LuaMethod("GetString", GetString),
            new LuaMethod("SetString", SetString),
            new LuaMethod("RemoveData", RemoveData),
            new LuaMethod("ClearMemory", ClearMemory),
            new LuaMethod("IsNumber", IsNumber),
            new LuaMethod("GetPlatformDirectory", GetPlatformDirectory),
            new LuaMethod("AppContentPath", AppContentPath),
            new LuaMethod("GetRelativePath", GetRelativePath),
            new LuaMethod("GetFileText", GetFileText),
            new LuaMethod("LuaPath", LuaPath),
            new LuaMethod("LuaAssetBundleAssetName", LuaAssetBundleAssetName),
            new LuaMethod("Log", Log),
            new LuaMethod("LogWarning", LogWarning),
            new LuaMethod("LogError", LogError),
            new LuaMethod("CheckRuntimeFile", CheckRuntimeFile),
            new LuaMethod("CallMethod", CallMethod),
            new LuaMethod("CallTableMethod", CallTableMethod),
            new LuaMethod("PushBufferToLua", PushBufferToLua),
            new LuaMethod("New", _CreateSimpleFramework_Util),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("DEBUG_MODEL", get_DEBUG_MODEL, set_DEBUG_MODEL),
            new LuaField("PlatformDirector", get_PlatformDirector, null),
            new LuaField("DataPath", get_DataPath, null),
            new LuaField("NetAvailable", get_NetAvailable, null),
            new LuaField("IsWifi", get_IsWifi, null),
            new LuaField("isLogin", get_isLogin, null),
            new LuaField("isMain", get_isMain, null),
            new LuaField("isFight", get_isFight, null),
        };

        LuaScriptMgr.RegisterLib(L, "SimpleFramework.Util", typeof(SimpleFramework.Util), regs, fields, typeof(MonoBehaviour));
    }
Esempio n. 40
0
 public static void Register(IntPtr L)
 {
     LuaMethod[] regs   = new LuaMethod[] { new LuaMethod("Equals", new LuaCSFunction(ObjectWrap.Equals)), new LuaMethod("GetHashCode", new LuaCSFunction(ObjectWrap.GetHashCode)), new LuaMethod("GetInstanceID", new LuaCSFunction(ObjectWrap.GetInstanceID)), new LuaMethod("Instantiate", new LuaCSFunction(ObjectWrap.Instantiate)), new LuaMethod("FindObjectsOfType", new LuaCSFunction(ObjectWrap.FindObjectsOfType)), new LuaMethod("FindObjectOfType", new LuaCSFunction(ObjectWrap.FindObjectOfType)), new LuaMethod("DontDestroyOnLoad", new LuaCSFunction(ObjectWrap.DontDestroyOnLoad)), new LuaMethod("ToString", new LuaCSFunction(ObjectWrap.ToString)), new LuaMethod("DestroyObject", new LuaCSFunction(ObjectWrap.DestroyObject)), new LuaMethod("DestroyImmediate", new LuaCSFunction(ObjectWrap.DestroyImmediate)), new LuaMethod("Destroy", new LuaCSFunction(ObjectWrap.Destroy)), new LuaMethod("New", new LuaCSFunction(ObjectWrap._CreateObject)), new LuaMethod("GetClassType", new LuaCSFunction(ObjectWrap.GetClassType)), new LuaMethod("__tostring", new LuaCSFunction(ObjectWrap.Lua_ToString)), new LuaMethod("__eq", new LuaCSFunction(ObjectWrap.Lua_Eq)) };
     LuaField[]  fields = new LuaField[] { new LuaField("name", new LuaCSFunction(ObjectWrap.get_name), new LuaCSFunction(ObjectWrap.set_name)), new LuaField("hideFlags", new LuaCSFunction(ObjectWrap.get_hideFlags), new LuaCSFunction(ObjectWrap.set_hideFlags)) };
     LuaScriptMgr.RegisterLib(L, "UnityEngine.Object", typeof(UnityEngine.Object), regs, fields, typeof(object));
 }
Esempio n. 41
0
 public static void Register(IntPtr L)
 {
     LuaMethod[] regs = new LuaMethod[] { new LuaMethod("Action_GameObject", new LuaCSFunction(com_tencent_pandora_DelegateFactoryWrap.Action_GameObject)), new LuaMethod("Action", new LuaCSFunction(com_tencent_pandora_DelegateFactoryWrap.Action)), new LuaMethod("UnityEngine_Events_UnityAction", new LuaCSFunction(com_tencent_pandora_DelegateFactoryWrap.UnityEngine_Events_UnityAction)), new LuaMethod("System_Reflection_MemberFilter", new LuaCSFunction(com_tencent_pandora_DelegateFactoryWrap.System_Reflection_MemberFilter)), new LuaMethod("System_Reflection_TypeFilter", new LuaCSFunction(com_tencent_pandora_DelegateFactoryWrap.System_Reflection_TypeFilter)), new LuaMethod("Action_bool", new LuaCSFunction(com_tencent_pandora_DelegateFactoryWrap.Action_bool)), new LuaMethod("Action_AssetBundle", new LuaCSFunction(com_tencent_pandora_DelegateFactoryWrap.Action_AssetBundle)), new LuaMethod("Action_WWW_string", new LuaCSFunction(com_tencent_pandora_DelegateFactoryWrap.Action_WWW_string)), new LuaMethod("Application_LogCallback", new LuaCSFunction(com_tencent_pandora_DelegateFactoryWrap.Application_LogCallback)), new LuaMethod("com_tencent_pandora_GetNewsImage_callbackFuc", new LuaCSFunction(com_tencent_pandora_DelegateFactoryWrap.com_tencent_pandora_GetNewsImage_callbackFuc)), new LuaMethod("com_tencent_pandora_GetNewsImage_Callback", new LuaCSFunction(com_tencent_pandora_DelegateFactoryWrap.com_tencent_pandora_GetNewsImage_Callback)), new LuaMethod("com_tencent_pandora_NetProxcy_CallBack", new LuaCSFunction(com_tencent_pandora_DelegateFactoryWrap.com_tencent_pandora_NetProxcy_CallBack)), new LuaMethod("Clear", new LuaCSFunction(com_tencent_pandora_DelegateFactoryWrap.Clear)), new LuaMethod("New", new LuaCSFunction(com_tencent_pandora_DelegateFactoryWrap._Createcom_tencent_pandora_DelegateFactory)), new LuaMethod("GetClassType", new LuaCSFunction(com_tencent_pandora_DelegateFactoryWrap.GetClassType)) };
     LuaScriptMgr.RegisterLib(L, "com.tencent.pandora.DelegateFactory", regs);
 }
Esempio n. 42
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("PlaySound", PlaySound),
            new LuaMethod("PlayFmod", PlayFmod),
            new LuaMethod("OpenURL", OpenURL),
            new LuaMethod("RandomRange", RandomRange),
            new LuaMethod("GetHierarchy", GetHierarchy),
            new LuaMethod("FindCameraForLayer", FindCameraForLayer),
            new LuaMethod("AddWidgetCollider", AddWidgetCollider),
            new LuaMethod("UpdateWidgetCollider", UpdateWidgetCollider),
            new LuaMethod("GetTypeName", GetTypeName),
            new LuaMethod("RegisterUndo", RegisterUndo),
            new LuaMethod("SetDirty", SetDirty),
            new LuaMethod("AddChild", AddChild),
            new LuaMethod("AttachChild", AttachChild),
            new LuaMethod("CalculateRaycastDepth", CalculateRaycastDepth),
            new LuaMethod("CalculateNextDepth", CalculateNextDepth),
            new LuaMethod("AdjustDepth", AdjustDepth),
            new LuaMethod("BringForward", BringForward),
            new LuaMethod("PushBack", PushBack),
            new LuaMethod("NormalizeDepths", NormalizeDepths),
            new LuaMethod("NormalizeWidgetDepths", NormalizeWidgetDepths),
            new LuaMethod("NormalizePanelDepths", NormalizePanelDepths),
            new LuaMethod("CreateUI", CreateUI),
            new LuaMethod("SetChildLayer", SetChildLayer),
            new LuaMethod("AddSprite", AddSprite),
            new LuaMethod("GetRoot", GetRoot),
            new LuaMethod("Destroy", Destroy),
            new LuaMethod("DestroyImmediate", DestroyImmediate),
            new LuaMethod("Broadcast", Broadcast),
            new LuaMethod("IsChild", IsChild),
            new LuaMethod("SetActive", SetActive),
            new LuaMethod("SetActiveChildren", SetActiveChildren),
            new LuaMethod("GetActive", GetActive),
            new LuaMethod("SetActiveSelf", SetActiveSelf),
            new LuaMethod("SetLayer", SetLayer),
            new LuaMethod("Round", Round),
            new LuaMethod("MakePixelPerfect", MakePixelPerfect),
            new LuaMethod("Save", Save),
            new LuaMethod("Load", Load),
            new LuaMethod("ApplyPMA", ApplyPMA),
            new LuaMethod("MarkParentAsChanged", MarkParentAsChanged),
            new LuaMethod("ParentPanelChanged", ParentPanelChanged),
            new LuaMethod("GetSides", GetSides),
            new LuaMethod("GetWorldCorners", GetWorldCorners),
            new LuaMethod("GetFuncName", GetFuncName),
            new LuaMethod("New", _CreateNGUITools),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("mEnableLoadingUpdate", get_mEnableLoadingUpdate, set_mEnableLoadingUpdate),
            new LuaField("soundVolume", get_soundVolume, set_soundVolume),
            new LuaField("fileAccess", get_fileAccess, null),
            new LuaField("clipboard", get_clipboard, set_clipboard),
        };

        LuaScriptMgr.RegisterLib(L, "NGUITools", typeof(NGUITools), regs, fields, null);
    }
Esempio n. 43
0
 public static void Register(IntPtr L)
 {
     LuaMethod[] regs   = new LuaMethod[] { new LuaMethod("Log", new LuaCSFunction(com_tencent_pandora_LoggerWrap.Log)), new LuaMethod("LogNetError", new LuaCSFunction(com_tencent_pandora_LoggerWrap.LogNetError)), new LuaMethod("LogCommInfo", new LuaCSFunction(com_tencent_pandora_LoggerWrap.LogCommInfo)), new LuaMethod("LogText", new LuaCSFunction(com_tencent_pandora_LoggerWrap.LogText)), new LuaMethod("LogNet", new LuaCSFunction(com_tencent_pandora_LoggerWrap.LogNet)), new LuaMethod("e", new LuaCSFunction(com_tencent_pandora_LoggerWrap.e)), new LuaMethod("d", new LuaCSFunction(com_tencent_pandora_LoggerWrap.d)), new LuaMethod("New", new LuaCSFunction(com_tencent_pandora_LoggerWrap._Createcom_tencent_pandora_Logger)), new LuaMethod("GetClassType", new LuaCSFunction(com_tencent_pandora_LoggerWrap.GetClassType)) };
     LuaField[]  fields = new LuaField[] { new LuaField("INEED_LOG_TEXT", new LuaCSFunction(com_tencent_pandora_LoggerWrap.get_INEED_LOG_TEXT), new LuaCSFunction(com_tencent_pandora_LoggerWrap.set_INEED_LOG_TEXT)), new LuaField("LOG_LEVEL", new LuaCSFunction(com_tencent_pandora_LoggerWrap.get_LOG_LEVEL), new LuaCSFunction(com_tencent_pandora_LoggerWrap.set_LOG_LEVEL)), new LuaField("FATAL", new LuaCSFunction(com_tencent_pandora_LoggerWrap.get_FATAL), new LuaCSFunction(com_tencent_pandora_LoggerWrap.set_FATAL)), new LuaField("ERROR", new LuaCSFunction(com_tencent_pandora_LoggerWrap.get_ERROR), new LuaCSFunction(com_tencent_pandora_LoggerWrap.set_ERROR)), new LuaField("WARN", new LuaCSFunction(com_tencent_pandora_LoggerWrap.get_WARN), new LuaCSFunction(com_tencent_pandora_LoggerWrap.set_WARN)), new LuaField("INFO", new LuaCSFunction(com_tencent_pandora_LoggerWrap.get_INFO), new LuaCSFunction(com_tencent_pandora_LoggerWrap.set_INFO)), new LuaField("DEBUG", new LuaCSFunction(com_tencent_pandora_LoggerWrap.get_DEBUG), new LuaCSFunction(com_tencent_pandora_LoggerWrap.set_DEBUG)) };
     LuaScriptMgr.RegisterLib(L, "com.tencent.pandora.Logger", typeof(Logger), regs, fields, typeof(object));
 }
Esempio n. 44
0
    public static System.Type Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("MoveTextEnd", MoveTextEnd),
            new LuaMethod("MoveTextStart", MoveTextStart),
            new LuaMethod("ScreenToLocal", ScreenToLocal),
            new LuaMethod("OnBeginDrag", OnBeginDrag),
            new LuaMethod("OnDrag", OnDrag),
            new LuaMethod("OnEndDrag", OnEndDrag),
            new LuaMethod("OnPointerDown", OnPointerDown),
            new LuaMethod("ProcessEvent", ProcessEvent),
            new LuaMethod("OnUpdateSelected", OnUpdateSelected),
            new LuaMethod("ForceLabelUpdate", ForceLabelUpdate),
            new LuaMethod("Rebuild", Rebuild),
            new LuaMethod("LayoutComplete", LayoutComplete),
            new LuaMethod("GraphicUpdateComplete", GraphicUpdateComplete),
            new LuaMethod("ActivateInputField", ActivateInputField),
            new LuaMethod("OnSelect", OnSelect),
            new LuaMethod("OnPointerClick", OnPointerClick),
            new LuaMethod("DeactivateInputField", DeactivateInputField),
            new LuaMethod("OnDeselect", OnDeselect),
            new LuaMethod("OnSubmit", OnSubmit),
            new LuaMethod("new", _CreateUnityEngine_UI_InputField),
            new LuaMethod("GetType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("shouldHideMobileInput", get_shouldHideMobileInput, set_shouldHideMobileInput),
            new LuaField("text", get_text, set_text),
            new LuaField("isFocused", get_isFocused, null),
            new LuaField("caretBlinkRate", get_caretBlinkRate, set_caretBlinkRate),
            new LuaField("caretWidth", get_caretWidth, set_caretWidth),
            new LuaField("textComponent", get_textComponent, set_textComponent),
            new LuaField("placeholder", get_placeholder, set_placeholder),
            new LuaField("caretColor", get_caretColor, set_caretColor),
            new LuaField("customCaretColor", get_customCaretColor, set_customCaretColor),
            new LuaField("selectionColor", get_selectionColor, set_selectionColor),
            new LuaField("onEndEdit", get_onEndEdit, set_onEndEdit),
            new LuaField("onValueChanged", get_onValueChanged, set_onValueChanged),
            new LuaField("onValidateInput", get_onValidateInput, set_onValidateInput),
            new LuaField("characterLimit", get_characterLimit, set_characterLimit),
            new LuaField("contentType", get_contentType, set_contentType),
            new LuaField("lineType", get_lineType, set_lineType),
            new LuaField("inputType", get_inputType, set_inputType),
            new LuaField("keyboardType", get_keyboardType, set_keyboardType),
            new LuaField("characterValidation", get_characterValidation, set_characterValidation),
            new LuaField("readOnly", get_readOnly, set_readOnly),
            new LuaField("multiLine", get_multiLine, null),
            new LuaField("asteriskChar", get_asteriskChar, set_asteriskChar),
            new LuaField("wasCanceled", get_wasCanceled, null),
            new LuaField("caretPosition", get_caretPosition, set_caretPosition),
            new LuaField("selectionAnchorPosition", get_selectionAnchorPosition, set_selectionAnchorPosition),
            new LuaField("selectionFocusPosition", get_selectionFocusPosition, set_selectionFocusPosition),
        };

        var type = typeof(UnityEngine.UI.InputField);

        L.WrapCSharpObject(type, regs, fields);
        return(type);
    }
Esempio n. 45
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("ClosestPowerOfTwo", ClosestPowerOfTwo),
            new LuaMethod("IsPowerOfTwo", IsPowerOfTwo),
            new LuaMethod("NextPowerOfTwo", NextPowerOfTwo),
            new LuaMethod("GammaToLinearSpace", GammaToLinearSpace),
            new LuaMethod("LinearToGammaSpace", LinearToGammaSpace),
            new LuaMethod("CorrelatedColorTemperatureToRGB", CorrelatedColorTemperatureToRGB),
            new LuaMethod("FloatToHalf", FloatToHalf),
            new LuaMethod("HalfToFloat", HalfToFloat),
            new LuaMethod("PerlinNoise", PerlinNoise),
            new LuaMethod("Sin", Sin),
            new LuaMethod("Cos", Cos),
            new LuaMethod("Tan", Tan),
            new LuaMethod("Asin", Asin),
            new LuaMethod("Acos", Acos),
            new LuaMethod("Atan", Atan),
            new LuaMethod("Atan2", Atan2),
            new LuaMethod("Sqrt", Sqrt),
            new LuaMethod("Abs", Abs),
            new LuaMethod("Min", Min),
            new LuaMethod("Max", Max),
            new LuaMethod("Pow", Pow),
            new LuaMethod("Exp", Exp),
            new LuaMethod("Log", Log),
            new LuaMethod("Log10", Log10),
            new LuaMethod("Ceil", Ceil),
            new LuaMethod("Floor", Floor),
            new LuaMethod("Round", Round),
            new LuaMethod("CeilToInt", CeilToInt),
            new LuaMethod("FloorToInt", FloorToInt),
            new LuaMethod("RoundToInt", RoundToInt),
            new LuaMethod("Sign", Sign),
            new LuaMethod("Clamp", Clamp),
            new LuaMethod("Clamp01", Clamp01),
            new LuaMethod("Lerp", Lerp),
            new LuaMethod("LerpUnclamped", LerpUnclamped),
            new LuaMethod("LerpAngle", LerpAngle),
            new LuaMethod("MoveTowards", MoveTowards),
            new LuaMethod("MoveTowardsAngle", MoveTowardsAngle),
            new LuaMethod("SmoothStep", SmoothStep),
            new LuaMethod("Gamma", Gamma),
            new LuaMethod("Approximately", Approximately),
            new LuaMethod("SmoothDamp", SmoothDamp),
            new LuaMethod("SmoothDampAngle", SmoothDampAngle),
            new LuaMethod("Repeat", Repeat),
            new LuaMethod("PingPong", PingPong),
            new LuaMethod("InverseLerp", InverseLerp),
            new LuaMethod("DeltaAngle", DeltaAngle),
            new LuaMethod("Equals", Equals),
            new LuaMethod("GetHashCode", GetHashCode),
            new LuaMethod("ToString", ToString),
            new LuaMethod("GetType", GetType),
            new LuaMethod("New", _CreateMathf),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__tostring", Lua_ToString),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("PI", get_PI, null),
            new LuaField("Infinity", get_Infinity, null),
            new LuaField("NegativeInfinity", get_NegativeInfinity, null),
            new LuaField("Deg2Rad", get_Deg2Rad, null),
            new LuaField("Rad2Deg", get_Rad2Deg, null),
            new LuaField("Epsilon", get_Epsilon, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Mathf", typeof(Mathf), regs, fields, null);
    }