bn::green_swap_toggle_action class

Toggles if green swap must be enabled or not when the action is updated a given number of times.

Base classes

template<class PropertyManager>
class bool_toggle_template_action<green_swap_manager>
Toggles a boolean property when the action is updated a given number of times.

Constructors, destructors, conversion operators

green_swap_toggle_action(int duration_updates) explicit
Constructor.

Function documentation

bn::green_swap_toggle_action::green_swap_toggle_action(int duration_updates) explicit

Constructor.

Parameters
duration_updates How many times the action has to be updated to toggle if green swap must be inverted or not.