public static int Destroy(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapBackgroundActor treasureMapBackgroundActor = (TreasureMapBackgroundActor)LuaObject.checkSelf(l);
            treasureMapBackgroundActor.Destroy();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int get_m_spineGraphic(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapBackgroundActor treasureMapBackgroundActor = (TreasureMapBackgroundActor)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, treasureMapBackgroundActor.m_luaExportHelper.m_spineGraphic);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapBackgroundActor o = new TreasureMapBackgroundActor();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int OnSound(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapBackgroundActor treasureMapBackgroundActor = (TreasureMapBackgroundActor)LuaObject.checkSelf(l);
            FxEvent e;
            LuaObject.checkType <FxEvent>(l, 2, out e);
            string name;
            LuaObject.checkType(l, 3, out name);
            treasureMapBackgroundActor.OnSound(e, name);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e2)
        {
            result = LuaObject.error(l, e2);
        }
        return(result);
    }
    public static int Create(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapBackgroundActor treasureMapBackgroundActor = (TreasureMapBackgroundActor)LuaObject.checkSelf(l);
            string name;
            LuaObject.checkType(l, 2, out name);
            GameObject parent;
            LuaObject.checkType <GameObject>(l, 3, out parent);
            treasureMapBackgroundActor.Create(name, parent);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }