// Token: 0x06004735 RID: 18229 RVA: 0x0015ECF8 File Offset: 0x0015CEF8
        public RafflePool GetRafflePool(int poolId)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GetRafflePoolInt32_hotfix != null)
            {
                return((RafflePool)this.m_GetRafflePoolInt32_hotfix.call(new object[]
                {
                    this,
                    poolId
                }));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            RafflePool rafflePool = this.m_RaffleDS.GetRafflePool(poolId);

            if (rafflePool == null)
            {
                ConfigDataRafflePoolInfo configDataRafflePoolInfo = this.m_configDataLoader.GetConfigDataRafflePoolInfo(poolId);
                if (configDataRafflePoolInfo == null)
                {
                    return(null);
                }
                OperationalActivityBase operationalActivityBase = this.m_operationalActivity.FindOperationalActivityByRafflePoolId(poolId);
                if (operationalActivityBase == null)
                {
                    return(null);
                }
                rafflePool = new RafflePool(poolId)
                {
                    Config = configDataRafflePoolInfo
                };
                rafflePool.ActivityInstanceId = operationalActivityBase.InstanceId;
                this.m_RaffleDS.RafflePools.Add(rafflePool.PoolId, rafflePool);
                this.m_RaffleDS.SetDirty(true);
            }
            return(rafflePool);
        }
        // Token: 0x06004894 RID: 18580 RVA: 0x00168298 File Offset: 0x00166498
        public CardPool GetCardPoolById(int cardPoolId, bool ignoreActivityCheck = true)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GetCardPoolByIdInt32Boolean_hotfix != null)
            {
                return((CardPool)this.m_GetCardPoolByIdInt32Boolean_hotfix.call(new object[]
                {
                    this,
                    cardPoolId,
                    ignoreActivityCheck
                }));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            CardPool cardPool = this.m_selectCardDS.FindCardPool(cardPoolId);

            if (cardPool == null)
            {
                ConfigDataCardPoolInfo configDataCardPoolInfo = this.m_configDataLoader.GetConfigDataCardPoolInfo(cardPoolId);
                if (configDataCardPoolInfo == null)
                {
                    return(null);
                }
                if (configDataCardPoolInfo.PoolType == CardPoolType.CardPoolType_ActivityCardPool)
                {
                    OperationalActivityBase operationalActivityBase = this.m_operationalActivity.FindOperationalActivityByActivityCardPoolId(cardPoolId);
                    if (operationalActivityBase == null)
                    {
                        return(null);
                    }
                    cardPool = new CardPool(cardPoolId);
                    cardPool.ActivityInstanceId = operationalActivityBase.InstanceId;
                }
                else
                {
                    cardPool = new CardPool(cardPoolId);
                }
                cardPool.Config = configDataCardPoolInfo;
            }
            else if (cardPool.Config.PoolType == CardPoolType.CardPoolType_ActivityCardPool && this.m_operationalActivity.FindOperationalActivityByActivityCardPoolId(cardPoolId) == null)
            {
                return(null);
            }
            return(cardPool);
        }
 // Token: 0x06004C4F RID: 19535 RVA: 0x0017869C File Offset: 0x0017689C
 public void RemoveExpiredOperationalActivity(OperationalActivityBase operatinoalActivity)
 {
     this.m_operationalActivities.Remove(operatinoalActivity);
     base.SetDirty(true);
 }
 // Token: 0x06004C4E RID: 19534 RVA: 0x0017865C File Offset: 0x0017685C
 public void AddNewOperationalActivity(OperationalActivityBase operationalActivity)
 {
     this.m_operationalActivities.Add(operationalActivity);
     this.m_operationalActivities.Sort((OperationalActivityBase a, OperationalActivityBase b) => TimeCaculate.AscendTimeCallBack(a.GetExpiredTime(), b.GetExpiredTime()));
     base.SetDirty(true);
 }