Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ this[int key]

bool Terraria.BitsByte.this[int key]
getset

Definition at line 13 of file BitsByte.cs.

14 {
15 get
16 {
17 return (value & (1 << key)) != 0;
18 }
19 set
20 {
21 if (value)
22 {
23 this.value |= (byte)(1 << key);
24 }
25 else
26 {
27 this.value &= (byte)(~(1 << key));
28 }
29 }
30 }