Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace repeat bool with a Repeat enum #41

Merged
merged 10 commits into from
Sep 4, 2022
Merged

Replace repeat bool with a Repeat enum #41

merged 10 commits into from
Sep 4, 2022

Conversation

hikikones
Copy link
Owner

@hikikones hikikones commented Sep 2, 2022

You can now specify how many times an action should repeat.

pub enum Repeat {
    Amount(u32),
    Forever,
}

A value of Repeat::Amount(0) means it will repeat zero times, i.e. only run once as before when the repeat bool was set to false.

@hikikones hikikones changed the title Replace repeat bool with a Repeat enum Replace repeat bool with an AddRepeat enum Sep 2, 2022
@hikikones hikikones changed the title Replace repeat bool with an AddRepeat enum Replace repeat bool with an Repeat enum Sep 4, 2022
@hikikones hikikones changed the title Replace repeat bool with an Repeat enum Replace repeat bool with a Repeat enum Sep 4, 2022
@hikikones hikikones merged commit f24c01a into main Sep 4, 2022
@hikikones hikikones deleted the repeat_enum branch September 4, 2022 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant