Ejemplo n.º 1
0
    static int get_id(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.ColorAnimationProperty obj = (Nova.ColorAnimationProperty)o;
            string ret = obj.id;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index id on a nil value"));
        }
    }
Ejemplo n.º 2
0
    static int _CreateNova_ColorAnimationProperty(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes <Nova.CharacterColor, UnityEngine.Color>(L, 1))
            {
                Nova.CharacterColor         arg0 = (Nova.CharacterColor)ToLua.ToObject(L, 1);
                UnityEngine.Color           arg1 = ToLua.ToColor(L, 2);
                Nova.ColorAnimationProperty obj  = new Nova.ColorAnimationProperty(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes <UnityEngine.SpriteRenderer, UnityEngine.Color>(L, 1))
            {
                UnityEngine.SpriteRenderer  arg0 = (UnityEngine.SpriteRenderer)ToLua.ToObject(L, 1);
                UnityEngine.Color           arg1 = ToLua.ToColor(L, 2);
                Nova.ColorAnimationProperty obj  = new Nova.ColorAnimationProperty(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes <UnityEngine.UI.Image, UnityEngine.Color>(L, 1))
            {
                UnityEngine.UI.Image        arg0 = (UnityEngine.UI.Image)ToLua.ToObject(L, 1);
                UnityEngine.Color           arg1 = ToLua.ToColor(L, 2);
                Nova.ColorAnimationProperty obj  = new Nova.ColorAnimationProperty(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes <Nova.DialogueBoxColor, UnityEngine.Color>(L, 1))
            {
                Nova.DialogueBoxColor       arg0 = (Nova.DialogueBoxColor)ToLua.ToObject(L, 1);
                UnityEngine.Color           arg1 = ToLua.ToColor(L, 2);
                Nova.ColorAnimationProperty obj  = new Nova.ColorAnimationProperty(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <Nova.CharacterColor, UnityEngine.Color, UnityEngine.Color>(L, 1))
            {
                Nova.CharacterColor         arg0 = (Nova.CharacterColor)ToLua.ToObject(L, 1);
                UnityEngine.Color           arg1 = ToLua.ToColor(L, 2);
                UnityEngine.Color           arg2 = ToLua.ToColor(L, 3);
                Nova.ColorAnimationProperty obj  = new Nova.ColorAnimationProperty(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <UnityEngine.SpriteRenderer, UnityEngine.Color, UnityEngine.Color>(L, 1))
            {
                UnityEngine.SpriteRenderer  arg0 = (UnityEngine.SpriteRenderer)ToLua.ToObject(L, 1);
                UnityEngine.Color           arg1 = ToLua.ToColor(L, 2);
                UnityEngine.Color           arg2 = ToLua.ToColor(L, 3);
                Nova.ColorAnimationProperty obj  = new Nova.ColorAnimationProperty(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <UnityEngine.UI.Image, UnityEngine.Color, UnityEngine.Color>(L, 1))
            {
                UnityEngine.UI.Image        arg0 = (UnityEngine.UI.Image)ToLua.ToObject(L, 1);
                UnityEngine.Color           arg1 = ToLua.ToColor(L, 2);
                UnityEngine.Color           arg2 = ToLua.ToColor(L, 3);
                Nova.ColorAnimationProperty obj  = new Nova.ColorAnimationProperty(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <Nova.DialogueBoxColor, UnityEngine.Color, UnityEngine.Color>(L, 1))
            {
                Nova.DialogueBoxColor       arg0 = (Nova.DialogueBoxColor)ToLua.ToObject(L, 1);
                UnityEngine.Color           arg1 = ToLua.ToColor(L, 2);
                UnityEngine.Color           arg2 = ToLua.ToColor(L, 3);
                Nova.ColorAnimationProperty obj  = new Nova.ColorAnimationProperty(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Nova.ColorAnimationProperty.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }