Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SessionMask.cs
Go to the documentation of this file.
2
4
5[DefaultMember("Item")]
6internal struct SessionMask
7{
8 private uint m_mask;
9
10 public static SessionMask All => new SessionMask(15u);
11
12 public SessionMask(uint mask = 0u)
13 {
14 m_mask = mask & 0xFu;
15 }
16
17 public ulong ToEventKeywords()
18 {
19 return (ulong)m_mask << 44;
20 }
21
22 public static SessionMask FromEventKeywords(ulong m)
23 {
24 return new SessionMask((uint)(m >> 44));
25 }
26
27 public static explicit operator uint(SessionMask m)
28 {
29 return m.m_mask;
30 }
31}
static SessionMask FromEventKeywords(ulong m)