Exemplo n.º 1
0
    static int GetComponent(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes <System.Type>(L, 2))
            {
                Nova.CameraController obj  = (Nova.CameraController)ToLua.CheckObject <Nova.CameraController>(L, 1);
                System.Type           arg0 = (System.Type)ToLua.ToObject(L, 2);
                UnityEngine.Component o    = obj.GetComponent(arg0);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes <string>(L, 2))
            {
                Nova.CameraController obj = (Nova.CameraController)ToLua.CheckObject <Nova.CameraController>(L, 1);
                string arg0             = ToLua.ToString(L, 2);
                UnityEngine.Component o = obj.GetComponent(arg0);
                ToLua.Push(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: Nova.CameraController.GetComponent"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemplo n.º 2
0
 static int Restore(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Nova.CameraController obj  = (Nova.CameraController)ToLua.CheckObject <Nova.CameraController>(L, 1);
         Nova.IRestoreData     arg0 = (Nova.IRestoreData)ToLua.CheckObject <Nova.IRestoreData>(L, 2);
         obj.Restore(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 3
0
 static int GetRestoreData(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Nova.CameraController obj = (Nova.CameraController)ToLua.CheckObject <Nova.CameraController>(L, 1);
         Nova.IRestoreData     o   = obj.GetRestoreData();
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 4
0
    static int set_size(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CameraController obj = (Nova.CameraController)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.size = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index size on a nil value"));
        }
    }
Exemplo n.º 5
0
    static int set_overridingCamera(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CameraController obj  = (Nova.CameraController)o;
            UnityEngine.Camera    arg0 = (UnityEngine.Camera)ToLua.CheckObject(L, 2, typeof(UnityEngine.Camera));
            obj.overridingCamera = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index overridingCamera on a nil value"));
        }
    }
Exemplo n.º 6
0
    static int get_restorableObjectName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CameraController obj = (Nova.CameraController)o;
            string ret = obj.restorableObjectName;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index restorableObjectName on a nil value"));
        }
    }
Exemplo n.º 7
0
    static int set_luaGlobalName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CameraController obj = (Nova.CameraController)o;
            string arg0 = ToLua.CheckString(L, 2);
            obj.luaGlobalName = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index luaGlobalName on a nil value"));
        }
    }
Exemplo n.º 8
0
    static int get_size(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CameraController obj = (Nova.CameraController)o;
            float ret = obj.size;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index size on a nil value"));
        }
    }
Exemplo n.º 9
0
    static int get_cullingMask(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CameraController obj = (Nova.CameraController)o;
            int ret = obj.cullingMask;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index cullingMask on a nil value"));
        }
    }
Exemplo n.º 10
0
    static int get_gameObject(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CameraController  obj = (Nova.CameraController)o;
            UnityEngine.GameObject ret = obj.gameObject;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index gameObject on a nil value"));
        }
    }
Exemplo n.º 11
0
    static int get_transform(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CameraController obj = (Nova.CameraController)o;
            UnityEngine.Transform ret = obj.transform;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index transform on a nil value"));
        }
    }
Exemplo n.º 12
0
    static int _CreateNova_CameraSizeAnimationProperty(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

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