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

◆ Has() [2/2]

bool ReLogic.Utilities.SlotVector< T >.Has ( SlotId id)
inline

Definition at line 180 of file SlotVector.cs.

181 {
182 uint index = id.Index;
183 if (index >= _array.Length)
184 {
185 return false;
186 }
187 if (!_array[index].Id.IsActive || id != _array[index].Id)
188 {
189 return false;
190 }
191 return true;
192 }
readonly ItemPair[] _array
Definition SlotVector.cs:63

References ReLogic.Utilities.SlotVector< T >._array, ReLogic.Utilities.SlotVector< T >.ItemPair.Id, and System.index.

Referenced by ReLogic.Utilities.SlotVector< T >.GetPair().