public static int get_PropertyValues(IntPtr l) { int result; try { EnchantPropertyProbabilityInfo enchantPropertyProbabilityInfo = (EnchantPropertyProbabilityInfo)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, enchantPropertyProbabilityInfo.PropertyValues); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { EnchantPropertyProbabilityInfo o = new EnchantPropertyProbabilityInfo(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_Id(IntPtr l) { int result; try { EnchantPropertyProbabilityInfo enchantPropertyProbabilityInfo = (EnchantPropertyProbabilityInfo)LuaObject.checkSelf(l); PropertyModifyType id; LuaObject.checkEnum <PropertyModifyType>(l, 2, out id); enchantPropertyProbabilityInfo.Id = id; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_Weight(IntPtr l) { int result; try { EnchantPropertyProbabilityInfo enchantPropertyProbabilityInfo = (EnchantPropertyProbabilityInfo)LuaObject.checkSelf(l); int weight; LuaObject.checkType(l, 2, out weight); enchantPropertyProbabilityInfo.Weight = weight; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_PropertyValues(IntPtr l) { int result; try { EnchantPropertyProbabilityInfo enchantPropertyProbabilityInfo = (EnchantPropertyProbabilityInfo)LuaObject.checkSelf(l); List <EnchantPropertyValueInfo> propertyValues; LuaObject.checkType <List <EnchantPropertyValueInfo> >(l, 2, out propertyValues); enchantPropertyProbabilityInfo.PropertyValues = propertyValues; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }