andreondra / use

A platform for emulator development
GNU General Public License v3.0
7 stars 0 forks source link

Add dynamic system (node editor) #33

Open andreondra opened 1 year ago

andreondra commented 1 year ago

There should be possibility to discover "steppable" components. In static systems, doSteps and doFrames can be implemented manually, but in a case of dynamic systems there should be autodiscover features.

andreondra commented 1 year ago

Each component should have "getNodeGUI" fn with ID parameter which will be supplied by the editor (ID of the node is dependent on the current system, not the component itself), this ID can be also saved to the config file

andreondra commented 1 year ago

Should the nodes be rendered by the Component class or each component should implement its own method? Maybe provide default

andreondra commented 1 year ago

Links can be represented as a list and connections can be made accordingly to the list (graph structure not needed and also not wanted -- harder to serialize)

andreondra commented 1 year ago

https://stackoverflow.com/questions/582331/is-there-a-way-to-instantiate-objects-from-a-string-holding-their-class-name

A map which contains names as keys and lambda factories as values

andreondra commented 1 year ago

There should be a way to align links — maybe an option to add vertices to the curves?