-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Asset lookup registration rework (#15)
* Experiments. * AssetFileEntry, disconnected lookup registration from autoload. * Various fixes. (cherry picked from commit 4f5b280182a4e5f8bbf05caa18e96e9a13284c07) * Removed unused junk.
- Loading branch information
Showing
16 changed files
with
203 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.IO; | ||
|
||
namespace Dissonance.Engine.IO | ||
{ | ||
public class AssetFileEntry | ||
{ | ||
public readonly string Path; | ||
public readonly AssetSource Source; | ||
|
||
public AssetFileEntry(string path, AssetSource source) | ||
{ | ||
Path = path; | ||
Source = source; | ||
} | ||
|
||
public Stream OpenStream() | ||
{ | ||
return Source.OpenStream(Path); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.