Skip to content

Commit

Permalink
[Sdk] Added EbxArrayMetaAttribute to types
Browse files Browse the repository at this point in the history
  • Loading branch information
wannkunstbeikor committed Nov 5, 2023
1 parent 460e83b commit 036d3b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions FrostySdk/Attributes/EbxArrayMetaAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

namespace Frosty.Sdk.Attributes;

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Delegate)]
public class EbxArrayMetaAttribute : Attribute
{
public TypeFlags Flags { get; set; }

public EbxArrayMetaAttribute(ushort flags)
{
Flags = flags;
Expand Down
6 changes: 2 additions & 4 deletions FrostySdk/Sdk/TypeInfoDatas/ArrayInfoData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ public override void CreateType(StringBuilder sb)
{
sb.AppendLine($"[{nameof(ArrayGuidAttribute)}(\"{m_guid}\")]");
}
if (m_nameHash != 0)
{
sb.AppendLine($"[{nameof(ArrayHashAttribute)}({m_nameHash})]");
}
sb.AppendLine($"[{nameof(ArrayHashAttribute)}({m_nameHash})]");
sb.AppendLine($"[{nameof(EbxArrayMetaAttribute)}({(ushort)m_flags})]");
}
}

0 comments on commit 036d3b0

Please sign in to comment.