mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +08:00
(IResource): properties no longer backed up by private fields.
This commit is contained in:
parent
68038edf00
commit
87ec61587f
@ -83,18 +83,10 @@ namespace GameRes
|
||||
public abstract uint Signature { get; }
|
||||
|
||||
/// <summary>Signatures peculiar to the resource (the one above is also included here).</summary>
|
||||
public IEnumerable<uint> Signatures
|
||||
{
|
||||
get { return m_signatures; }
|
||||
protected set { m_signatures = value; }
|
||||
}
|
||||
public IEnumerable<uint> Signatures { get; protected set; }
|
||||
|
||||
/// <summary>Filename extensions peculiar to the resource.</summary>
|
||||
public IEnumerable<string> Extensions
|
||||
{
|
||||
get { return m_extensions; }
|
||||
protected set { m_extensions = value; }
|
||||
}
|
||||
public IEnumerable<string> Extensions { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Create empty Entry that corresponds to implemented resource.
|
||||
@ -104,13 +96,10 @@ namespace GameRes
|
||||
return new Entry { Type = this.Type };
|
||||
}
|
||||
|
||||
private IEnumerable<string> m_extensions;
|
||||
private IEnumerable<uint> m_signatures;
|
||||
|
||||
protected IResource ()
|
||||
{
|
||||
m_extensions = new string[] { Tag.ToLowerInvariant() };
|
||||
m_signatures = new uint[] { Signature };
|
||||
Extensions = new string[] { Tag.ToLowerInvariant() };
|
||||
Signatures = new uint[] { this.Signature };
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user