C# Class hyades.screen.menu.controls.Switch

Inheritance: Screen
显示文件 Open project: zfedoran/bubblebound

Public Properties

Property Type Description
index int
value bool

Public Methods

Method Description
Draw ( GraphicsDevice device ) : void
OnActive ( double elapsed, InputDevice input ) : void
SetValue ( bool value ) : void
Switch ( Menu parent, int index, bool value, Action action ) : System
Update ( double elapsed ) : void

Method Details

Draw() public method

public Draw ( GraphicsDevice device ) : void
device GraphicsDevice
return void

OnActive() public method

public OnActive ( double elapsed, InputDevice input ) : void
elapsed double
input InputDevice
return void

SetValue() public method

public SetValue ( bool value ) : void
value bool
return void

Switch() public method

public Switch ( Menu parent, int index, bool value, Action action ) : System
parent Menu
index int
value bool
action Action
return System

Update() public method

public Update ( double elapsed ) : void
elapsed double
return void

Property Details

index public_oe property

public int index
return int

value public_oe property

public bool value
return bool