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

◆ LoadTemporaryItemSlotContents()

void Terraria.Player.LoadTemporaryItemSlotContents ( BinaryReader reader)
inlineprivate

Definition at line 51430 of file Player.cs.

51431 {
51432 BitsByte bitsByte = reader.ReadByte();
51433 ItemSerializationContext context = ItemSerializationContext.SavingAndLoading;
51434 if (bitsByte[0])
51435 {
51436 _temporaryItemSlots[0] = new Item();
51437 _temporaryItemSlots[0].DeserializeFrom(reader, context);
51438 }
51439 if (bitsByte[1])
51440 {
51441 _temporaryItemSlots[1] = new Item();
51442 _temporaryItemSlots[1].DeserializeFrom(reader, context);
51443 }
51444 if (bitsByte[2])
51445 {
51446 _temporaryItemSlots[2] = new Item();
51447 _temporaryItemSlots[2].DeserializeFrom(reader, context);
51448 }
51449 if (bitsByte[3])
51450 {
51451 _temporaryItemSlots[3] = new Item();
51452 _temporaryItemSlots[3].DeserializeFrom(reader, context);
51453 }
51454 }
virtual byte ReadByte()
void DeserializeFrom(BinaryReader reader, ItemSerializationContext context)
Definition Item.cs:49998
Item[] _temporaryItemSlots
Definition Player.cs:2742

References System.IO.BinaryReader.ReadByte().