public static int CreateInstanceBagItemByServer(IntPtr l) { int result; try { BagItemFactory bagItemFactory = (BagItemFactory)LuaObject.checkSelf(l); GoodsType goodsTypeId; LuaObject.checkEnum <GoodsType>(l, 2, out goodsTypeId); int contentId; LuaObject.checkType(l, 3, out contentId); int nums; LuaObject.checkType(l, 4, out nums); ulong instanceId; LuaObject.checkType(l, 5, out instanceId); BagItemBase o = bagItemFactory.CreateInstanceBagItemByServer(goodsTypeId, contentId, nums, instanceId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { BagItemFactory o = new BagItemFactory(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_ConfigDataLoader(IntPtr l) { int result; try { BagItemFactory bagItemFactory = (BagItemFactory)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, bagItemFactory.ConfigDataLoader); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_ConfigDataLoader(IntPtr l) { int result; try { BagItemFactory bagItemFactory = (BagItemFactory)LuaObject.checkSelf(l); IConfigDataLoader configDataLoader; LuaObject.checkType <IConfigDataLoader>(l, 2, out configDataLoader); bagItemFactory.ConfigDataLoader = configDataLoader; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int CreateInstanceBagItemByClient(IntPtr l) { int result; try { BagItemFactory bagItemFactory = (BagItemFactory)LuaObject.checkSelf(l); ProGoods pbGoods; LuaObject.checkType <ProGoods>(l, 2, out pbGoods); BagItemBase o = bagItemFactory.CreateInstanceBagItemByClient(pbGoods); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int CreateBagItemInstanceId_s(IntPtr l) { int result; try { GoodsType goodsTypeId; LuaObject.checkEnum <GoodsType>(l, 1, out goodsTypeId); int contentId; LuaObject.checkType(l, 2, out contentId); ulong o = BagItemFactory.CreateBagItemInstanceId(goodsTypeId, contentId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }