Cleaned dependencies and project up. I don't actually know.
This commit is contained in:
@@ -18,7 +18,7 @@ namespace RecrownedAthenaeum.ContentSystem
|
||||
/// <summary>
|
||||
/// Path modifiers to change the path in which the content manager looks to load a file. Used for better organizing things while not needing to type entire path.
|
||||
/// </summary>
|
||||
public readonly Dictionary<Type, IContentPathResolver> contentPathModifier;
|
||||
private readonly Dictionary<Type, IContentPathResolver> contentPathModifier;
|
||||
/// <summary>
|
||||
/// Used when no path modifier is defined for that specific type.
|
||||
/// </summary>
|
||||
@@ -47,7 +47,21 @@ namespace RecrownedAthenaeum.ContentSystem
|
||||
queue = new Queue<ContentData>();
|
||||
contentPathModifier = new Dictionary<Type, IContentPathResolver>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds a <see cref="IContentPathResolver"/> to this handler.
|
||||
/// </summary>
|
||||
/// <param name="assetType"></param>
|
||||
/// <param name="contentResolver"></param>
|
||||
public void AddContentPathResolver(Type assetType, IContentPathResolver contentResolver) {
|
||||
contentPathModifier.Add(assetType, contentResolver);
|
||||
}
|
||||
/// <summary>
|
||||
/// Removes the <see cref="IContentPathResolver"/> for the key.
|
||||
/// </summary>
|
||||
/// <param name="assetType"></param>
|
||||
public void RemoveContentResolver(Type assetType) {
|
||||
contentPathModifier.Remove(assetType);
|
||||
}
|
||||
private void Load(string assetName, Type type, bool usePathModifier)
|
||||
{
|
||||
Debug.WriteLine("Loading asset: " + assetName);
|
||||
@@ -179,6 +193,5 @@ namespace RecrownedAthenaeum.ContentSystem
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user