mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(ScriptFormat): added stub classes for file types detection.
This commit is contained in:
@@ -4,8 +4,8 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel.Composition;
|
||||||
|
|
||||||
namespace GameRes
|
namespace GameRes
|
||||||
{
|
{
|
||||||
@@ -33,4 +33,38 @@ namespace GameRes
|
|||||||
public abstract ScriptData Read (string name, Stream file);
|
public abstract ScriptData Read (string name, Stream file);
|
||||||
public abstract void Write (Stream file, ScriptData script);
|
public abstract void Write (Stream file, ScriptData script);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public abstract class GenericScriptFormat : ScriptFormat
|
||||||
|
{
|
||||||
|
public override ScriptData Read (string name, Stream file)
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Write (Stream file, ScriptData script)
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[Export(typeof(ScriptFormat))]
|
||||||
|
public class TextScriptFormat : GenericScriptFormat
|
||||||
|
{
|
||||||
|
public override string Tag { get { return "TXT"; } }
|
||||||
|
public override string Description { get { return "Text file"; } }
|
||||||
|
public override uint Signature { get { return 0; } }
|
||||||
|
}
|
||||||
|
|
||||||
|
[Export(typeof(ScriptFormat))]
|
||||||
|
public class BinScriptFormat : GenericScriptFormat
|
||||||
|
{
|
||||||
|
public override string Tag { get { return "SCR"; } }
|
||||||
|
public override string Description { get { return "Binary script format"; } }
|
||||||
|
public override uint Signature { get { return 0; } }
|
||||||
|
|
||||||
|
public BinScriptFormat ()
|
||||||
|
{
|
||||||
|
Extensions = new[] { "scr", "bin" };
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user