Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
StructLayoutAttribute.cs
Go to the documentation of this file.
2
3[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false)]
4public sealed class StructLayoutAttribute : Attribute
5{
6 public int Pack;
7
8 public int Size;
9
11
12 public LayoutKind Value { get; }
13
15 {
16 Value = layoutKind;
17 }
18
19 public StructLayoutAttribute(short layoutKind)
20 {
21 Value = (LayoutKind)layoutKind;
22 }
23}