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

Saving Cell Calls to the game file #299

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

FireRainV
Copy link
Contributor

@FireRainV FireRainV commented Dec 26, 2024

Also, added Game.world:removeCall(name), Game.world:clearCalls() and adjusted the functionality of Game.world:replaceCall(name, index, scene)

BREAKING CHANGE!!!

Also, added Game.world:removeCall(name) and adjusted the functionality of Game.world:replaceCall(name, index (now old_name), scene)
Copy link
Collaborator

@SylviBlossom SylviBlossom left a comment

Choose a reason for hiding this comment

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

This looks like a good system to me, however I'd suggest that, if changing and breaking the existing cell system, it should be moved out of World into Game directly, since it's static data and has nothing to do with the temporary world state, especially given it's saved to the file now.

To fit with the addition of removeCall, also consider renaming registerCall to addCall.

src/engine/game/world.lua Outdated Show resolved Hide resolved
@FireRainV
Copy link
Contributor Author

I've done the changes you requested

@FireRainV
Copy link
Contributor Author

FireRainV commented Dec 27, 2024

@SylviBlossom The reason I kept it as registerCall instead of addCall is because we're also using registerAct while there is a removeAct. It's for consistency sake.

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.

2 participants