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

◆ AllocateSlots()

static int Terraria.ID.PlayerItemSlotID.AllocateSlots ( int amount,
bool canNetRelay )
inlinestaticprivate

Definition at line 67 of file PlayerItemSlotID.cs.

68 {
69 int nextSlotId = _nextSlotId;
70 _nextSlotId += amount;
71 int num = CanRelay.Length;
72 Array.Resize(ref CanRelay, num + amount);
73 for (int i = num; i < _nextSlotId; i++)
74 {
75 CanRelay[i] = canNetRelay;
76 }
77 return nextSlotId;
78 }

References Terraria.ID.PlayerItemSlotID._nextSlotId, and Terraria.ID.PlayerItemSlotID.CanRelay.

Referenced by Terraria.ID.PlayerItemSlotID.PlayerItemSlotID().