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

Introducing VortexSettings.. redux #30

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

Conversation

disc0infern0
Copy link
Contributor

Introducing VortexSettings

This change extracts the system wide parameters of a vortex system into its own struct, referenced from within the VortexSystem by the new variable settings.
Doing the above removes the need for invoking .makeUniqueCopy() on the VortexSystem
The seemingly large change is, after creating of VortexSettings, mostly changing references from VortexSystem to the new VortexSettings, except for the following:-

  • Shape, Color, ColorMode and SpawnOccasion are relocated to be within VortexSettings, as they relate to parameters in VortexSettings with those types.
  • The VortexView init now accepts a type of VortexSettings.
  • Presets and the Sandbox have been updated to use the VortexSettings initialiser, and for the presets, Xcode previews have been added.
  • secondarySystems is replaced by secondarySettings, and the spawn method in VortexSystem-Behaviour is updated as a result.
  • Readable and writable dynamic lookup has been to VortexSystem to minimize the impact on existing code. (References to secondarySystems will have to be updated)
  • minimal updates to Readme.

[ Includes one tweak to the fireflies preview, to tidy up code relating to showing the instructions ]
[ Odd shaped initialisers from previous PR has been removed.]

This change extracts the system wide parameters of a vortex system into its own struct, referenced from within the VortexSystem by the new variable `settings`.
Doing the above removes the need for invoking .makeUniqueCopy() on the VortexSystem
The seemingly large change is, after creating of VortexSettings,  mostly changing  references from VortexSystem to the new VortexSettings, except for the following:-
 - Shape, Color, ColorMode and SpawnOccasion are relocated to be within VortexSettings, as they relate to parameters in VortexSettings with those types.
 - The VortexView init now accepts a type of VortexSettings.
 - Presets and the Sandbox have been updated to use the VortexSettings initialiser, and for the presets, Xcode previews have been added.
 - secondarySystems is replaced by secondarySettings, and the spawn method in VortexSystem-Behaviour is updated as a result.
 - Readable and writable dynamic lookup has been to VortexSystem to minimize the impact on existing code. (References to secondarySystems will have to be updated)

[ Aside: Odd shaped initialisers from previous PR's have been removed.]
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