added audio resource format.

This commit is contained in:
morkt
2014-11-07 02:44:22 +04:00
parent 0164ce838a
commit 07ea1b9af7
4 changed files with 331 additions and 0 deletions

View File

@@ -276,6 +276,8 @@ namespace GameRes
private IEnumerable<ArchiveFormat> m_arc_formats;
[ImportMany(typeof(ImageFormat))]
private IEnumerable<ImageFormat> m_image_formats;
[ImportMany(typeof(AudioFormat))]
private IEnumerable<AudioFormat> m_audio_formats;
[ImportMany(typeof(ScriptFormat))]
private IEnumerable<ScriptFormat> m_script_formats;
#pragma warning restore 649
@@ -288,6 +290,7 @@ namespace GameRes
public IEnumerable<ArchiveFormat> ArcFormats { get { return m_arc_formats; } }
public IEnumerable<ImageFormat> ImageFormats { get { return m_image_formats; } }
public IEnumerable<AudioFormat> AudioFormats { get { return m_audio_formats; } }
public IEnumerable<ScriptFormat> ScriptFormats { get { return m_script_formats; } }
public Exception LastError { get; set; }
@@ -310,6 +313,7 @@ namespace GameRes
container.ComposeParts (this);
AddResourceImpl (m_arc_formats);
AddResourceImpl (m_image_formats);
AddResourceImpl (m_audio_formats);
AddResourceImpl (m_script_formats);
}