SpaceRTS - Starter Pack  1.3
GameBase.ISelectableCriteria Interface Reference

When implemented, the object can filter from a list of Selectables which ones will be finally selected. More...

Inheritance diagram for GameBase.ISelectableCriteria:
SpaceRTSKit.Core.HumanPlayerHandler

Public Member Functions

IEnumerable< SelectableFilteringSelectablesByBox (IEnumerable< Selectable > source)
 Called when a selection box is performed. receives a collection of selectables that must be filtered when you don't want to select all of them. More...
 
IEnumerable< SelectableFilteringSelectablesByRay (IEnumerable< Selectable > source)
 Called when a selection ray is performed (moving the cursor over the screen). receives a collection of selectables that must be filtered when you don't want to select all of them. More...
 

Detailed Description

When implemented, the object can filter from a list of Selectables which ones will be finally selected.

Member Function Documentation

◆ FilteringSelectablesByBox()

IEnumerable<Selectable> GameBase.ISelectableCriteria.FilteringSelectablesByBox ( IEnumerable< Selectable source)

Called when a selection box is performed. receives a collection of selectables that must be filtered when you don't want to select all of them.

Parameters
sourceCollection of the current hovered selectables.
Returns
The filtered collection of selectables.

Implemented in SpaceRTSKit.Core.HumanPlayerHandler.

◆ FilteringSelectablesByRay()

IEnumerable<Selectable> GameBase.ISelectableCriteria.FilteringSelectablesByRay ( IEnumerable< Selectable source)

Called when a selection ray is performed (moving the cursor over the screen). receives a collection of selectables that must be filtered when you don't want to select all of them.

Parameters
sourceCollection of the current hovered selectables.
Returns
The filtered collection of selectables.

Implemented in SpaceRTSKit.Core.HumanPlayerHandler.