Пример #1
0
    static int get_fill(IntPtr L)
    {
        object o = null;

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

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

        try
        {
            o = ToLua.ToObject(L, 1);
            UIPolygonChart obj  = (UIPolygonChart)o;
            float[]        arg0 = ToLua.CheckNumberArray <float>(L, 2);
            obj.VerticesDistances = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index VerticesDistances on a nil value" : e.Message));
        }
    }
Пример #4
0
    static int set_fill(IntPtr L)
    {
        object o = null;

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

        try
        {
            o = ToLua.ToObject(L, 1);
            UIPolygonChart obj = (UIPolygonChart)o;
            float[]        ret = obj.VerticesDistances;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index VerticesDistances on a nil value" : e.Message));
        }
    }
Пример #6
0
    static int get_rotation(IntPtr L)
    {
        object o = null;

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

        try
        {
            o = ToLua.ToObject(L, 1);
            UIPolygonChart obj = (UIPolygonChart)o;
            int            ret = obj.sides;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sides on a nil value" : e.Message));
        }
    }
Пример #8
0
    static int DrawPolygon(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UIPolygonChart), typeof(int)))
            {
                UIPolygonChart obj  = (UIPolygonChart)ToLua.ToObject(L, 1);
                int            arg0 = (int)LuaDLL.lua_tonumber(L, 2);
                obj.DrawPolygon(arg0);
                return(0);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UIPolygonChart), typeof(int), typeof(float[])))
            {
                UIPolygonChart obj  = (UIPolygonChart)ToLua.ToObject(L, 1);
                int            arg0 = (int)LuaDLL.lua_tonumber(L, 2);
                float[]        arg1 = ToLua.CheckNumberArray <float>(L, 3);
                obj.DrawPolygon(arg0, arg1);
                return(0);
            }
            else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UIPolygonChart), typeof(int), typeof(float[]), typeof(float)))
            {
                UIPolygonChart obj  = (UIPolygonChart)ToLua.ToObject(L, 1);
                int            arg0 = (int)LuaDLL.lua_tonumber(L, 2);
                float[]        arg1 = ToLua.CheckNumberArray <float>(L, 3);
                float          arg2 = (float)LuaDLL.lua_tonumber(L, 4);
                obj.DrawPolygon(arg0, arg1, arg2);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UIPolygonChart.DrawPolygon"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }