Feel
5.0
The best way to improve your game's feel and make it extra juicy
|
A improved list that lets you parse it and automatically have it loop to the start or end when you reach the end or start To use it : set the CurrentIndex to whatever you want, then use IncrementCurrentIndex / DecrementCurrentIndex to move it, get the current element via Current More...
Public Member Functions | |
virtual void | IncrementCurrentIndex () |
Increments the current index (towards the "right" of the list) More... | |
virtual void | DecrementCurrentIndex () |
Decrements the current index (towards the "left" of the list) More... | |
Public Attributes | |
virtual T | Current => this[CurrentIndex] |
Returns the current element More... | |
virtual int | PreviousIndex => (_currentIndex == 0) ? Count - 1 : _currentIndex - 1 |
Returns the previous index in the circular list More... | |
virtual int | NextIndex => (_currentIndex == Count - 1) ? 0 : _currentIndex + 1 |
Returns the next index in the circular list More... | |
Protected Member Functions | |
virtual int | GetCurrentIndex () |
Computes the current index More... | |
Properties | |
int | CurrentIndex [get, set] |
Lets you set the current index, or compute it if you get it More... | |
A improved list that lets you parse it and automatically have it loop to the start or end when you reach the end or start To use it : set the CurrentIndex to whatever you want, then use IncrementCurrentIndex / DecrementCurrentIndex to move it, get the current element via Current
T |
|
virtual |
Decrements the current index (towards the "left" of the list)
|
protectedvirtual |
Computes the current index
|
virtual |
Increments the current index (towards the "right" of the list)
virtual T MoreMountains.Tools.MMCircularList< T >.Current => this[CurrentIndex] |
Returns the current element
virtual int MoreMountains.Tools.MMCircularList< T >.NextIndex => (_currentIndex == Count - 1) ? 0 : _currentIndex + 1 |
Returns the next index in the circular list
virtual int MoreMountains.Tools.MMCircularList< T >.PreviousIndex => (_currentIndex == 0) ? Count - 1 : _currentIndex - 1 |
Returns the previous index in the circular list
|
getset |
Lets you set the current index, or compute it if you get it