Content loading system functioning.

This commit is contained in:
2018-10-30 18:29:54 -05:00
parent 3a4dfb94ac
commit a9647f2146
14 changed files with 189 additions and 87 deletions

View File

@@ -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);
}
}
}

View File

@@ -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)
{