mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-07-08 18:06:41 +00:00
Add simple extension properties
This commit is contained in:
@@ -3,7 +3,7 @@ using SabreTools.Data.Models.NES;
|
||||
|
||||
namespace SabreTools.Serialization.Wrappers
|
||||
{
|
||||
// TODO: Add extension properties
|
||||
// TODO: Add better extension properties
|
||||
public partial class NESCart : WrapperBase<Cart>
|
||||
{
|
||||
#region Descriptive Properties
|
||||
@@ -13,6 +13,31 @@ namespace SabreTools.Serialization.Wrappers
|
||||
|
||||
#endregion
|
||||
|
||||
#region Extension Properties
|
||||
|
||||
/// <inheritdoc cref="Cart.Header"/>
|
||||
public Header? Header => Model.Header;
|
||||
|
||||
/// <inheritdoc cref="Cart.Trainer"/>
|
||||
public byte[] Trainer => Model.Trainer;
|
||||
|
||||
/// <inheritdoc cref="Cart.PRGROMData"/>
|
||||
public byte[] PRGROMData => Model.PRGROMData;
|
||||
|
||||
/// <inheritdoc cref="Cart.CHRROMData"/>
|
||||
public byte[] CHRROMData => Model.CHRROMData;
|
||||
|
||||
/// <inheritdoc cref="Cart.PlayChoiceINSTROM"/>
|
||||
public byte[] PlayChoiceINSTROM => Model.PlayChoiceINSTROM;
|
||||
|
||||
/// <inheritdoc cref="Cart.PlayChoicePROM"/>
|
||||
public byte[] PlayChoicePROM => Model.PlayChoicePROM;
|
||||
|
||||
/// <inheritdoc cref="Cart.Title"/>
|
||||
public byte[] Title => Model.Title;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
||||
Reference in New Issue
Block a user