BomberUnits
...a Unity learning project
InputScheme Class Reference

Holds the Input axes of a given input setting. More...

+ Collaboration diagram for InputScheme:

Public Member Functions

 InputScheme (string description, string horizontal, string vertical, string fire)
 
void Register ()
 
void Use ()
 
void Free ()
 
void UseInsteadOf (InputScheme previous)
 
bool IsInUse ()
 
override string ToString ()
 

Static Public Member Functions

static InputScheme FromKey (int dictKey)
 
static InputScheme FromName (string description)
 
static InputScheme GetInvalid ()
 
static IEnumerable< InputSchemeGetAll ()
 
static InputScheme GetNextUnused ()
 
static int GetCount ()
 

Public Attributes

string description
 
string horizontal
 
string vertical
 
string fire
 

Properties

int dictKey [get, private set]
 

Private Attributes

bool inUse
 

Static Private Attributes

static Dictionary< int, InputSchemeinstances = new Dictionary<int, InputScheme>()
 

Detailed Description

Holds the Input axes of a given input setting.

A list of available schemes is kept in player management One scheme is assigned to each local player, marking this scheme as taken in the process.

Definition at line 9 of file InputScheme.cs.


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