public static int get_DropCount(IntPtr l) { int result; try { RandomDropRewardGroup randomDropRewardGroup = (RandomDropRewardGroup)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, randomDropRewardGroup.DropCount); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { RandomDropRewardGroup o = new RandomDropRewardGroup(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_GroupIndex(IntPtr l) { int result; try { RandomDropRewardGroup randomDropRewardGroup = (RandomDropRewardGroup)LuaObject.checkSelf(l); int groupIndex; LuaObject.checkType(l, 2, out groupIndex); randomDropRewardGroup.GroupIndex = groupIndex; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_DropRewards(IntPtr l) { int result; try { RandomDropRewardGroup randomDropRewardGroup = (RandomDropRewardGroup)LuaObject.checkSelf(l); Dictionary <int, WeightGoods> dropRewards; LuaObject.checkType <Dictionary <int, WeightGoods> >(l, 2, out dropRewards); randomDropRewardGroup.DropRewards = dropRewards; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }