C# Class Ensage.Common.Menu.PriorityChanger

Mostrar archivo Open project: EnsageSharp/Ensage.Common

Public Properties

Property Type Description
AbilityToggler AbilityToggler
Dictionary uint>.Dictionary
PositionDictionary float[]>.Dictionary
SValuesDictionary uint>.Dictionary

Public Methods

Method Description
Add ( string itemName, uint defaultValue, bool enabled = true ) : void

The add.

DecreasePriority ( string itemName ) : void

The decrease priority.

Draw ( System.Vector2 position, float width, float height, System.Vector2 mouseScreenPosition, MenuItem menuItem ) : void

The draw.

GetPriority ( string itemName ) : uint

The is enabled.

IncreasePriority ( string itemName ) : void

The increase priority.

OnReceiveMessage ( System.Utils message, System.Vector2 cursorPos, MenuItem menuItem ) : bool

The on receive message.

PriorityChanger ( List itemList, AbilityToggler abilityToggler, string changerName = "", uint defaultPriority = 4, bool useAbilityToggler = true ) : System

Initializes a new instance of the PriorityChanger struct.

PriorityChanger ( List itemList, string changerName = "", bool useAbilityToggler = false ) : System
PriorityChanger ( List itemList, uint defaultPriority, string changerName = "", bool useAbilityToggler = false ) : System

Initializes a new instance of the PriorityChanger struct.

Remove ( string itemName ) : void

The remove.

SetPriority ( string itemName, uint priorityValue ) : void

The set priority.

UpdatePriorities ( ) : void

The update priorities.

Method Details

Add() public method

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

DecreasePriority() public method

The decrease priority.
public DecreasePriority ( string itemName ) : void
itemName string /// The item name. ///
return void

Draw() public method

The draw.
public Draw ( System.Vector2 position, float width, float height, System.Vector2 mouseScreenPosition, MenuItem menuItem ) : void
position System.Vector2 /// The position. ///
width float /// The width. ///
height float /// The height. ///
mouseScreenPosition System.Vector2 /// The mouse screen position. ///
menuItem MenuItem /// The menu item. ///
return void

GetPriority() public method

The is enabled.
public GetPriority ( string itemName ) : uint
itemName string /// The item name. ///
return uint

IncreasePriority() public method

The increase priority.
public IncreasePriority ( string itemName ) : void
itemName string /// The item name. ///
return void

OnReceiveMessage() public method

The on receive message.
public OnReceiveMessage ( System.Utils message, System.Vector2 cursorPos, MenuItem menuItem ) : bool
message System.Utils /// The message. ///
cursorPos System.Vector2 /// The cursor position. ///
menuItem MenuItem /// The menu item. ///
return bool

PriorityChanger() public method

Initializes a new instance of the PriorityChanger struct.
public PriorityChanger ( List itemList, AbilityToggler abilityToggler, string changerName = "", uint defaultPriority = 4, bool useAbilityToggler = true ) : System
itemList List /// The item list. ///
abilityToggler AbilityToggler /// The ability toggler. ///
changerName string /// The changer name. ///
defaultPriority uint /// The default Priority. ///
useAbilityToggler bool /// The use ability toggler. ///
return System

PriorityChanger() public method

public PriorityChanger ( List itemList, string changerName = "", bool useAbilityToggler = false ) : System
itemList List
changerName string
useAbilityToggler bool
return System

PriorityChanger() public method

Initializes a new instance of the PriorityChanger struct.
public PriorityChanger ( List itemList, uint defaultPriority, string changerName = "", bool useAbilityToggler = false ) : System
itemList List /// The item List. ///
defaultPriority uint /// The default Priority. ///
changerName string /// The changer Name. ///
useAbilityToggler bool /// The use Ability Toggler. ///
return System

Remove() public method

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

SetPriority() public method

The set priority.
public SetPriority ( string itemName, uint priorityValue ) : void
itemName string /// The item name. ///
priorityValue uint /// The priority value. ///
return void

UpdatePriorities() public method

The update priorities.
public UpdatePriorities ( ) : void
return void

Property Details

AbilityToggler public_oe property

The ability toggler.
public AbilityToggler,Ensage.Common.Menu AbilityToggler
return AbilityToggler

Dictionary public_oe property

The dictionary.
public Dictionary Dictionary
return uint>.Dictionary

PositionDictionary public_oe property

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

SValuesDictionary public_oe property

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