Provides API to connect Storage or StoragesDatabase.StorageContainer with StorageGUIElement handling UI.
|
void | Set (params Guid[] storageIds) |
| Loads storages data from StoragesDatabase.Active by provided ids and instantiates them to the UI. More...
|
|
void | Set (ICollection< Guid > storageIds) |
| Loads storages data from StoragesDatabase.Active by provided ids and instantiates them to the UI. More...
|
|
void | Add (SourceType item) |
| Connects new SourceType source to UI. More...
|
|
void | Clear () |
| Clears entire UI. More...
|
|
bool | Contains (SourceType item) |
| Checks is the SourceType connected to UI. More...
|
|
void | CopyTo (SourceType[] array, int arrayIndex) |
| Copies references of rented storages to the destination array. More...
|
|
IEnumerator< SourceType > | GetEnumerator () |
| Enumerates sources connected with the UI. More...
|
|
int | IndexOf (SourceType item) |
| Looking for GUI element with connected SourceType instance. More...
|
|
void | Insert (int index, SourceType item) |
| Inserts GUI element connected to the source to the collection. More...
|
|
bool | Remove (SourceType item) |
| Removes GUI element of collection with connected storage. More...
|
|
void | RemoveAt (int index) |
| Removes GUI element from GUICollectionHubEventRelay.collection by index. More...
|
|
void | Set (ICollection< SourceType > content) |
| Loads to UI bunch of SourceTypes. More...
|
|
void | Set (params SourceType[] content) |
| Loads to UI bunch of SourceTypes. More...
|
|
|
AGUIElementsCollection | CollectionGUI [get] |
| Attached collection GUI.
|
|
GUIElementType | ElementTemplatePrefab [get, set] |
| Prefab of the GUI element that will be created for SourceType instance during binding to UI.
|
|
SourceType | this[int index] [get, set] |
| Provides access to UI element as connected SourceType. More...
|
|
int | Count [get] |
| Count of elements placed at the UI. More...
|
|
bool | IsReadOnly [get] |
| Redirects to GUICollectionHubEventRelay.collection property.
|
|
◆ Add()
Connects new SourceType source to UI.
- Parameters
-
item | SourceType to connect. |
◆ Clear()
Clears entire UI.
Not releases rented storages.
◆ Contains()
Checks is the SourceType connected to UI.
- Parameters
-
item | SourceType to search. |
- Returns
- Result of search.
true
if connected to the UI.
◆ CopyTo()
Copies references of rented storages to the destination array.
- Parameters
-
array | Destination array. |
arrayIndex | Start index to array insert. |
In case if GUICollectionHubEventRelay.collection contains elements not derived from GUIElementType such elements will be avoided.
◆ GetEnumerator()
Enumerates sources connected with the UI.
- Returns
- Sources enumerator.
◆ IndexOf()
Looking for GUI element with connected SourceType instance.
- Parameters
-
item | Connected source to search. |
- Returns
- Index of GUI element in GUICollectionHubEventRelay.collection in case if found. -1 otherwise.
◆ Insert()
Inserts GUI element connected to the source to the collection.
- Parameters
-
index | Indexed in collection as insert destination. |
item | Source item to GUI attach. |
◆ Remove()
Removes GUI element of collection with connected storage.
- Parameters
-
item | Connected storage to detach from UI. |
- Returns
- Is GUI element had been found.
◆ RemoveAt()
Removes GUI element from GUICollectionHubEventRelay.collection by index.
- Parameters
-
◆ Set() [1/4]
void Doloro.InvetorySystem.UI.DataBridge.StoragesCollectionDataConnector.Set |
( |
ICollection< Guid > |
storageIds | ) |
|
◆ Set() [2/4]
Loads to UI bunch of SourceTypes.
- Parameters
-
content | Collection of rented storages. |
◆ Set() [3/4]
void Doloro.InvetorySystem.UI.DataBridge.StoragesCollectionDataConnector.Set |
( |
params Guid[] |
storageIds | ) |
|
◆ Set() [4/4]
Loads to UI bunch of SourceTypes.
- Parameters
-
content | Collection of rented storages. |
◆ Count
Count of elements placed at the UI.
Note that in case if you add a custom UIEngine2.AGUIElement to the GUICollectionHubEventRelay.collection directly then this element will be count as part of collection.
◆ this[int index]
Provides access to UI element as connected SourceType.
- Parameters
-
index | Index of element in UI collection. |
- Returns
- SourceType connected to certain UI element of collection in case if that element instance derived from the GUIElementType.
null
in case if collection item is manually added UIEngine2.AGUIElement of another type.
In case if UIEngine2.AGUIElement as collection item not derived from GUIElementType then during set operation it will be replaced with Insert(int, SourceType) implementation.
The documentation for this class was generated from the following file:
- D:/Work/GitHub/DGDK22/Assets/Tauri Interactive/Doloro-GDK/Doloro-Inventory/Runtime/Scripts/Storages/Extensions/DUI2/Elements Collection/StoragesCollectionDataConnector.cs