Quantum Engineering
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
AutoCrafter Class Reference
Inheritance diagram for AutoCrafter:
Machine

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

int speed = 1
 
string ID = "unassigned"
 
string creationMethod = "built"
 
int address
 
int connectionAttempts
 
int power
 
int heat
 
int cooling
 
bool powerON
 
bool connectionFailed
 
bool hasHeatExchanger
 
string type
 
string inputID
 
PowerReceiver powerReceiver
 
GameObject storageComputerConduitItemObject
 
GameObject inputObject
 
GameObject powerObject
 
ConduitItem conduitItem
 
Material lineMat
 

Private Member Functions

void UpdatePowerReceiver ()
 Gets power values from power receiver. More...
 
bool IsStorageContainer (GameObject obj)
 
void AttemptConnection (GameObject obj)
 Connects the auto crafter to a storage inventory. More...
 
void CraftItems (bool usingStorageComputer)
 Calls the appropriate item crafting method in the crafting manager. More...
 
void DoWork ()
 Handles overall operation of the machine. More...
 
void Activate ()
 Called when all requirements are met for the machine to be running, activates effects. More...
 
void ShutDown (bool disconnect)
 Called when requirements are not met for the machine to be running, disables effects. More...
 

Private Attributes

int machineTimer
 
int warmup
 
LineRenderer connectionLine
 
CraftingManager craftingManager
 
CraftingDictionary craftingDictionary
 
GameObject builtObjects
 
StateManager stateManager
 

Member Function Documentation

◆ Activate()

void AutoCrafter.Activate ( )
inlineprivate

Called when all requirements are met for the machine to be running, activates effects.

◆ AttemptConnection()

void AutoCrafter.AttemptConnection ( GameObject  obj)
inlineprivate

Connects the auto crafter to a storage inventory.

◆ CraftItems()

void AutoCrafter.CraftItems ( bool  usingStorageComputer)
inlineprivate

Calls the appropriate item crafting method in the crafting manager.

◆ DoWork()

void AutoCrafter.DoWork ( )
inlineprivate

Handles overall operation of the machine.

◆ IsStorageContainer()

bool AutoCrafter.IsStorageContainer ( GameObject  obj)
inlineprivate

◆ ShutDown()

void AutoCrafter.ShutDown ( bool  disconnect)
inlineprivate

Called when requirements are not met for the machine to be running, disables effects.

◆ Start()

void AutoCrafter.Start ( )
inline

Called by unity engine on start up to initialize variables.

◆ UpdateMachine()

override void AutoCrafter.UpdateMachine ( )
inlinevirtual

Called by MachineManager update coroutine.

Reimplemented from Machine.

◆ UpdatePowerReceiver()

void AutoCrafter.UpdatePowerReceiver ( )
inlineprivate

Gets power values from power receiver.

Member Data Documentation

◆ address

int AutoCrafter.address

◆ builtObjects

GameObject AutoCrafter.builtObjects
private

◆ conduitItem

ConduitItem AutoCrafter.conduitItem

◆ connectionAttempts

int AutoCrafter.connectionAttempts

◆ connectionFailed

bool AutoCrafter.connectionFailed

◆ connectionLine

LineRenderer AutoCrafter.connectionLine
private

◆ cooling

int AutoCrafter.cooling

◆ craftingDictionary

CraftingDictionary AutoCrafter.craftingDictionary
private

◆ craftingManager

CraftingManager AutoCrafter.craftingManager
private

◆ creationMethod

string AutoCrafter.creationMethod = "built"

◆ hasHeatExchanger

bool AutoCrafter.hasHeatExchanger

◆ heat

int AutoCrafter.heat

◆ ID

string AutoCrafter.ID = "unassigned"

◆ inputID

string AutoCrafter.inputID

◆ inputObject

GameObject AutoCrafter.inputObject

◆ lineMat

Material AutoCrafter.lineMat

◆ machineTimer

int AutoCrafter.machineTimer
private

◆ power

int AutoCrafter.power

◆ powerObject

GameObject AutoCrafter.powerObject

◆ powerON

bool AutoCrafter.powerON

◆ powerReceiver

PowerReceiver AutoCrafter.powerReceiver

◆ speed

int AutoCrafter.speed = 1

◆ stateManager

StateManager AutoCrafter.stateManager
private

◆ storageComputerConduitItemObject

GameObject AutoCrafter.storageComputerConduitItemObject

◆ type

string AutoCrafter.type

◆ warmup

int AutoCrafter.warmup
private

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