machine
Vars | |
components | List of all compnents inside the frame contributing to its construction |
---|---|
req_component_names | User-friendly list of names of required components |
req_components | List of all components required to construct the frame |
Procs | |
add_part | Attempts to add the passed part to the frame |
finalize_construction | Attempt to finalize the construction of the frame into a machine as according to our circuit and parts |
look_for | Returns the instance of path1 in list, else path2 in list |
Var Details
components
List of all compnents inside the frame contributing to its construction
req_component_names
User-friendly list of names of required components
req_components
List of all components required to construct the frame
Proc Details
add_part
Attempts to add the passed part to the frame
Requires no sanity check that the passed part is a stock part
Arguments
- user - the player
- tool - the part to add
finalize_construction
Attempt to finalize the construction of the frame into a machine as according to our circuit and parts
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
look_for
Returns the instance of path1 in list, else path2 in list
Arguments
- parts - the list of parts to search
- path1 - the first path to search for
- path2 - the second path to search for, if path1 is not found