public static int get_Resource(IntPtr l) { int result; try { DataSectionResource dataSectionResource = (DataSectionResource)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, dataSectionResource.Resource); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int ClearInitedData(IntPtr l) { int result; try { DataSectionResource dataSectionResource = (DataSectionResource)LuaObject.checkSelf(l); dataSectionResource.ClearInitedData(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { DataSectionResource o = new DataSectionResource(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetAllMonthCards(IntPtr l) { int result; try { DataSectionResource dataSectionResource = (DataSectionResource)LuaObject.checkSelf(l); List <MonthCard> allMonthCards = dataSectionResource.GetAllMonthCards(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, allMonthCards); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int SerializeToClient(IntPtr l) { int result; try { DataSectionResource dataSectionResource = (DataSectionResource)LuaObject.checkSelf(l); object o = dataSectionResource.SerializeToClient(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_m_resource(IntPtr l) { int result; try { DataSectionResource dataSectionResource = (DataSectionResource)LuaObject.checkSelf(l); PlayerOutOfBagItem resource; LuaObject.checkType <PlayerOutOfBagItem>(l, 2, out resource); dataSectionResource.m_resource = resource; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int AddEquipmentId(IntPtr l) { int result; try { DataSectionResource dataSectionResource = (DataSectionResource)LuaObject.checkSelf(l); int equipmentId; LuaObject.checkType(l, 2, out equipmentId); dataSectionResource.AddEquipmentId(equipmentId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int AddHeadFrame(IntPtr l) { int result; try { DataSectionResource dataSectionResource = (DataSectionResource)LuaObject.checkSelf(l); int headFrameId; LuaObject.checkType(l, 2, out headFrameId); bool b = dataSectionResource.AddHeadFrame(headFrameId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int FindMonthCardById(IntPtr l) { int result; try { DataSectionResource dataSectionResource = (DataSectionResource)LuaObject.checkSelf(l); int cardId; LuaObject.checkType(l, 2, out cardId); MonthCard o = dataSectionResource.FindMonthCardById(cardId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int HasOwn(IntPtr l) { int result; try { DataSectionResource dataSectionResource = (DataSectionResource)LuaObject.checkSelf(l); GoodsType goodtypeId; LuaObject.checkEnum <GoodsType>(l, 2, out goodtypeId); int id; LuaObject.checkType(l, 3, out id); bool b = dataSectionResource.HasOwn(goodtypeId, id); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int RemoveMonthCard(IntPtr l) { int result; try { int total = LuaDLL.lua_gettop(l); if (LuaObject.matchType(l, total, 2, typeof(int))) { DataSectionResource dataSectionResource = (DataSectionResource)LuaObject.checkSelf(l); int monthCardId; LuaObject.checkType(l, 2, out monthCardId); bool b = dataSectionResource.RemoveMonthCard(monthCardId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } else if (LuaObject.matchType(l, total, 2, typeof(MonthCard))) { DataSectionResource dataSectionResource2 = (DataSectionResource)LuaObject.checkSelf(l); MonthCard monthCard; LuaObject.checkType <MonthCard>(l, 2, out monthCard); dataSectionResource2.RemoveMonthCard(monthCard); LuaObject.pushValue(l, true); result = 1; } else { LuaObject.pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function RemoveMonthCard to call"); result = 2; } } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int AddMonthCard(IntPtr l) { int result; try { DataSectionResource dataSectionResource = (DataSectionResource)LuaObject.checkSelf(l); int monthCardId; LuaObject.checkType(l, 2, out monthCardId); DateTime expiredTime; LuaObject.checkValueType <DateTime>(l, 3, out expiredTime); string goodsId; LuaObject.checkType(l, 4, out goodsId); dataSectionResource.AddMonthCard(monthCardId, expiredTime, goodsId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }