// Token: 0x06002197 RID: 8599 RVA: 0x000913FC File Offset: 0x0008F5FC
        private void PopulateCharacterDataSet(AllyCardManager.CharacterDataSet characterDataSet)
        {
            TeamIndex teamIndex = this.FindTargetTeam();
            ReadOnlyCollection <CharacterMaster> readOnlyInstancesList = CharacterMaster.readOnlyInstancesList;

            for (int i = 0; i < readOnlyInstancesList.Count; i++)
            {
                CharacterMaster characterMaster = readOnlyInstancesList[i];
                if (characterMaster.teamIndex == teamIndex)
                {
                    CharacterBody body = characterMaster.GetBody();
                    if ((!body || !body.teamComponent || !body.teamComponent.hideAllyCardDisplay) && (!characterMaster.playerCharacterMasterController || characterMaster.playerCharacterMasterController.networkUser) && this.currentSource.master != characterMaster)
                    {
                        AllyCardManager.CharacterData characterData = new AllyCardManager.CharacterData(characterMaster);
                        characterDataSet.Add(ref characterData);
                    }
                }
            }
        }
        // Token: 0x06002198 RID: 8600 RVA: 0x000914A8 File Offset: 0x0008F6A8
        private void BuildFromCharacterData(AllyCardManager.CharacterDataSet characterDataSet)
        {
            if (characterDataSet.count < this.displayElementCount)
            {
                Array.Clear(this.displayElements, characterDataSet.count, this.displayElementCount - characterDataSet.count);
            }
            this.displayElementCount = characterDataSet.count;
            HGArrayUtilities.EnsureCapacity <AllyCardManager.DisplayElement>(ref this.displayElements, this.displayElementCount);
            int i     = 0;
            int count = characterDataSet.count;

            while (i < count)
            {
                ref AllyCardManager.CharacterData ptr = ref characterDataSet[i];
                this.displayElements[i] = new AllyCardManager.DisplayElement
                {
                    master   = ptr.master,
                    priority = -1
                };
                i++;
            }