Changed attribute builder to derive from correct class, also added method to pass base class parameters using string refs. Regenerated the files

This commit is contained in:
Samuele Lorefice
2025-03-06 17:37:55 +01:00
parent a784eed61d
commit 02aa7db319
6 changed files with 46 additions and 18 deletions

View File

@@ -13,7 +13,7 @@ using System;
namespace BlendFile {
[AttributeUsageAttribute(AttributeTargets.Property | AttributeTargets.Field)]
public class DNAListAttribute : System.Attribute {
public class DNAListAttribute : BlendFile.DNAAttribute {
private int _Size;
public virtual int Size {
get {
@@ -86,7 +86,8 @@ namespace BlendFile {
this._MemoryOffset = value;
}
}
public DNAListAttribute(int Size, string OriginalType, string OriginalName, int OriginalIndex, string UnderlyingType, string CountFieldName, int CountFieldIndex, int MemoryOffset) {
public DNAListAttribute(int Size, string OriginalType, string OriginalName, int OriginalIndex, string UnderlyingType, string CountFieldName, int CountFieldIndex, int MemoryOffset) :
base(OriginalIndex, OriginalName) {
this._Size = Size;
this._OriginalType = OriginalType;
this._OriginalName = OriginalName;