Example #1
0
    public static int ClearInitedData(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRandomStore dataSectionRandomStore = (DataSectionRandomStore)LuaObject.checkSelf(l);
            dataSectionRandomStore.ClearInitedData();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #2
0
    public static int get_Stores(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRandomStore dataSectionRandomStore = (DataSectionRandomStore)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dataSectionRandomStore.Stores);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #3
0
    public static int constructor(IntPtr l)
    {
        int result;

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

        try
        {
            DataSectionRandomStore dataSectionRandomStore = (DataSectionRandomStore)LuaObject.checkSelf(l);
            object o = dataSectionRandomStore.SerializeToClient();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #5
0
    public static int InitStore(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRandomStore dataSectionRandomStore = (DataSectionRandomStore)LuaObject.checkSelf(l);
            RandomStore            store;
            LuaObject.checkType <RandomStore>(l, 2, out store);
            dataSectionRandomStore.InitStore(store);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #6
0
    public static int set_Stores(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRandomStore dataSectionRandomStore = (DataSectionRandomStore)LuaObject.checkSelf(l);
            List <RandomStore>     stores;
            LuaObject.checkType <List <RandomStore> >(l, 2, out stores);
            dataSectionRandomStore.Stores = stores;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #7
0
    public static int GetManualFlushNums(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRandomStore dataSectionRandomStore = (DataSectionRandomStore)LuaObject.checkSelf(l);
            int storeId;
            LuaObject.checkType(l, 2, out storeId);
            int manualFlushNums = dataSectionRandomStore.GetManualFlushNums(storeId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, manualFlushNums);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #8
0
    public static int FindStore(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRandomStore dataSectionRandomStore = (DataSectionRandomStore)LuaObject.checkSelf(l);
            int id;
            LuaObject.checkType(l, 2, out id);
            RandomStore o = dataSectionRandomStore.FindStore(id);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #9
0
    public static int AddManualFlushNums(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRandomStore dataSectionRandomStore = (DataSectionRandomStore)LuaObject.checkSelf(l);
            RandomStore            store;
            LuaObject.checkType <RandomStore>(l, 2, out store);
            int addNums;
            LuaObject.checkType(l, 3, out addNums);
            dataSectionRandomStore.AddManualFlushNums(store, addNums);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #10
0
    public static int SetStoreNextFlushTime(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRandomStore dataSectionRandomStore = (DataSectionRandomStore)LuaObject.checkSelf(l);
            RandomStore            store;
            LuaObject.checkType <RandomStore>(l, 2, out store);
            DateTime flushTime;
            LuaObject.checkValueType <DateTime>(l, 3, out flushTime);
            dataSectionRandomStore.SetStoreNextFlushTime(store, flushTime);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #11
0
    public static int GetStoreItem(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRandomStore dataSectionRandomStore = (DataSectionRandomStore)LuaObject.checkSelf(l);
            RandomStore            store;
            LuaObject.checkType <RandomStore>(l, 2, out store);
            int index;
            LuaObject.checkType(l, 3, out index);
            RandomStoreItem storeItem = dataSectionRandomStore.GetStoreItem(store, index);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, storeItem);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }