C# Class Ensage.Common.Menu.AbilityToggler

Show file Open project: EnsageSharp/Ensage.Common Class Usage Examples

Public Properties

Property Type Description
Dictionary bool>.Dictionary
PositionDictionary float[]>.Dictionary
SValuesDictionary bool>.Dictionary

Public Methods

Method Description
AbilityToggler ( bool>.Dictionary abilityDictionary ) : System

Initializes a new instance of the AbilityToggler struct.

Add ( string name, bool defaultValue = true ) : void

The add.

Add ( string name, string textureName, bool defaultValue = true ) : void

You cannot add duplicates with this method, use Add(name, defaultValue) instead

IsEnabled ( string name ) : bool

The is enabled.

Remove ( string name ) : void

The remove.

Method Details

AbilityToggler() public method

Initializes a new instance of the AbilityToggler struct.
public AbilityToggler ( bool>.Dictionary abilityDictionary ) : System
abilityDictionary bool>.Dictionary /// The ability dictionary. ///
return System

Add() public method

The add.
public Add ( string name, bool defaultValue = true ) : void
name string /// The name. ///
defaultValue bool /// The default value. ///
return void

Add() public method

You cannot add duplicates with this method, use Add(name, defaultValue) instead
public Add ( string name, string textureName, bool defaultValue = true ) : void
name string /// The name. ///
textureName string /// The texture name. ///
defaultValue bool /// The default value. ///
return void

IsEnabled() public method

The is enabled.
public IsEnabled ( string name ) : bool
name string /// The name. ///
return bool

Remove() public method

The remove.
public Remove ( string name ) : void
name string /// The name. ///
return void

Property Details

Dictionary public property

The dictionary.
public Dictionary Dictionary
return bool>.Dictionary

PositionDictionary public property

The position dictionary.
public Dictionary PositionDictionary
return float[]>.Dictionary

SValuesDictionary public property

The s values dictionary.
public Dictionary SValuesDictionary
return bool>.Dictionary