protected override void XMLNodeHandler(string id, IXMLNode xmlNode, Hashtable hashData, string errorMessage)
    {
        ImmutableDataPartition data = new ImmutableDataPartition(id, xmlNode, errorMessage);

        // store the data
        if (hashData.ContainsKey(id))
        {
            Debug.LogError(errorMessage + "Duplicate keys!");
        }
        else
        {
            hashData.Add(id, data);
        }
    }
Example #2
0
	/// <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);
	}
Example #3
0
	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;
	}