Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TypeLayout.cs
Go to the documentation of this file.
2
3public readonly struct TypeLayout
4{
5 private readonly int _size;
6
7 private readonly int _packingSize;
8
9 public int Size => _size;
10
12
13 public bool IsDefault
14 {
15 get
16 {
17 if (_size == 0)
18 {
19 return _packingSize == 0;
20 }
21 return false;
22 }
23 }
24
25 public TypeLayout(int size, int packingSize)
26 {
27 _size = size;
28 _packingSize = packingSize;
29 }
30}
TypeLayout(int size, int packingSize)
Definition TypeLayout.cs:25