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

◆ LoadTemporaryItemSlotContents()

void Terraria.Player.LoadTemporaryItemSlotContents ( BinaryReader reader)
inlineprivate

Definition at line 55611 of file Player.cs.

55612 {
55613 BitsByte bitsByte = reader.ReadByte();
55614 ItemSerializationContext context = ItemSerializationContext.SavingAndLoading;
55615 if (bitsByte[0])
55616 {
55617 _temporaryItemSlots[0] = new Item();
55618 _temporaryItemSlots[0].DeserializeFrom(reader, context);
55619 }
55620 if (bitsByte[1])
55621 {
55622 _temporaryItemSlots[1] = new Item();
55623 _temporaryItemSlots[1].DeserializeFrom(reader, context);
55624 }
55625 if (bitsByte[2])
55626 {
55627 _temporaryItemSlots[2] = new Item();
55628 _temporaryItemSlots[2].DeserializeFrom(reader, context);
55629 }
55630 if (bitsByte[3])
55631 {
55632 _temporaryItemSlots[3] = new Item();
55633 _temporaryItemSlots[3].DeserializeFrom(reader, context);
55634 }
55635 }
void DeserializeFrom(BinaryReader reader, ItemSerializationContext context)
Definition Item.cs:51837
Item[] _temporaryItemSlots
Definition Player.cs:3302

References Terraria.Player._temporaryItemSlots, and Terraria.Item.DeserializeFrom().

+ Here is the call graph for this function: