Content loading system functioning.
This commit is contained in:
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace RhythmBullet.Zer01HD.Game.ContentResolvers
|
||||
{
|
||||
class FontContentResolver : IContentResolver
|
||||
class FontContentResolver : IContentPathModifier
|
||||
{
|
||||
readonly ResolutionContentResolver rcr;
|
||||
|
||||
@@ -16,9 +16,9 @@ namespace RhythmBullet.Zer01HD.Game.ContentResolvers
|
||||
this.rcr = rcr;
|
||||
}
|
||||
|
||||
public string Load(string assetName)
|
||||
public string Modify(string assetName)
|
||||
{
|
||||
return rcr.Load("fonts/" + assetName);
|
||||
return rcr.Modify("fonts/" + assetName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -10,7 +10,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace RhythmBullet.Zer01HD.Game.ContentResolvers
|
||||
{
|
||||
class ResolutionContentResolver : IContentResolver
|
||||
class ResolutionContentResolver : IContentPathModifier
|
||||
{
|
||||
int width, height;
|
||||
bool updated;
|
||||
@@ -98,7 +98,7 @@ namespace RhythmBullet.Zer01HD.Game.ContentResolvers
|
||||
return best;
|
||||
}
|
||||
|
||||
public string Load(string path)
|
||||
public string Modify(string path)
|
||||
{
|
||||
if (updated)
|
||||
{
|
||||
|
Reference in New Issue
Block a user