Beispiel #1
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            GenericGraphic.EffectInfo o = new GenericGraphic.EffectInfo();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #2
0
    public static int get_m_intensity(IntPtr l)
    {
        int result;

        try
        {
            GenericGraphic.EffectInfo effectInfo = (GenericGraphic.EffectInfo)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, effectInfo.m_intensity);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #3
0
    public static int set_m_color(IntPtr l)
    {
        int result;

        try
        {
            GenericGraphic.EffectInfo effectInfo = (GenericGraphic.EffectInfo)LuaObject.checkSelf(l);
            Colori color;
            LuaObject.checkValueType <Colori>(l, 2, out color);
            effectInfo.m_color = color;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #4
0
    public static int set_m_ghosts(IntPtr l)
    {
        int result;

        try
        {
            GenericGraphic.EffectInfo   effectInfo = (GenericGraphic.EffectInfo)LuaObject.checkSelf(l);
            List <GenericGraphic.Ghost> ghosts;
            LuaObject.checkType <List <GenericGraphic.Ghost> >(l, 2, out ghosts);
            effectInfo.m_ghosts = ghosts;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #5
0
    public static int set_m_ghostDistance(IntPtr l)
    {
        int result;

        try
        {
            GenericGraphic.EffectInfo effectInfo = (GenericGraphic.EffectInfo)LuaObject.checkSelf(l);
            float ghostDistance;
            LuaObject.checkType(l, 2, out ghostDistance);
            effectInfo.m_ghostDistance = ghostDistance;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #6
0
    public static int set_m_type(IntPtr l)
    {
        int result;

        try
        {
            GenericGraphic.EffectInfo effectInfo = (GenericGraphic.EffectInfo)LuaObject.checkSelf(l);
            GraphicEffect             type;
            LuaObject.checkEnum <GraphicEffect>(l, 2, out type);
            effectInfo.m_type = type;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #7
0
    public static int set_m_repeatCount(IntPtr l)
    {
        int result;

        try
        {
            GenericGraphic.EffectInfo effectInfo = (GenericGraphic.EffectInfo)LuaObject.checkSelf(l);
            int repeatCount;
            LuaObject.checkType(l, 2, out repeatCount);
            effectInfo.m_repeatCount = repeatCount;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }