Exemplo n.º 1
0
    public static int AddAnnouncement(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnnouncement dataSectionAnnouncement = (DataSectionAnnouncement)LuaObject.checkSelf(l);
            Announcement            announcement;
            LuaObject.checkType <Announcement>(l, 2, out announcement);
            dataSectionAnnouncement.AddAnnouncement(announcement);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }