age-series / ElectricalAge2

Eln2 Codebase
https://eln2.org
MIT License
53 stars 17 forks source link

Cell Refactoring #162

Open jrddunbr opened 2 years ago

jrddunbr commented 2 years ago

Cameron and I have some thoughts about how we should refactor Cell a bit.

Cameron thinks that cells should directly work with the Cell Graph Manager in order to get added to cell groups.

Cell Graphs will likely be sim-centric; eg. we might have a CircuitCellGraph, ThermalCellGraph, ShaftCellGraph, etc.

jrddunbr commented 2 years ago

Cameron also wants to investigate whether this part of Minecraft is threaded; @bloxgate do you have any idea how this might work?

jrddunbr commented 2 years ago

Cell Provider refactoring will also probably be required so that a function is called on the cell and the cell returns the connection mapping with the type of the simulator connections on each side.

bloxgate commented 2 years ago

Cameron also wants to investigate whether this part of Minecraft is threaded; @bloxgate do you have any idea how this might work?

Last time I really looked into it there were only the game and network threads. That said, there's nothing really forbidding us from making another thread for our own stuff.