Commit Graph

23 Commits

Author SHA1 Message Date
Unknown 22dabda987 Add Save and Load Functions to SimService 2018-10-19 20:50:24 +02:00
Unknown 37bff59f83 Remove clear function: Code Duplication 2018-10-19 20:01:52 +02:00
Unknown 8db9cd6ff1 Move Simulation Accesses to Simulation Class
Everything has been refactored away from engine, which now only controls updating & rendering within a specific timestep. (As well as stepping forward by calling a single update)

Everything regarding grids, patterns and cells has been moved into the simulation and the Services have been updated to reflect that.
2018-10-18 15:21:50 +02:00
Unknown bbfb2f735b Move Render Methods into SimulationService 2018-10-18 14:52:03 +02:00
Unknown 58971016da Remove ConfigurationService
Replaced with direct access to both EngineService and SimulationService.
2018-10-18 14:23:07 +02:00
Unknown 99ead8691b Make gridSize in Services pass correct signature
Both need to conform to Point<int> to be accepted by the engine.
2018-10-18 12:29:46 +02:00
Unknown 7729da3a40 Split ConfigurationService to use SimulationService
Methods concerning engine make use of EngineService, those concerning grid and patterns make use of SimulationService.
2018-10-18 12:16:47 +02:00
Unknown 6b4786fdd0 Add SimulationService to controls
Will eventually attach to the Simulation directly without first going through Engine. For now just redirects calls to EngineService to keep functions intact.
2018-10-18 12:05:02 +02:00
Unknown 17697070ee Move ControlService tasks into EngineService
All ControlService was used for was a redirection to the engine service. This will be further split up in the future into more logical units of responsibility.
2018-10-18 11:58:38 +02:00
Marty Oehme b1221c7c84 Add Grid Size Input to Configuration Bar
Fixes #37
2018-08-27 23:04:02 +02:00
Marty Oehme b6919cff6b Move Canvas setting to configuration service
Fix #39
2018-08-27 20:56:33 +02:00
Marty Oehme a92b864dfa Extract EngineService into separate service 2018-08-27 20:50:12 +02:00
Marty Oehme 9886f13d69 Add grid changing function 2018-08-27 19:55:30 +02:00
Marty Oehme 5e8f83cf8a Refactor EngineService to be able to inject custom Engine
fixes #38
2018-08-27 19:37:35 +02:00
Marty Oehme 774e9e3782 Add Simple Documentation 2018-08-25 16:41:11 +02:00
Marty Oehme c3f0881454 Wire up Speed slider to Engine Configuration 2018-08-25 15:51:32 +02:00
Marty Oehme 588a3ad2a0 Add explicit getter and setter for Simulation Speed
In preparation for adding additional logic as a quasi-callback to execute whenever the simSpeed changes (i.e. the slider is changed)
2018-08-25 15:26:44 +02:00
Marty Oehme 71023de49a Make canvas virtual variable on EngineService 2018-08-25 15:00:46 +02:00
Marty Oehme cc33628e5f Enable cached engine returns for EngineService 2018-08-25 14:51:28 +02:00
Marty Oehme 572406b963 Fix undefined running access 2018-08-25 14:10:19 +02:00
Marty Oehme 976ec8097d Separate Engine Service Functionality from Component 2018-08-25 09:36:27 +02:00
Marty Oehme bf0d136d8b Add Configuration Sidebar with ConfigurationService 2018-08-23 14:12:22 +02:00
Marty Oehme c86d8d8b59 Split Simulation & Controls into Components 2018-08-22 20:16:31 +02:00