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:
@@ -13,7 +13,7 @@ using System;
|
||||
namespace BlendFile {
|
||||
|
||||
[AttributeUsageAttribute(AttributeTargets.Field)]
|
||||
public class DNAFieldAttribute : System.Attribute {
|
||||
public class DNAFieldAttribute : BlendFile.DNAAttribute {
|
||||
private int _Size;
|
||||
public virtual int Size {
|
||||
get {
|
||||
@@ -77,7 +77,8 @@ namespace BlendFile {
|
||||
this._MemoryOffset = value;
|
||||
}
|
||||
}
|
||||
public DNAFieldAttribute(int Size, string OriginalType, int OriginalIndex, string OriginalName, string UnderlyingType, bool IsPointer, int MemoryOffset) {
|
||||
public DNAFieldAttribute(int Size, string OriginalType, int OriginalIndex, string OriginalName, string UnderlyingType, bool IsPointer, int MemoryOffset) :
|
||||
base(OriginalIndex, OriginalName) {
|
||||
this._Size = Size;
|
||||
this._OriginalType = OriginalType;
|
||||
this._OriginalIndex = OriginalIndex;
|
||||
|
||||
Reference in New Issue
Block a user