// Token: 0x0600416A RID: 16746 RVA: 0x00133C3C File Offset: 0x00131E3C
        public TimeSpan GetTaskRemainingTime(int TaskId, int Slot)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GetTaskRemainingTimeInt32Int32_hotfix != null)
            {
                return((TimeSpan)this.m_GetTaskRemainingTimeInt32Int32_hotfix.call(new object[]
                {
                    this,
                    TaskId2,
                    Slot2
                }));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            int            TaskId         = TaskId2;
            int            Slot           = Slot2;
            HeroAssistants heroAssistants = this.m_heroAssistantsDS.HeroAssistants;

            if (heroAssistants.Tasks.Find((HeroAssistantsTask t) => t.ConfigId == TaskId) == null)
            {
                return(TimeSpan.MaxValue);
            }
            HeroAssistantsTaskAssignment heroAssistantsTaskAssignment = heroAssistants.Assignments.Find((HeroAssistantsTaskAssignment a) => a.Slot == Slot);

            if (heroAssistantsTaskAssignment == null)
            {
                return(TimeSpan.MaxValue);
            }
            return((!(heroAssistantsTaskAssignment.EndTime > this.m_basicInfo.GetCurrentTime())) ? TimeSpan.Zero : (heroAssistantsTaskAssignment.EndTime - this.m_basicInfo.GetCurrentTime()));
        }
        // Token: 0x06004168 RID: 16744 RVA: 0x001339FC File Offset: 0x00131BFC
        public int CanClaimRewards(int TaskId, int Slot)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CanClaimRewardsInt32Int32_hotfix != null)
            {
                return(Convert.ToInt32(this.m_CanClaimRewardsInt32Int32_hotfix.call(new object[]
                {
                    this,
                    TaskId2,
                    Slot2
                })));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            int            TaskId         = TaskId2;
            int            Slot           = Slot2;
            HeroAssistants heroAssistants = this.m_heroAssistantsDS.HeroAssistants;

            if (heroAssistants.Tasks.Find((HeroAssistantsTask t) => t.ConfigId == TaskId) == null)
            {
                return(-2102);
            }
            HeroAssistantsTaskAssignment heroAssistantsTaskAssignment = heroAssistants.Assignments.Find((HeroAssistantsTaskAssignment a) => a.Slot == Slot);

            if (heroAssistantsTaskAssignment == null || heroAssistantsTaskAssignment.AssignedHeroIds.Count == 0)
            {
                return(-2106);
            }
            if (heroAssistantsTaskAssignment.EndTime > this.m_basicInfo.GetCurrentTime())
            {
                return(-2107);
            }
            return(0);
        }
        // Token: 0x06004169 RID: 16745 RVA: 0x00133B24 File Offset: 0x00131D24
        public virtual int ClaimRewards(int TaskId, int Slot, bool NoCheck = false)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ClaimRewardsInt32Int32Boolean_hotfix != null)
            {
                return(Convert.ToInt32(this.m_ClaimRewardsInt32Int32Boolean_hotfix.call(new object[]
                {
                    this,
                    TaskId2,
                    Slot2,
                    NoCheck
                })));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            int TaskId = TaskId2;
            int Slot   = Slot2;

            if (!NoCheck)
            {
                int num = this.CanClaimRewards(TaskId, Slot);
                if (num != 0)
                {
                    return(num);
                }
            }
            HeroAssistants     heroAssistants     = this.m_heroAssistantsDS.HeroAssistants;
            HeroAssistantsTask heroAssistantsTask = heroAssistants.Tasks.Find((HeroAssistantsTask t) => t.ConfigId == TaskId);

            if (heroAssistantsTask != null)
            {
                heroAssistants.Assignments.RemoveAll((HeroAssistantsTaskAssignment a) => a.Slot == Slot);
            }
            return(0);
        }
        // Token: 0x06004164 RID: 16740 RVA: 0x00133470 File Offset: 0x00131670
        public int CanAssignHero(List <int> HeroIds, int TaskId, int Slot, int WorkSeconds)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CanAssignHeroList ` 1Int32Int32Int32_hotfix != null)
            {
                return(Convert.ToInt32(this.m_CanAssignHeroList ` 1Int32Int32Int32_hotfix.call(new object[]
                {
                    this,
                    HeroIds,
                    TaskId2,
                    Slot2,
                    WorkSeconds
                })));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            int TaskId = TaskId2;
            int Slot   = Slot2;

            if (HeroIds == null || HeroIds.Count == 0)
            {
                return(-2111);
            }
            HeroAssistants     heroAssistants     = this.m_heroAssistantsDS.HeroAssistants;
            HeroAssistantsTask heroAssistantsTask = heroAssistants.Tasks.Find((HeroAssistantsTask t) => t.ConfigId == TaskId);

            if (heroAssistantsTask == null)
            {
                return(-2102);
            }
            if (heroAssistantsTask.Locked)
            {
                return(-2101);
            }
            if (heroAssistants.Assignments.Count >= this.m_configDataLoader.ConfigableConstId_HeroAssistantTaskSlotCount)
            {
                return(-2112);
            }
            HeroAssistantsTaskAssignment heroAssistantsTaskAssignment = heroAssistants.Assignments.Find((HeroAssistantsTaskAssignment a) => a.Slot == Slot);

            if (heroAssistantsTaskAssignment != null && heroAssistantsTaskAssignment.AssignedHeroIds.Count > 0)
            {
                return(-2105);
            }
            if (HeroIds.Count > this.m_configDataLoader.ConfigableConstId_HeroAssistantTaskHeroAssignMaxCount)
            {
                return(-2109);
            }
            return(0);
        }