Base class for interactive element managers.
More...
|
U | Add (U item) |
| Adds an item to the list.
|
|
void | AddRange (IEnumerable< U > collection) |
| Adds items to the list.
|
|
IEnumerator | GetEnumerator () |
| Gets the enumerator.
|
|
int | IndexOf (IOnlineMapsInteractiveElement element) |
| Index of item.
|
|
bool | Remove (U item, bool dispose=true) |
| Remove an item.
|
|
void | RemoveAll (bool dispose=true) |
| Remove all items.
|
|
void | RemoveAll (Predicate< U > match, bool dispose=true) |
| Removes all items which matches the predicate.
|
|
U | RemoveAt (int index, bool dispose=true) |
| Remove an item by index.
|
|
|
static U | AddItem (U item) |
| Adds an item to the list.
|
|
static void | AddItems (IEnumerable< U > collection) |
| Adds items to the list.
|
|
static void | Init () |
| Initializes the manager.
|
|
static void | RemoveAllItems () |
| Remove all items.
|
|
static void | RemoveAllItems (Predicate< U > match) |
| Removes all items which matches the predicate.
|
|
static bool | RemoveItem (U item, bool dispose=true) |
| Remove an item.
|
|
static U | RemoveItemAt (int index) |
| Remove an item by index.
|
|
static void | SetItems (IEnumerable< U > collection) |
| Sets the collection of items.
|
|
|
static Action< U > | OnAddItem |
| The event that occurs when an item is added.
|
|
static Action< U > | OnRemoveItem |
| The event that occurs when an item is removed.
|
|
|
static void | Redraw () |
| Redraws the map.
|
|
|
static T | instance [get] |
| Instance of the manager.
|
|
List< U > | items [get, set] |
| Gets / sets the list of items.
|
|
OnlineMaps | map [get] |
| Reference to the map.
|
|
static int | CountItems [get] |
| Count items.
|
|
int | Count [get] |
| Count items.
|
|
U | this[int index] [get, set] |
| Gets / sets item by index.
|
|
Base class for interactive element managers.
- Template Parameters
-
T | Type of manager |
U | Type of interactive element |
◆ Add()
Adds an item to the list.
- Parameters
-
- Returns
- Item
◆ AddItem()
Adds an item to the list.
- Parameters
-
- Returns
- Item
◆ AddItems()
Adds items to the list.
- Parameters
-
collection | Collection of items |
◆ AddRange()
Adds items to the list.
- Parameters
-
collection | Collection of items |
◆ GetEnumerator()
Gets the enumerator.
- Returns
- Enumerator
◆ IndexOf()
Index of item.
- Parameters
-
element | Interactive element |
- Returns
- Index of item
◆ Remove()
Remove an item.
- Parameters
-
item | Item |
dispose | Dispose the item |
- Returns
- True - success, false - otherwise
◆ RemoveAll() [1/2]
Remove all items.
- Parameters
-
◆ RemoveAll() [2/2]
Removes all items which matches the predicate.
- Parameters
-
match | Predicate |
dispose | Dispose the item |
◆ RemoveAllItems()
Removes all items which matches the predicate.
- Parameters
-
◆ RemoveAt()
Remove an item by index.
- Parameters
-
index | Index of item |
dispose | Dispose the item |
- Returns
- Item that was removed
◆ RemoveItem()
Remove an item.
- Parameters
-
item | Item |
dispose | Dispose the item |
- Returns
- True - success, false - otherwise
◆ RemoveItemAt()
Remove an item by index.
- Parameters
-
- Returns
- Item that was removed
◆ SetItems()
Sets the collection of items.
- Parameters
-
collection | Collection of items |
◆ this[int index]
Gets / sets item by index.
- Parameters
-
- Returns
- Item