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

◆ ReadExtraData()

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

Reimplemented from Terraria.DataStructures.TileEntity.

Definition at line 157 of file TEDisplayDoll.cs.

158 {
159 BitsByte bitsByte = reader.ReadByte();
160 BitsByte bitsByte2 = reader.ReadByte();
161 for (int i = 0; i < 8; i++)
162 {
163 _items[i] = new Item();
164 Item item = _items[i];
165 if (bitsByte[i])
166 {
167 item.netDefaults(reader.ReadInt16());
168 item.Prefix(reader.ReadByte());
169 item.stack = reader.ReadInt16();
170 }
171 }
172 for (int j = 0; j < 8; j++)
173 {
174 _dyes[j] = new Item();
175 Item item2 = _dyes[j];
176 if (bitsByte2[j])
177 {
178 item2.netDefaults(reader.ReadInt16());
179 item2.Prefix(reader.ReadByte());
180 item2.stack = reader.ReadInt16();
181 }
182 }
183 }
void netDefaults(int type)
Definition Item.cs:1927

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

+ Here is the call graph for this function: