public static int get_StatisticalData(IntPtr l) { int result; try { DataSectionStatisticalData dataSectionStatisticalData = (DataSectionStatisticalData)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, dataSectionStatisticalData.StatisticalData); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { DataSectionStatisticalData o = new DataSectionStatisticalData(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_StatisticalData(IntPtr l) { int result; try { DataSectionStatisticalData dataSectionStatisticalData = (DataSectionStatisticalData)LuaObject.checkSelf(l); Dictionary <int, long> statisticalData; LuaObject.checkType <Dictionary <int, long> >(l, 2, out statisticalData); dataSectionStatisticalData.StatisticalData = statisticalData; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int IsExistStatisticalData(IntPtr l) { int result; try { DataSectionStatisticalData dataSectionStatisticalData = (DataSectionStatisticalData)LuaObject.checkSelf(l); int typeId; LuaObject.checkType(l, 2, out typeId); bool b = dataSectionStatisticalData.IsExistStatisticalData(typeId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetStatisticalDataByTypeId(IntPtr l) { int result; try { DataSectionStatisticalData dataSectionStatisticalData = (DataSectionStatisticalData)LuaObject.checkSelf(l); int typeId; LuaObject.checkType(l, 2, out typeId); long statisticalDataByTypeId = dataSectionStatisticalData.GetStatisticalDataByTypeId(typeId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, statisticalDataByTypeId); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int AddNewStatisticalData(IntPtr l) { int result; try { DataSectionStatisticalData dataSectionStatisticalData = (DataSectionStatisticalData)LuaObject.checkSelf(l); int typeId; LuaObject.checkType(l, 2, out typeId); long nums; LuaObject.checkType(l, 3, out nums); dataSectionStatisticalData.AddNewStatisticalData(typeId, nums); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }