예제 #1
0
        private void Init(STUProgressionUnlocks progressionUnlocks)
        {
            if (progressionUnlocks == null)
            {
                return;
            }

            if (progressionUnlocks.m_lootBoxesUnlocks != null)
            {
                LootBoxesUnlocks = new LootBoxUnlocks[progressionUnlocks.m_lootBoxesUnlocks.Length];

                for (int i = 0; i < progressionUnlocks.m_lootBoxesUnlocks.Length; i++)
                {
                    STULootBoxUnlocks lootBoxUnlocks = progressionUnlocks.m_lootBoxesUnlocks[i];
                    LootBoxesUnlocks[i] = new LootBoxUnlocks(lootBoxUnlocks);
                }
            }

            if (progressionUnlocks.m_7846C401 != null)
            {
                LevelUnlocks = new LevelUnlocks[progressionUnlocks.m_7846C401.Length];
                for (int i = 0; i < LevelUnlocks.Length; i++)
                {
                    var levelUnlocks = progressionUnlocks.m_7846C401[i];
                    LevelUnlocks[i] = new LevelUnlocks(levelUnlocks);
                }
            }

            OtherUnlocks   = Unlock.GetArray(progressionUnlocks.m_otherUnlocks);
            UnknownUnlocks = Unlock.GetArray(progressionUnlocks.m_9135A4B2);
        }
예제 #2
0
        public PlayerProgression(STUGenericSettings_PlayerProgression progression)
        {
            if (progression.m_lootBoxesUnlocks != null)
            {
                LootBoxesUnlocks = new LootBoxUnlocks[progression.m_lootBoxesUnlocks.Length];

                for (int i = 0; i < progression.m_lootBoxesUnlocks.Length; i++)
                {
                    STULootBoxUnlocks lootBoxUnlocks = progression.m_lootBoxesUnlocks[i];
                    LootBoxesUnlocks[i] = new LootBoxUnlocks(lootBoxUnlocks);
                }
            }

            if (progression.m_additionalUnlocks != null)
            {
                AdditionalUnlocks = new AdditionalUnlocks[progression.m_additionalUnlocks.Length];
                for (int i = 0; i < progression.m_additionalUnlocks.Length; i++)
                {
                    AdditionalUnlocks[i] = new AdditionalUnlocks(progression.m_additionalUnlocks[i]);
                }
            }

            OtherUnlocks = Unlock.GetArray(progression.m_otherUnlocks);
        }
예제 #3
0
 public LevelUnlocks(STU_1757E817 levelUnlocks)
 {
     Level   = levelUnlocks.m_level;
     Unlocks = Unlock.GetArray(levelUnlocks.m_unlocks);
 }
예제 #4
0
 public LootBoxUnlocks(STULootBoxUnlocks lootBoxUnlocks)
 {
     LootBoxType = lootBoxUnlocks.m_lootboxType;
     Unlocks     = Unlock.GetArray(lootBoxUnlocks.m_unlocks);
 }
예제 #5
0
 public AdditionalUnlocks(STUAdditionalUnlocks additionalUnlocks)
 {
     Level   = additionalUnlocks.m_level;
     Unlocks = Unlock.GetArray(additionalUnlocks.m_unlocks);
 }