template<class PropertyManager>
bn::bool_toggle_template_action class

Toggles a boolean property when the action is updated a given number of times.

Template parameters
PropertyManager Reads and writes the property to modify.

Constructors, destructors, conversion operators

bool_toggle_template_action(int duration_updates) protected explicit
Constructor.

Public functions

void reset()
Resets the property to its initial state.
void update()
Toggles the property when the given amount of update calls are done.
auto duration_updates() const -> int
Returns how much times the action has to be updated to toggle the property.

Function documentation

template<class PropertyManager>
bn::bool_toggle_template_action<PropertyManager>::bool_toggle_template_action(int duration_updates) explicit protected

Constructor.

Parameters
duration_updates How much times the action has to be updated to toggle the property.