mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-11-25 06:17:29 +00:00
32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
namespace EightBit
|
|
{
|
|
namespace Files
|
|
{
|
|
namespace Symbols
|
|
{
|
|
//span id = 351, seg = 7, start = 0, size = 2, type = 2
|
|
public class Span : IdentifiableSection
|
|
{
|
|
public Symbols.Segment Segment => this.TakeSegmentReference();
|
|
public int Start { get; private set; }
|
|
public int Size { get; private set; }
|
|
public Symbols.Type Type => this.TakeTypeReference();
|
|
|
|
public Span()
|
|
{
|
|
_ = this._integer_keys.Add("seg");
|
|
_ = this._integer_keys.Add("start");
|
|
_ = this._integer_keys.Add("size");
|
|
_ = this._integer_keys.Add("type");
|
|
}
|
|
|
|
public override void Parse(Parser parent, Dictionary<string, string> entries)
|
|
{
|
|
base.Parse(parent, entries);
|
|
this.Start = this.TakeInteger("start");
|
|
this.Size = this.TakeInteger("size");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |