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

Adding undo + redo #86

Merged
merged 4 commits into from Feb 19, 2024
Merged

Conversation

voylin
Copy link
Collaborator

@voylin voylin commented Feb 17, 2024

This is a very simple undo/redo system. Basically anything which needs to be able to be undone/redone, needs to be called through the ActionHandler.

This will need work in the future as this is probably not the best nor most performant way of handling this. But good enough for now.

I'll leave this as a PR for a bit to see if people have any comments/suggestions/improvements on this.

@voylin voylin added the Feature label Feb 17, 2024
@voylin voylin added this to the Version 1.0.0 milestone Feb 17, 2024
@voylin voylin self-assigned this Feb 17, 2024
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was something I accidentally left in from my earlier PR ^^"

@aappaapp
Copy link
Collaborator

May I ask what does "al" stands for in al_action_handler.gd?

@voylin
Copy link
Collaborator Author

voylin commented Feb 17, 2024

May I ask what does "al" stands for in al_action_handler.gd?

al = autoload
I do this to make it easier to see when I'm inside on an autoload or not.

@voylin voylin merged commit f509074 into VoylinsGamedevJourney:master Feb 19, 2024
1 check passed
@voylin voylin deleted the Action-handler branch February 19, 2024 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants