Class GameList<T>
- Namespace
- SkyrimForge.Game
- Assembly
- SkyrimForge.dll
A container to which entries are added and from which they are removed.
public sealed class GameList<T> : ReadableGameList<T>
Type Parameters
TThe type one entry becomes.
- Inheritance
-
GameList<T>
- Inherited Members
Methods
Add(T)
Appends one entry. Nothing frees an entry once it is appended.
public void Add(T value)
Parameters
valueT
AddRange(IEnumerable<T>)
Appends every one of entries in order.
public void AddRange(IEnumerable<T> entries)
Parameters
entriesIEnumerable<T>
Exceptions
- ArgumentNullException
entriesisnull.
Clear()
Empties the container without freeing its entries, which the game allocated and may free itself.
public void Clear()
RemoveAt(int)
Removes the entry at index without freeing memory the entry addresses.
public void RemoveAt(int index)
Parameters
indexint
Remarks
In a container of handles the index counts the entries Get() returns, a handle that names no object being passed over. In a container of pointers it counts every entry, a null one included, as GetSlots returns them.
Exceptions
- ArgumentOutOfRangeException
indexdoes not identify an entry.
Replace(IEnumerable<T>)
Empties the container and fills it with entries. The entries removed are not freed.
The entries are copied before the container is emptied, so entries may be a sequence that reads this container.
public void Replace(IEnumerable<T> entries)
Parameters
entriesIEnumerable<T>
Exceptions
- ArgumentNullException
entriesisnull.