public static int set_MonthCardInvalidEvent(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); Action <int> value; int num = LuaObject.checkDelegate <Action <int> >(l, 2, out value); if (num != 0) { if (num == 1) { resourceComponentCommon.MonthCardInvalidEvent += value; } else if (num == 2) { resourceComponentCommon.MonthCardInvalidEvent -= value; } } LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int PostDeSerialize(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); resourceComponentCommon.PostDeSerialize(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_m_basicInfo(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, resourceComponentCommon.m_luaExportHelper.m_basicInfo); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_Owner(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, resourceComponentCommon.Owner); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { ResourceComponentCommon o = new ResourceComponentCommon(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int EffectValidMonthCard(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); resourceComponentCommon.m_luaExportHelper.EffectValidMonthCard(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetName(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); string name = resourceComponentCommon.GetName(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, name); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetAllValidMonthCards(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); List <MonthCard> allValidMonthCards = resourceComponentCommon.GetAllValidMonthCards(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, allValidMonthCards); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int OnMonthCardInvalid(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); int monthCardId; LuaObject.checkType(l, 2, out monthCardId); resourceComponentCommon.m_luaExportHelper.OnMonthCardInvalid(monthCardId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_Owner(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); IComponentOwner owner; LuaObject.checkType <IComponentOwner>(l, 2, out owner); resourceComponentCommon.Owner = owner; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int Tick(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); uint deltaMillisecond; LuaObject.checkType(l, 2, out deltaMillisecond); resourceComponentCommon.Tick(deltaMillisecond); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_m_configDataLoader(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); IConfigDataLoader configDataLoader; LuaObject.checkType <IConfigDataLoader>(l, 2, out configDataLoader); resourceComponentCommon.m_luaExportHelper.m_configDataLoader = configDataLoader; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_m_bag(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); BagComponentCommon bag; LuaObject.checkType <BagComponentCommon>(l, 2, out bag); resourceComponentCommon.m_luaExportHelper.m_bag = bag; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_m_resourceDS(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); DataSectionResource resourceDS; LuaObject.checkType <DataSectionResource>(l, 2, out resourceDS); resourceComponentCommon.m_luaExportHelper.m_resourceDS = resourceDS; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __clearDele_MonthCardInvalidEvent(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); int obj; LuaObject.checkType(l, 2, out obj); resourceComponentCommon.m_luaExportHelper.__clearDele_MonthCardInvalidEvent(obj); 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 { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); int equipmentId; LuaObject.checkType(l, 2, out equipmentId); resourceComponentCommon.m_luaExportHelper.AddEquipmentId(equipmentId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int OnCreateBagItemEventCallBack(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); BagItemBase bagItem; LuaObject.checkType <BagItemBase>(l, 2, out bagItem); resourceComponentCommon.m_luaExportHelper.OnCreateBagItemEventCallBack(bagItem); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int IsMonthCardVaild(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); int cardId; LuaObject.checkType(l, 2, out cardId); bool b = resourceComponentCommon.IsMonthCardVaild(cardId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int HasHeadFrameId(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); int headFrameId; LuaObject.checkType(l, 2, out headFrameId); bool b = resourceComponentCommon.HasHeadFrameId(headFrameId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int HasOwn(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); GoodsType goodtypeId; LuaObject.checkEnum <GoodsType>(l, 2, out goodtypeId); int id; LuaObject.checkType(l, 3, out id); bool b = resourceComponentCommon.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 AddMonthCard(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)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); resourceComponentCommon.AddMonthCard(monthCardId, expiredTime, goodsId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int AddSoldierSkin(IntPtr l) { int result; try { ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l); int soldierSkinId; LuaObject.checkType(l, 2, out soldierSkinId); GameFunctionType causeId; LuaObject.checkEnum <GameFunctionType>(l, 3, out causeId); string location; LuaObject.checkType(l, 4, out location); resourceComponentCommon.AddSoldierSkin(soldierSkinId, causeId, location); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }