public static int get_m_RaffleDS(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, raffleComponentCommon.m_luaExportHelper.m_RaffleDS); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { RaffleComponentCommon o = new RaffleComponentCommon(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int PostInit(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); raffleComponentCommon.PostInit(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetAllOpenActivityRafflePool(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); List <int> allOpenActivityRafflePool = raffleComponentCommon.GetAllOpenActivityRafflePool(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, allOpenActivityRafflePool); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetName(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); string name = raffleComponentCommon.GetName(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, name); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int RemoveRafflePool(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); int poolId; LuaObject.checkType(l, 2, out poolId); raffleComponentCommon.RemoveRafflePool(poolId); 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 { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); IComponentOwner owner; LuaObject.checkType <IComponentOwner>(l, 2, out owner); raffleComponentCommon.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 { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); uint deltaMillisecond; LuaObject.checkType(l, 2, out deltaMillisecond); raffleComponentCommon.Tick(deltaMillisecond); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_m_RaffleDS(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); DataSectionRaffle raffleDS; LuaObject.checkType <DataSectionRaffle>(l, 2, out raffleDS); raffleComponentCommon.m_luaExportHelper.m_RaffleDS = raffleDS; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_m_operationalActivity(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); OperationalActivityCompomentCommon operationalActivity; LuaObject.checkType <OperationalActivityCompomentCommon>(l, 2, out operationalActivity); raffleComponentCommon.m_luaExportHelper.m_operationalActivity = operationalActivity; 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 { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); IConfigDataLoader configDataLoader; LuaObject.checkType <IConfigDataLoader>(l, 2, out configDataLoader); raffleComponentCommon.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 { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); BagComponentCommon bag; LuaObject.checkType <BagComponentCommon>(l, 2, out bag); raffleComponentCommon.m_luaExportHelper.m_bag = bag; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int InitRafflePoolConfigs(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); List <RafflePool> rafflePools; LuaObject.checkType <List <RafflePool> >(l, 2, out rafflePools); raffleComponentCommon.m_luaExportHelper.InitRafflePoolConfigs(rafflePools); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetAllDrawedCount(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); RafflePool pool; LuaObject.checkType <RafflePool>(l, 2, out pool); int allDrawedCount = raffleComponentCommon.GetAllDrawedCount(pool); LuaObject.pushValue(l, true); LuaObject.pushValue(l, allDrawedCount); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int IsRafflePoolOnActivityTime(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); int rafflePoolId; LuaObject.checkType(l, 2, out rafflePoolId); int i = raffleComponentCommon.IsRafflePoolOnActivityTime(rafflePoolId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, i); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int FindOperationalActivityByRafflePoolId(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); int activityCardPoolId; LuaObject.checkType(l, 2, out activityCardPoolId); OperationalActivityBase o = raffleComponentCommon.FindOperationalActivityByRafflePoolId(activityCardPoolId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int CanFreeDraw(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); RafflePool pool; LuaObject.checkType <RafflePool>(l, 2, out pool); bool b = raffleComponentCommon.CanFreeDraw(pool); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int DrawCostItem(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); RafflePool rafflePool; LuaObject.checkType <RafflePool>(l, 2, out rafflePool); int raffleId; LuaObject.checkType(l, 3, out raffleId); raffleComponentCommon.m_luaExportHelper.DrawCostItem(rafflePool, raffleId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetRaffleItem(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); RafflePool pool; LuaObject.checkType <RafflePool>(l, 2, out pool); int raffleId; LuaObject.checkType(l, 3, out raffleId); RaffleItem raffleItem = raffleComponentCommon.GetRaffleItem(pool, raffleId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, raffleItem); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int IsDrawItemsEnough(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); GoodsType goodsType; LuaObject.checkEnum <GoodsType>(l, 2, out goodsType); int drawItemId; LuaObject.checkType(l, 3, out drawItemId); int count; LuaObject.checkType(l, 4, out count); bool b = raffleComponentCommon.IsDrawItemsEnough(goodsType, drawItemId, count); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }