Class WrappingPile<T, TWrapper>
Base type to represent a pile of objects inside a custom wrapper type.
Inheritance
WrappingPile<T, TWrapper>
Assembly: Discord.Addons.MpGame.dll
Syntax
public abstract class WrappingPile<T, TWrapper> : Pile<T>
where T : class
where TWrapper : struct, IWrapper<T>
Type Parameters
Name |
Description |
T |
The item type.
|
TWrapper |
The wrapper type.
|
Constructors
|
Improve this Doc
View Source
WrappingPile()
Declaration
|
Improve this Doc
View Source
WrappingPile(IEnumerable<T>)
Declaration
protected WrappingPile(IEnumerable<T> items)
Parameters
|
Improve this Doc
View Source
WrappingPile(IEnumerable<T>, Boolean)
Declaration
protected WrappingPile(IEnumerable<T> items, bool initShuffle)
Parameters
Methods
|
Improve this Doc
View Source
GetWrapperRefAt(Int32)
Gets a langword_csharp_ref to a wrapper
object at the specified index.
Declaration
protected ref TWrapper GetWrapperRefAt(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
Type |
Description |
TWrapper |
|
Exceptions
|
Improve this Doc
View Source
Wrap(T)
Puts an instance of type T
into a TWrapper
.
Declaration
protected abstract TWrapper Wrap(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Type |
Description |
TWrapper |
|