Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ReLogic.Utilities.SlotVector< T > Class Template Referencesealed

Classes

class  Enumerator
 
struct  ItemPair
 

Public Member Functions

 SlotVector (int capacity)
 
SlotId Add (T value)
 
void Clear ()
 
bool Remove (SlotId id)
 
bool Has (SlotId id)
 
bool Has (int index)
 
ItemPair GetPair (int index)
 
bool TryGetValue (SlotId id, [NotNullWhen(true)] out T? result)
 
bool TryGetValue (int index, [NotNullWhen(true)] out T? result)
 

Properties

this[int index] [get, set]
 
this[SlotId id] [get, set]
 
int Count [get, private set]
 
int Capacity [get]
 

Private Member Functions

IEnumerator IEnumerable. GetEnumerator ()
 
IEnumerator< ItemPair > IEnumerable< ItemPair >. GetEnumerator ()
 

Private Attributes

readonly ItemPair[] _array
 
uint _freeHead
 
uint _usedSpaceLength
 

Static Private Attributes

const uint MAX_INDEX = 65535u
 

Detailed Description

Definition at line 8 of file SlotVector.cs.


The documentation for this class was generated from the following file: