A set of items where only one is active and used.
More...
|
| BufferedItem (int count=2) |
| Initializes a new instance of the BufferedItem{T} class. More...
|
|
| BufferedItem (params T[] instances) |
| Initializes a new instance of the BufferedItem{T} class. More...
|
|
T | Swap () |
| Swaps out the _currentKeyboardState item for the next one. More...
|
|
T | Get () |
| Gets the currently active item. More...
|
|
T | Get (int relativeOffset) |
| Returns an item in the rotation queue that is relative to the current item by the given offset. More...
|
|
A set of items where only one is active and used.
- Template Parameters
-
T | The type of item stored. |
Forge.Collections.BufferedItem< T >.BufferedItem |
( |
int |
count = 2 | ) |
|
Initializes a new instance of the BufferedItem{T} class.
- Parameters
-
count | The number of instances to allocate |
Forge.Collections.BufferedItem< T >.BufferedItem |
( |
params T[] |
instances | ) |
|
Initializes a new instance of the BufferedItem{T} class.
- Parameters
-
instances | The instances to swap between. |
T Forge.Collections.BufferedItem< T >.Get |
( |
| ) |
|
Gets the currently active item.
T Forge.Collections.BufferedItem< T >.Get |
( |
int |
relativeOffset | ) |
|
Returns an item in the rotation queue that is relative to the current item by the given offset.
- Parameters
-
relativeOffset | How far away from the current item |
- Returns
T Forge.Collections.BufferedItem< T >.Swap |
( |
| ) |
|
Swaps out the _currentKeyboardState item for the next one.
- Returns
- The item that was deactivated
The documentation for this class was generated from the following file:
- Forge.Collections/BufferedItem.cs