예제 #1
0
    static int get_id(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.MaterialFloatAnimationProperty obj = (Nova.MaterialFloatAnimationProperty)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"));
        }
    }
예제 #2
0
    static int _CreateNova_MaterialFloatAnimationProperty(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3)
            {
                UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject <UnityEngine.Material>(L, 1);
                string arg1 = ToLua.CheckString(L, 2);
                float  arg2 = (float)LuaDLL.luaL_checknumber(L, 3);
                Nova.MaterialFloatAnimationProperty obj = new Nova.MaterialFloatAnimationProperty(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes <Nova.UseRelativeValue>(L, 4))
            {
                UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject <UnityEngine.Material>(L, 1);
                string arg1 = ToLua.CheckString(L, 2);
                float  arg2 = (float)LuaDLL.luaL_checknumber(L, 3);
                Nova.UseRelativeValue arg3 = (Nova.UseRelativeValue)ToLua.ToObject(L, 4);
                Nova.MaterialFloatAnimationProperty obj = new Nova.MaterialFloatAnimationProperty(arg0, arg1, arg2, arg3);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes <float>(L, 4))
            {
                UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject <UnityEngine.Material>(L, 1);
                string arg1 = ToLua.CheckString(L, 2);
                float  arg2 = (float)LuaDLL.luaL_checknumber(L, 3);
                float  arg3 = (float)LuaDLL.lua_tonumber(L, 4);
                Nova.MaterialFloatAnimationProperty obj = new Nova.MaterialFloatAnimationProperty(arg0, arg1, arg2, arg3);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Nova.MaterialFloatAnimationProperty.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }