/// <summary> /// When store opens, get the latest gate and return the allowed decoration types /// based on the partition xml data. /// </summary> /// <returns>The allowed deco type from latest unlocked gate.</returns> public List<string> GetAllowedDecoTypeFromLatestPartition(){ string preparedPartitionString = "Partition" + StringUtils.FormatIntToDoubleDigitString(GetLatestUnlockedAbsolutePartition()); ImmutableDataPartition partitionData = DataLoaderPartitions.GetData(preparedPartitionString); return new List<string>(partitionData.DecoCategoriesStore); }
public bool IsPartitionInCurrentZone(int absolutePartitionNumber){ string craftedId = "Partition" + StringUtils.FormatIntToDoubleDigitString(absolutePartitionNumber); ImmutableDataPartition partition = DataLoaderPartitions.GetData(craftedId); return (partition.Zone == SceneUtils.GetZoneTypeFromSceneName(SceneUtils.CurrentScene)) ? true : false; }