DC/RTS Documentation  v1.62
A Unity3D System Incorporating the Functionality of a Dungeon Crawler or Real Time Strategy System
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
MultiSelectToggle Class Reference

This class is used for rendering the multiselect rectangle when in RTS mode. More...

Inheritance diagram for MultiSelectToggle:

Public Member Functions

void SetInitialOptions (Material material, ControllerType gametype)
 Sets Initial Options of the MultiSelectToggle. More...
 
void ClearSelectedTargets ()
 Disables and Clears the Selected Objects. More...
 
List< Transform > getCurrentlySelected ()
 Returns the List of Unity3D Transform Objects that are Selected. More...
 
List< Transform > getPreviouslySelected ()
 Returns the List of Unity3D Transform Objects that were previously Selected. More...
 
bool isMovementAllowed ()
 Is Movement Allowed for a selected Control Object? More...
 

Static Public Member Functions

static int getMultiSelectionCount ()
 Gets how many Control Objects are currently Selected. More...
 

Detailed Description

This class is used for rendering the multiselect rectangle when in RTS mode.

This class also keeps track of the selected ControlObjects.

Member Function Documentation

void MultiSelectToggle.ClearSelectedTargets ( )

Disables and Clears the Selected Objects.

List<Transform> MultiSelectToggle.getCurrentlySelected ( )

Returns the List of Unity3D Transform Objects that are Selected.

static int MultiSelectToggle.getMultiSelectionCount ( )
static

Gets how many Control Objects are currently Selected.

Returns
List<Transform> MultiSelectToggle.getPreviouslySelected ( )

Returns the List of Unity3D Transform Objects that were previously Selected.

Returns
bool MultiSelectToggle.isMovementAllowed ( )

Is Movement Allowed for a selected Control Object?

void MultiSelectToggle.SetInitialOptions ( Material  material,
ControllerType  gametype 
)

Sets Initial Options of the MultiSelectToggle.

Setting the Material and the Game Type.

Parameters
materialThe Material of the Box Selection. (This Needs to contain VertexColorUnlit Shader of some sort)
gametypeThe Game Type of the System.

The documentation for this class was generated from the following file: