Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ AddCustomAttribute()

CustomAttributeHandle System.Reflection.Metadata.Ecma335.MetadataBuilder.AddCustomAttribute ( EntityHandle parent,
EntityHandle constructor,
BlobHandle value )
inline

Definition at line 1169 of file MetadataBuilder.cs.

1170 {
1171 int num = CodedIndex.HasCustomAttribute(parent);
1174 _customAttributeTable.Add(new CustomAttributeRow
1175 {
1176 Parent = num,
1177 Type = CodedIndex.CustomAttributeType(constructor),
1178 Value = value
1179 });
1180 return CustomAttributeHandle.FromRowId(_customAttributeTable.Count);
1181 }
void Add(TKey key, TValue value)
readonly List< CustomAttributeRow > _customAttributeTable

References System.Reflection.Metadata.Ecma335.MetadataBuilder._customAttributeTable, System.Reflection.Metadata.Ecma335.MetadataBuilder._customAttributeTableLastParent, System.Reflection.Metadata.Ecma335.MetadataBuilder._customAttributeTableNeedsSorting, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Reflection.Metadata.Ecma335.CodedIndex.CustomAttributeType(), System.Reflection.Metadata.CustomAttributeHandle.FromRowId(), System.Reflection.Metadata.Ecma335.CodedIndex.HasCustomAttribute(), and System.value.