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

[Action] implement lockable state flags #8877

Open
wants to merge 1 commit into
base: thewarwithin
Choose a base branch
from

Conversation

gastank
Copy link
Contributor

@gastank gastank commented May 29, 2024

State flags are added/removed via spell attribute parsing during action_t::init(). This means that anything set during construction can be overriden, and as such users must remember to explictly override init() and make changes there.

This allows state flags to be 'locked' in place during spell attribute parsing in action_t::init() such that any flag set/unset during action construction will not be changed. Any changes to state flags made while unlocked will always be applied.

State flags are added/removed via spell attribute parsing during
action_t::init(). This means that anything set during construction can
be overriden, and as such users must remember to explictly override
init() and make changes there.

This allows state flags to be 'locked' in place during spell attribute
parsing in action_t::init() such that any flag set/unset during action
construction will not be changed. Any changes to state flags made while
unlocked will always be applied.
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