NuCon is a Python library designed to interface with and control parameters in Nucleares, a nuclear reactor simulation game. It provides a robust, type-safe foundation for reading and writing game parameters, allowing users to easily create their own automations and control systems.
In future versions, NuCon aims to implement built-in automation features.
-`Nucon.<PARAMETER>.value`: Get or set the current value of the parameter. Assigning a new value will write it to the game.
-`Nucon.<PARAMETER>.param_type`: Get the type of the parameter
-`Nucon.<PARAMETER>.is_writable`: Check if the parameter is writable
-`Nucon.<PARAMETER>.enum_type`: Get the enum type of the parameter if it's an enum, otherwise None
Parameter methods:
-`Nucon.<PARAMETER>.read()`: Get the current value of the parameter (alias for `value`)
-`Nucon.<PARAMETER>.write(new_value, force=False)`: Write a new value to the parameter. `force` will try to write even if the parameter is known as non-writable.
Class methods:
-`Nucon.get(parameter)`: Get the value of a specific parameter
-`Nucon.set(parameter, value, force=False)`: Set the value of a specific parameter
-`Nucon.get_all_readable()`: Get a list of all readable parameters (which is all parameters)
-`Nucon.get_all_writable()`: Get a list of all writable parameters
-`Nucon.get_all()`: Get all parameter values as a dictionary