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.Class | AttributeTargets.Struct)]
public class DNAClassAttribute : System.Attribute {
public class DNAClassAttribute : BlendFile.DNAAttribute {
private int _OriginalIndex;
public virtual int OriginalIndex {
get {
@@ -41,7 +41,8 @@ namespace BlendFile {
this._Size = value;
}
}
public DNAClassAttribute(int OriginalIndex, string OriginalName, int Size) {
public DNAClassAttribute(int OriginalIndex, string OriginalName, int Size) :
base(OriginalIndex, OriginalName) {
this._OriginalIndex = OriginalIndex;
this._OriginalName = OriginalName;
this._Size = Size;