Skip to content

State refactor - #7

Open
gregfagan wants to merge 2 commits into
masterfrom
stateRefactor
Open

State refactor#7
gregfagan wants to merge 2 commits into
masterfrom
stateRefactor

Conversation

@gregfagan

Copy link
Copy Markdown
Collaborator

No description provided.

* Main state of the application is now represented as its own module, `src/state`.
* Core game logic (previously `src/game/core`) has moved to a state submodule, `src/state/game`. All related submodules have moved over as well.
* `GAMEMODE` state has moved to React component local state inside `Aqueductulous`, now called `VIEW`.
* Exploring ImmutableJS in the Aqueductulous module.
* Sample `settings` state module established, for future work.
* `Game` module refactored: less anonymous functions, no longer owns its own state. Instead, game state (as well as an update callback) is passed in as a prop from the parent.
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