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

◆ option()

byte Terraria.Map.MapHelper.OldMapHelper.option ( )
inline

Definition at line 76 of file MapHelper.cs.

77 {
78 byte b = 0;
79 if ((misc & 0x20) == 32)
80 {
81 b++;
82 }
83 if ((misc & 0x40) == 64)
84 {
85 b += 2;
86 }
87 if ((misc & 0x80) == 128)
88 {
89 b += 4;
90 }
91 if ((misc2 & 1) == 1)
92 {
93 b += 8;
94 }
95 return b;
96 }

References Terraria.Map.MapHelper.OldMapHelper.misc, and Terraria.Map.MapHelper.OldMapHelper.misc2.

Referenced by Terraria.Map.MapHelper.LoadMapVersion1().