frame
Vars | |
board_type | What board do we accept |
---|---|
circuit | Reference to the circuit inside the frame |
state | The current (de/con)struction state of the frame |
Procs | |
circuit_added | Called when circuit has been set to a new board |
circuit_removed | Called when circuit has been removed from the frame |
finalize_construction | Attempt to finalize the construction of the frame into a machine |
install_board | Installs the passed circuit board into the frame |
install_circuit_from_part_replacer | Attempt to install a circuit from the contents of an RPED |
install_parts_from_part_replacer | Attempt to install necessary parts from the contents of an RPED |
try_dissassemble | Checks if the frame can be disassembled, and if so, begins the process |
Var Details
board_type
What board do we accept
circuit
Reference to the circuit inside the frame
state
The current (de/con)struction state of the frame
Proc Details
circuit_added
Called when circuit has been set to a new board
circuit_removed
Called when circuit has been removed from the frame
finalize_construction
Attempt to finalize the construction of the frame into a machine
If successful, results in qdel'ing the frame and newing of a machine
Arguments
- user - the player
- tool - the tool used to finalize the construction
install_board
Installs the passed circuit board into the frame
Assumes there is no circuit already installed
Arguments
- board - the machine circuitboard to install
- user - the player
- by_hand - is the player installing the board by hand or from the RPED. Used to decide how to transfer the board into the frame
install_circuit_from_part_replacer
Attempt to install a circuit from the contents of an RPED
Arguments
- user - the player
- replacer - the RPED being used
- no_sound - if true, no sound will be played
install_parts_from_part_replacer
Attempt to install necessary parts from the contents of an RPED
Arguments
- user - the player
- replacer - the RPED being used
- no_sound - if true, no sound will be played
try_dissassemble
Checks if the frame can be disassembled, and if so, begins the process