NuCon is a Python library designed to interface with and control parameters in the game Nucleares, a nuclear reactor simulation game. This library provides a robust and type-safe way to interact with various reactor components and systems.
## Features
- Enum-based parameter system for type safety and code clarity
- Support for various parameter types including floats, integers, booleans, strings, and custom enums
- Read and write capabilities for game parameters
- Custom truthy values for status enums to simplify conditional logic
- Dummy mode for testing without connecting to the game
- Batch operations for getting multiple parameters at once
-`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