Need help with reactor game

Hi developers,

I’m currently in progress of making a Realistic RBMK Reactor Simulator. I am adding all the systems that would’ve been in the real reactor, such as:

ECCS (Emergency Core Cooling System)
Recirculation Pumps
Reactor Control Panel
Steam Drum Separators / Deaerator

Truth is, however, I have absolutely ZERO idea how to approach having my code efficiently keep track of all the switches that can be toggled individually. and then perform all the necessary calculations for the game.

Does anybody have any ideas how to keep track?

I would suggest using collection service tags (name it something like “switch”) and then giving each switch a boolean attribute named “state” to be able to quickly get the toggled state of the switches

then when implementing it for like a terminal or something like that, potentially use sub tags to be able to quickly gather all the switches related to a system

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.