mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-03-11 05:41:49 +00:00
Use IDictionary, rather than Dictionary to allow for different implementations
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
_ = this._integer_keys.Add("mod");
|
||||
}
|
||||
|
||||
public override void Parse(Parser parent, Dictionary<string, string> entries)
|
||||
public override void Parse(Parser parent, IDictionary<string, string> entries)
|
||||
{
|
||||
base.Parse(parent, entries);
|
||||
this.Size = this.TakeInteger("size");
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
public int ID { get; private set; }
|
||||
protected IdentifiableSection() => _ = this._integer_keys.Add("id");
|
||||
|
||||
public override void Parse(Parser parent, Dictionary<string, string> entries)
|
||||
public override void Parse(Parser parent, IDictionary<string, string> entries)
|
||||
{
|
||||
base.Parse(parent, entries);
|
||||
this.ID = this.TakeInteger("id");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
_ = this._multiple_keys.Add("span");
|
||||
}
|
||||
|
||||
public override void Parse(Parser parent, Dictionary<string, string> entries)
|
||||
public override void Parse(Parser parent, IDictionary<string, string> entries)
|
||||
{
|
||||
base.Parse(parent, entries);
|
||||
this.LineNumber = this.TakeInteger("line");
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
protected NamedSection() => _ = this._string_keys.Add("name");
|
||||
|
||||
public override void Parse(Parser parent, Dictionary<string, string> entries)
|
||||
public override void Parse(Parser parent, IDictionary<string, string> entries)
|
||||
{
|
||||
base.Parse(parent, entries);
|
||||
this.Name = this.TakeString("name");
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
_ = this._multiple_keys.Add("span");
|
||||
}
|
||||
|
||||
public override void Parse(Parser parent, Dictionary<string, string> entries)
|
||||
public override void Parse(Parser parent, IDictionary<string, string> entries)
|
||||
{
|
||||
base.Parse(parent, entries);
|
||||
this.Size = this.TakeInteger("size");
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
protected readonly HashSet<string> _hex_long_keys = [];
|
||||
protected readonly HashSet<string> _multiple_keys = [];
|
||||
|
||||
public virtual void Parse(Parser parent, Dictionary<string, string> entries)
|
||||
public virtual void Parse(Parser parent, IDictionary<string, string> entries)
|
||||
{
|
||||
this._parent = parent;
|
||||
foreach (var entry in entries)
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
_ = this._integer_keys.Add("ooffs");
|
||||
}
|
||||
|
||||
public override void Parse(Parser parent, Dictionary<string, string> entries)
|
||||
public override void Parse(Parser parent, IDictionary<string, string> entries)
|
||||
{
|
||||
base.Parse(parent, entries);
|
||||
this.Start = this.TakeInteger("start");
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
_ = this._integer_keys.Add("type");
|
||||
}
|
||||
|
||||
public override void Parse(Parser parent, Dictionary<string, string> entries)
|
||||
public override void Parse(Parser parent, IDictionary<string, string> entries)
|
||||
{
|
||||
base.Parse(parent, entries);
|
||||
this.Start = this.TakeInteger("start");
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
_ = this._enumeration_keys.Add("type");
|
||||
}
|
||||
|
||||
public override void Parse(Parser parent, Dictionary<string, string> entries)
|
||||
public override void Parse(Parser parent, IDictionary<string, string> entries)
|
||||
{
|
||||
base.Parse(parent, entries);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user