![]() |
Able
Askowl Base Library Enabler
|
Pick one item from a list. More...
Public Member Functions | |
| T | Pick () |
| Method called to pick an item More... | |
| T | Next () |
| Called when a pick fails and we need to try something else //#TBD#// More... | |
| void | Top () |
| //#TBD#// More... | |
| void | Reset () |
| Remove all choices for an empty list More... | |
Public Member Functions inherited from Askowl.Pick< T > | |
| T | Pick () |
| Method to call to return the selection More... | |
Properties | |
| T [] | Choices [get, set] |
| Used to update the choices to a new set using the same picker. More... | |
Definition at line 10 of file Selector.cs.
| T Askowl.Selector< T >.Next | ( | ) |
Called when a pick fails and we need to try something else //#TBD#//
Definition at line 51 of file Selector.cs.
| T Askowl.Selector< T >.Pick | ( | ) |
Definition at line 21 of file Selector.cs.
| void Askowl.Selector< T >.Reset | ( | ) |
| void Askowl.Selector< T >.Top | ( | ) |
| int Askowl.Selector< T >.CycleIndex => cycleIndex % choices.Length |
The location of the next choice in the sequence.
Definition at line 72 of file Selector.cs.
| int Askowl.Selector< T >.ExhaustiveBelow = 1 |
| bool Askowl.Selector< T >.IsRandom = true |
Defaults to random. Set false to cycle through entries sequentially
Definition at line 12 of file Selector.cs.
|
getset |
Used to update the choices to a new set using the same picker.
Definition at line 61 of file Selector.cs.