bn::hbe_visible_toggle_action class

Toggles if a hbe_ptr must be committed to the GBA or not when the action is updated a given number of times.

Base classes

template<typename Value, class PropertyManager>
class bool_toggle_value_template_action<hbe_ptr, hbe_visible_manager>
Toggles a boolean property of a value when the action is updated a given number of times.

Constructors, destructors, conversion operators

hbe_visible_toggle_action(const hbe_ptr& hbe, int duration_updates)
Constructor.
hbe_visible_toggle_action(hbe_ptr&& hbe, int duration_updates)
Constructor.

Public functions

auto hbe() const -> const hbe_ptr&
Returns the hbe_ptr to modify.

Function documentation

bn::hbe_visible_toggle_action::hbe_visible_toggle_action(const hbe_ptr& hbe, int duration_updates)

Constructor.

Parameters
hbe hbe_ptr to copy.
duration_updates How much times the action has to be updated to toggle if the given hbe_ptr must be committed to the GBA or not.

bn::hbe_visible_toggle_action::hbe_visible_toggle_action(hbe_ptr&& hbe, int duration_updates)

Constructor.

Parameters
hbe hbe_ptr to move.
duration_updates How much times the action has to be updated to toggle if the given hbe_ptr must be committed to the GBA or not.