Exemple #1
0
    public static int get_ClientCurrentVersion(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnnouncement dataSectionAnnouncement = (DataSectionAnnouncement)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dataSectionAnnouncement.ClientCurrentVersion);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #2
0
    public static int ClearInitedData(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnnouncement dataSectionAnnouncement = (DataSectionAnnouncement)LuaObject.checkSelf(l);
            dataSectionAnnouncement.ClearInitedData();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #3
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnnouncement o = new DataSectionAnnouncement();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #4
0
    public static int SerializeToClient(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnnouncement dataSectionAnnouncement = (DataSectionAnnouncement)LuaObject.checkSelf(l);
            object o = dataSectionAnnouncement.SerializeToClient();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #5
0
    public static int InitAnnouncements(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnnouncement dataSectionAnnouncement = (DataSectionAnnouncement)LuaObject.checkSelf(l);
            List <Announcement>     announcements;
            LuaObject.checkType <List <Announcement> >(l, 2, out announcements);
            dataSectionAnnouncement.InitAnnouncements(announcements);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #6
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);
    }
Exemple #7
0
    public static int SetServerAnnouncementCurrentVersion(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnnouncement dataSectionAnnouncement = (DataSectionAnnouncement)LuaObject.checkSelf(l);
            int serverAnnouncementCurrentVersion;
            LuaObject.checkType(l, 2, out serverAnnouncementCurrentVersion);
            dataSectionAnnouncement.SetServerAnnouncementCurrentVersion(serverAnnouncementCurrentVersion);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #8
0
    public static int FindAnnouncementsByInstanceId(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnnouncement dataSectionAnnouncement = (DataSectionAnnouncement)LuaObject.checkSelf(l);
            ulong instanceId;
            LuaObject.checkType(l, 2, out instanceId);
            Announcement o = dataSectionAnnouncement.FindAnnouncementsByInstanceId(instanceId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #9
0
    public static int FindAnnouncementsByCondition(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnnouncement  dataSectionAnnouncement = (DataSectionAnnouncement)LuaObject.checkSelf(l);
            Predicate <Announcement> isConditionMatched;
            LuaObject.checkDelegate <Predicate <Announcement> >(l, 2, out isConditionMatched);
            List <Announcement> o = dataSectionAnnouncement.FindAnnouncementsByCondition(isConditionMatched);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }