Quantum Engineering
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
BasicMachine Class Reference
Inheritance diagram for BasicMachine:
Machine Extruder GearCutter ModMachine Press Smelter

Public Member Functions

void Start ()
 Called by unity engine on start up to initialize variables. More...
 
override void UpdateMachine ()
 Called by MachineManager update coroutine. More...
 

Public Attributes

float amount
 
int address
 
int speed = 1
 
int power
 
int heat
 
int cooling
 
int connectionAttempts
 
string inputType
 
string outputType
 
string ID = "unassigned"
 
string creationMethod = "built"
 
string inputID
 
string outputID
 
bool connectionFailed
 
bool hasHeatExchanger
 
bool powerON
 
GameObject inputObject
 
GameObject outputObject
 
GameObject powerObject
 
ConduitItem conduitItem
 
Material lineMat
 
PowerReceiver powerReceiver
 
BasicMachineRecipe [] recipes
 
StateManager stateManager
 
bool hasCustomSound
 

Private Member Functions

bool IsValidOutputObject (GameObject obj)
 The object is a potential output connection. More...
 
void FindOutputObject ()
 Finds and connects to a universal conduit for output. More...
 
string GetOutputType ()
 Sets the appropriate output item according to the input. More...
 
void HandleOutput ()
 If everything is working, items are moved to the output conduit; sounds and other effects are enabled. More...
 
void UpdatePowerReceiver ()
 Gets power values from power receiver. More...
 

Private Attributes

LineRenderer connectionLine
 
GameObject builtObjects
 
int machineTimer
 
int warmup
 

Member Function Documentation

◆ FindOutputObject()

void BasicMachine.FindOutputObject ( )
inlineprivate

Finds and connects to a universal conduit for output.

◆ GetOutputType()

string BasicMachine.GetOutputType ( )
inlineprivate

Sets the appropriate output item according to the input.

◆ HandleOutput()

void BasicMachine.HandleOutput ( )
inlineprivate

If everything is working, items are moved to the output conduit; sounds and other effects are enabled.

◆ IsValidOutputObject()

bool BasicMachine.IsValidOutputObject ( GameObject  obj)
inlineprivate

The object is a potential output connection.

◆ Start()

void BasicMachine.Start ( )
inline

Called by unity engine on start up to initialize variables.

◆ UpdateMachine()

override void BasicMachine.UpdateMachine ( )
inlinevirtual

Called by MachineManager update coroutine.

Reimplemented from Machine.

Reimplemented in Press, GearCutter, Smelter, Extruder, and ModMachine.

◆ UpdatePowerReceiver()

void BasicMachine.UpdatePowerReceiver ( )
inlineprivate

Gets power values from power receiver.

Member Data Documentation

◆ address

int BasicMachine.address

◆ amount

float BasicMachine.amount

◆ builtObjects

GameObject BasicMachine.builtObjects
private

◆ conduitItem

ConduitItem BasicMachine.conduitItem

◆ connectionAttempts

int BasicMachine.connectionAttempts

◆ connectionFailed

bool BasicMachine.connectionFailed

◆ connectionLine

LineRenderer BasicMachine.connectionLine
private

◆ cooling

int BasicMachine.cooling

◆ creationMethod

string BasicMachine.creationMethod = "built"

◆ hasCustomSound

bool BasicMachine.hasCustomSound

◆ hasHeatExchanger

bool BasicMachine.hasHeatExchanger

◆ heat

int BasicMachine.heat

◆ ID

string BasicMachine.ID = "unassigned"

◆ inputID

string BasicMachine.inputID

◆ inputObject

GameObject BasicMachine.inputObject

◆ inputType

string BasicMachine.inputType

◆ lineMat

Material BasicMachine.lineMat

◆ machineTimer

int BasicMachine.machineTimer
private

◆ outputID

string BasicMachine.outputID

◆ outputObject

GameObject BasicMachine.outputObject

◆ outputType

string BasicMachine.outputType

◆ power

int BasicMachine.power

◆ powerObject

GameObject BasicMachine.powerObject

◆ powerON

bool BasicMachine.powerON

◆ powerReceiver

PowerReceiver BasicMachine.powerReceiver

◆ recipes

BasicMachineRecipe [] BasicMachine.recipes

◆ speed

int BasicMachine.speed = 1

◆ stateManager

StateManager BasicMachine.stateManager

◆ warmup

int BasicMachine.warmup
private

The documentation for this class was generated from the following file: