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

◆ ReadExtraData()

override void Terraria.GameContent.Tile_Entities.TEHatRack.ReadExtraData ( BinaryReader reader,
bool networkSend )
inlinevirtual

Reimplemented from Terraria.DataStructures.TileEntity.

Definition at line 143 of file TEHatRack.cs.

144 {
145 BitsByte bitsByte = reader.ReadByte();
146 for (int i = 0; i < 2; i++)
147 {
148 _items[i] = new Item();
149 Item item = _items[i];
150 if (bitsByte[i])
151 {
152 item.netDefaults(reader.ReadInt16());
153 item.Prefix(reader.ReadByte());
154 item.stack = reader.ReadInt16();
155 }
156 }
157 for (int j = 0; j < 2; j++)
158 {
159 _dyes[j] = new Item();
160 Item item2 = _dyes[j];
161 if (bitsByte[j + 2])
162 {
163 item2.netDefaults(reader.ReadInt16());
164 item2.Prefix(reader.ReadByte());
165 item2.stack = reader.ReadInt16();
166 }
167 }
168 }
void netDefaults(int type)
Definition Item.cs:1927

References Terraria.GameContent.Tile_Entities.TEHatRack._dyes, Terraria.GameContent.Tile_Entities.TEHatRack._items, Terraria.Item.netDefaults(), and Terraria.Item.Prefix().

+ Here is the call graph for this function: