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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }