![]() |
SpaceRTS - Starter Pack
1.3
|
The system in control of all GameEntities that can be hovered, highlighted and selected. More...
Public Member Functions | |
| IEnumerable< Selectable > | CollectSelectablesInBounds (Bounds viewportBounds) |
| Collects all Selectables whose BoundCollider center is inside the given Camera viewport bounds. More... | |
| Selectable | GetSelectable (Collider colliderToCheck) |
| Given a collider find its matching Selectable. More... | |
| IEnumerable< Selectable > | CollectSelectables (IEnumerable< Collider > collidersToCheck) |
| Collects each selectable matching their given BoundColliders. More... | |
| void | SetAsHovering (IEnumerable< Selectable > selectablesToHover) |
| Marks each selectable as Hovered and remove hovered mark for each already hovered selectables that are not in selectablesToHover. More... | |
| void | ConfirmAllHighlightsAsSelected () |
| Marks all selectables currently highlighted as selected. More... | |
| void | RemoveAllHovering () |
| Removes hover mark of each already hovering selectables (removes also its highlight mark if they have) More... | |
| void | RemoveHovering (Selectable toUnhover) |
| void | SetAsHighlighted (IEnumerable< Selectable > selectablesToHighligh) |
| Marks each Selectable as Highlighted. each Selectable in selectablesToHighligh must be already marked as hovered in order to also be highlighted. More... | |
Public Member Functions inherited from GameBase.GameSceneSystem | |
| virtual void | GenerateDefaultValues () |
Public Attributes | |
| Action< GameEntity > | selectionAddedEntity |
| Action< GameEntity > | selectionRemovedEntity |
| Action | selectionRemovedAll |
Properties | |
| int | SelectedEntitiesCount [get] |
| Count of Selectables selecteds. More... | |
| bool | HasSelectedEntities [get] |
| There's at least one Selectable selected? More... | |
| IEnumerable< Selectable > | Selecteds [get] |
| Returns a IEnumerable<Selectable> containing all the selecteds Selectables. More... | |
| bool | HasHoveredEntities [get] |
| There's at least one Selectable hovered? More... | |
| IEnumerable< Selectable > | Hoverings [get] |
| Returns a IEnumerable<Selectable> containing all the hovered Selectables. More... | |
| List< Selectable > | OrderedHoveringEntities [get] |
| Returns a list of ordered Selectables. That order is given by the SelectionOrder wich is a value increased each time a hovered entity is selected. This allows us to known from all the currently hovered entities which one was already selected and which one not. More... | |
Properties inherited from GameBase.GameSceneSystem | |
| GameScene | gameScene [get] |
Additional Inherited Members | |
Static Public Member Functions inherited from GameBase.GameSceneSystem | |
| static bool | ValidateExists< T > (UnityEngine.Object context) |
| static void | CreateDefault< T > (UnityEngine.Object context) |
| static T | Find< T > (UnityEngine.Object context) |
| static T | GetValid< T > (UnityEngine.Object context) |
Protected Member Functions inherited from GameBase.GameSceneSystem | |
| virtual void | OnValidate () |
| Finds the GameScene in the current hierarchy going from parent to parent. Also registers the scene system in that GameScene. More... | |
| virtual void | Reset () |
| virtual void | ValidateSceneSystem () |
The system in control of all GameEntities that can be hovered, highlighted and selected.
| IEnumerable<Selectable> GameBase.SelectionSystem.CollectSelectables | ( | IEnumerable< Collider > | collidersToCheck | ) |
Collects each selectable matching their given BoundColliders.
| collidersToCheck |
| IEnumerable<Selectable> GameBase.SelectionSystem.CollectSelectablesInBounds | ( | Bounds | viewportBounds | ) |
Collects all Selectables whose BoundCollider center is inside the given Camera viewport bounds.
| viewportBounds | The viewport bounds where to collect the matching Selectables |
| void GameBase.SelectionSystem.ConfirmAllHighlightsAsSelected | ( | ) |
Marks all selectables currently highlighted as selected.
| Selectable GameBase.SelectionSystem.GetSelectable | ( | Collider | colliderToCheck | ) |
Given a collider find its matching Selectable.
| colliderToCheck | The collider matching the requested selectable. |
| void GameBase.SelectionSystem.RemoveAllHovering | ( | ) |
Removes hover mark of each already hovering selectables (removes also its highlight mark if they have)
| void GameBase.SelectionSystem.RemoveHovering | ( | Selectable | toUnhover | ) |
| void GameBase.SelectionSystem.SetAsHighlighted | ( | IEnumerable< Selectable > | selectablesToHighligh | ) |
Marks each Selectable as Highlighted. each Selectable in selectablesToHighligh must be already marked as hovered in order to also be highlighted.
| selectablesToHighligh | Enumerable with the group of hovered Selectables to be highlighted. |
| void GameBase.SelectionSystem.SetAsHovering | ( | IEnumerable< Selectable > | selectablesToHover | ) |
Marks each selectable as Hovered and remove hovered mark for each already hovered selectables that are not in selectablesToHover.
| selectablesToHover |
| Action<GameEntity> GameBase.SelectionSystem.selectionAddedEntity |
| Action GameBase.SelectionSystem.selectionRemovedAll |
| Action<GameEntity> GameBase.SelectionSystem.selectionRemovedEntity |
|
get |
There's at least one Selectable hovered?
|
get |
There's at least one Selectable selected?
|
get |
Returns a IEnumerable<Selectable> containing all the hovered Selectables.
|
get |
Returns a list of ordered Selectables. That order is given by the SelectionOrder wich is a value increased each time a hovered entity is selected. This allows us to known from all the currently hovered entities which one was already selected and which one not.
|
get |
Count of Selectables selecteds.
|
get |
Returns a IEnumerable<Selectable> containing all the selecteds Selectables.