Пример #1
0
 static int RecoverDefalutSize(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LKCamera.Camera2D obj = (LKCamera.Camera2D)ToLua.CheckObject(L, 1, typeof(LKCamera.Camera2D));
         obj.RecoverDefalutSize();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #2
0
 static int TweenStop(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LKCamera.Camera2D obj = (LKCamera.Camera2D)ToLua.CheckObject(L, 1, typeof(LKCamera.Camera2D));
         obj.TweenStop();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #3
0
 static int MoveTo(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LKCamera.Camera2D   obj  = (LKCamera.Camera2D)ToLua.CheckObject(L, 1, typeof(LKCamera.Camera2D));
         UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
         obj.MoveTo(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #4
0
 static int Blur(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LKCamera.Camera2D obj = (LKCamera.Camera2D)ToLua.CheckObject(L, 1, typeof(LKCamera.Camera2D));
         bool arg0             = LuaDLL.luaL_checkboolean(L, 2);
         obj.Blur(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #5
0
 static int TweenPosBy(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         LKCamera.Camera2D   obj  = (LKCamera.Camera2D)ToLua.CheckObject(L, 1, typeof(LKCamera.Camera2D));
         UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
         float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         obj.TweenPosBy(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #6
0
    static int set_zoomLock(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LKCamera.Camera2D obj = (LKCamera.Camera2D)o;
            bool arg0             = LuaDLL.luaL_checkboolean(L, 2);
            obj.zoomLock = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index zoomLock on a nil value" : e.Message));
        }
    }
Пример #7
0
    static int set_szEffectMouseClickName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LKCamera.Camera2D obj  = (LKCamera.Camera2D)o;
            string            arg0 = ToLua.CheckString(L, 2);
            obj.szEffectMouseClickName = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index szEffectMouseClickName on a nil value" : e.Message));
        }
    }
Пример #8
0
    static int set_blur(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LKCamera.Camera2D obj  = (LKCamera.Camera2D)o;
            ScreenBlur        arg0 = (ScreenBlur)ToLua.CheckUnityObject(L, 2, typeof(ScreenBlur));
            obj.blur = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blur on a nil value" : e.Message));
        }
    }
Пример #9
0
    static int set_subCamera(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LKCamera.Camera2D  obj  = (LKCamera.Camera2D)o;
            UnityEngine.Camera arg0 = (UnityEngine.Camera)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Camera));
            obj.subCamera = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index subCamera on a nil value" : e.Message));
        }
    }
Пример #10
0
 static int Shake(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         LKCamera.Camera2D obj  = (LKCamera.Camera2D)ToLua.CheckObject(L, 1, typeof(LKCamera.Camera2D));
         float             arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         float             arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         float             arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
         obj.Shake(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #11
0
    static int set__camera(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            City obj = (City)o;
            LKCamera.Camera2D arg0 = (LKCamera.Camera2D)ToLua.CheckUnityObject(L, 2, typeof(LKCamera.Camera2D));
            obj._camera = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index _camera on a nil value" : e.Message));
        }
    }
Пример #12
0
    static int get_zoomLock(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LKCamera.Camera2D obj = (LKCamera.Camera2D)o;
            bool ret = obj.zoomLock;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index zoomLock on a nil value" : e.Message));
        }
    }
Пример #13
0
    static int get_szEffectMouseClickName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LKCamera.Camera2D obj = (LKCamera.Camera2D)o;
            string            ret = obj.szEffectMouseClickName;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index szEffectMouseClickName on a nil value" : e.Message));
        }
    }
Пример #14
0
    static int get_blur(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LKCamera.Camera2D obj = (LKCamera.Camera2D)o;
            ScreenBlur        ret = obj.blur;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blur on a nil value" : e.Message));
        }
    }
Пример #15
0
    static int set_mapExpand(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LKCamera.Camera2D   obj  = (LKCamera.Camera2D)o;
            UnityEngine.Vector4 arg0 = ToLua.ToVector4(L, 2);
            obj.mapExpand = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mapExpand on a nil value" : e.Message));
        }
    }
Пример #16
0
    static int set_defaultSize(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LKCamera.Camera2D obj  = (LKCamera.Camera2D)o;
            float             arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.defaultSize = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index defaultSize on a nil value" : e.Message));
        }
    }
Пример #17
0
    static int get_defaultSize(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LKCamera.Camera2D obj = (LKCamera.Camera2D)o;
            float             ret = obj.defaultSize;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index defaultSize on a nil value" : e.Message));
        }
    }
Пример #18
0
    static int get__camera(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            City obj = (City)o;
            LKCamera.Camera2D ret = obj._camera;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index _camera on a nil value" : e.Message));
        }
    }
Пример #19
0
    static int get_position(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LKCamera.Camera2D   obj = (LKCamera.Camera2D)o;
            UnityEngine.Vector3 ret = obj.position;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index position on a nil value" : e.Message));
        }
    }