OpenTD.Utility.UniqueItemList< T > Class Template Reference
Last update: 16.07.2025Acts like a List, except Add and Insert will remove existing items that equal the added/inserted item (according to its definition of Equals) More...
Inheritance diagram for OpenTD.Utility.UniqueItemList< T >:

Public Member Functions | |
| void | Add (T item) |
| Will remove any existing item that equals the added item. | |
| void | Clear () |
| bool | Contains (T item) |
| void | CopyTo (T[] array, int arrayIndex) |
| IEnumerator< T > | GetEnumerator () |
| int | IndexOf (T item) |
| void | Insert (int index, T item) |
| Will remove any existing item that equals the inserted item. | |
| bool | Remove (T item) |
| void | RemoveAt (int index) |
| int | RemoveAll (Predicate< T > match) |
Properties | |
| T | this[int index] [get, set] |
| int | Count [get] |
| bool | IsReadOnly [get] |
Detailed Description
Acts like a List, except Add and Insert will remove existing items that equal the added/inserted item (according to its definition of Equals)
- Template Parameters
-
T
Member Function Documentation
◆ Add()
|
inline |
Will remove any existing item that equals the added item.
- Parameters
-
item
◆ Clear()
|
inline |
◆ Contains()
|
inline |
◆ CopyTo()
|
inline |
◆ GetEnumerator()
|
inline |
◆ IndexOf()
|
inline |
◆ Insert()
|
inline |
Will remove any existing item that equals the inserted item.
- Parameters
-
item
◆ Remove()
|
inline |
◆ RemoveAll()
|
inline |
◆ RemoveAt()
|
inline |
Property Documentation
◆ Count
|
get |
◆ IsReadOnly
|
get |
◆ this[int index]
|
getset |
The documentation for this class was generated from the following file:
- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV_ALPHA/buildXX/OpenTD/Utility/UniqueItemList.cs