Quantum Engineering
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
StateManager Class Reference

This class handles unique ID assignment and saving & loading of worlds. More...

Inheritance diagram for StateManager:

Public Member Functions

void Start ()
 Called by unity engine before the first update. More...
 
void Update ()
 Update is called once per frame. More...
 
bool AddressManagerBusy ()
 Returns true if the AddressManager class is actively assigning ids. More...
 
void SaveData ()
 Saves the game. More...
 
bool IsStorageContainer (GameObject go)
 Returns true if the object in question is a storage container. More...
 
bool Busy ()
 

Public Attributes

bool saving
 
bool dataSaved
 
bool worldLoaded
 
bool initMachines
 
bool finalMachineAddress
 
bool finalBlockAddress
 
int progress
 
int totalMachines
 
int currentMachine
 
int [] machineIdList
 
int [] blockIdList
 
List< string > modTextureList
 
List< string > modRecipeList
 
GameObject darkMatterCollector
 
GameObject darkMatterConduit
 
GameObject ironBlock
 
GameObject ironRamp
 
GameObject steel
 
GameObject steelRamp
 
GameObject storageContainer
 
GameObject glass
 
GameObject universalExtractor
 
GameObject universalConduit
 
GameObject powerConduit
 
GameObject smelter
 
GameObject press
 
GameObject gearCutter
 
GameObject alloySmelter
 
GameObject solarPanel
 
GameObject generator
 
GameObject extruder
 
GameObject turret
 
GameObject missileTurret
 
GameObject auger
 
GameObject heatExchanger
 
GameObject electricLight
 
GameObject retriever
 
GameObject door
 
GameObject quantumHatchway
 
GameObject nuclearReactor
 
GameObject reactorTurbine
 
GameObject storageComputer
 
GameObject autoCrafter
 
GameObject railCartHub
 
GameObject railCart
 
GameObject brick
 
GameObject modMachine
 
GameObject modBlock
 
GameObject builtObjects
 
string worldName = "World"
 
string partName = ""
 
SaveManager saveManager
 
Vector3 partPosition = new Vector3(0.0f, 0.0f, 0.0f)
 
Quaternion partRotation = Quaternion.Euler(new Vector3(0.0f, 0.0f, 0.0f))
 

Private Member Functions

IEnumerator LoadWorld ()
 Loads a saved world. More...
 
void AssignIDs ()
 Assigns ID to objects in the world. More...
 

Private Attributes

GameObject player
 
PlayerController playerController
 
MainMenu mainMenu
 
Vector3 emptyVector = new Vector3(0.0f, 0.0f, 0.0f)
 
Vector3 objectPosition
 
Quaternion objectRotation
 
AddressManager addressManager
 
Coroutine machineIdCoroutine
 
Coroutine blockIdCoroutine
 
Coroutine loadCoroutine
 
Coroutine saveCoroutine
 
string objectName = ""
 
bool loading
 
int batchmodeLogInterval
 

Detailed Description

This class handles unique ID assignment and saving & loading of worlds.

Member Function Documentation

◆ AddressManagerBusy()

bool StateManager.AddressManagerBusy ( )
inline

Returns true if the AddressManager class is actively assigning ids.

◆ AssignIDs()

void StateManager.AssignIDs ( )
inlineprivate

Assigns ID to objects in the world.

◆ Busy()

bool StateManager.Busy ( )
inline

◆ IsStorageContainer()

bool StateManager.IsStorageContainer ( GameObject  go)
inline

Returns true if the object in question is a storage container.

◆ LoadWorld()

IEnumerator StateManager.LoadWorld ( )
inlineprivate

Loads a saved world.

◆ SaveData()

void StateManager.SaveData ( )
inline

Saves the game.

◆ Start()

void StateManager.Start ( )
inline

Called by unity engine before the first update.

◆ Update()

void StateManager.Update ( )
inline

Update is called once per frame.

Member Data Documentation

◆ addressManager

AddressManager StateManager.addressManager
private

◆ alloySmelter

GameObject StateManager.alloySmelter

◆ auger

GameObject StateManager.auger

◆ autoCrafter

GameObject StateManager.autoCrafter

◆ batchmodeLogInterval

int StateManager.batchmodeLogInterval
private

◆ blockIdCoroutine

Coroutine StateManager.blockIdCoroutine
private

◆ blockIdList

int [] StateManager.blockIdList

◆ brick

GameObject StateManager.brick

◆ builtObjects

GameObject StateManager.builtObjects

◆ currentMachine

int StateManager.currentMachine

◆ darkMatterCollector

GameObject StateManager.darkMatterCollector

◆ darkMatterConduit

GameObject StateManager.darkMatterConduit

◆ dataSaved

bool StateManager.dataSaved

◆ door

GameObject StateManager.door

◆ electricLight

GameObject StateManager.electricLight

◆ emptyVector

Vector3 StateManager.emptyVector = new Vector3(0.0f, 0.0f, 0.0f)
private

◆ extruder

GameObject StateManager.extruder

◆ finalBlockAddress

bool StateManager.finalBlockAddress

◆ finalMachineAddress

bool StateManager.finalMachineAddress

◆ gearCutter

GameObject StateManager.gearCutter

◆ generator

GameObject StateManager.generator

◆ glass

GameObject StateManager.glass

◆ heatExchanger

GameObject StateManager.heatExchanger

◆ initMachines

bool StateManager.initMachines

◆ ironBlock

GameObject StateManager.ironBlock

◆ ironRamp

GameObject StateManager.ironRamp

◆ loadCoroutine

Coroutine StateManager.loadCoroutine
private

◆ loading

bool StateManager.loading
private

◆ machineIdCoroutine

Coroutine StateManager.machineIdCoroutine
private

◆ machineIdList

int [] StateManager.machineIdList

◆ mainMenu

MainMenu StateManager.mainMenu
private

◆ missileTurret

GameObject StateManager.missileTurret

◆ modBlock

GameObject StateManager.modBlock

◆ modMachine

GameObject StateManager.modMachine

◆ modRecipeList

List<string> StateManager.modRecipeList

◆ modTextureList

List<string> StateManager.modTextureList

◆ nuclearReactor

GameObject StateManager.nuclearReactor

◆ objectName

string StateManager.objectName = ""
private

◆ objectPosition

Vector3 StateManager.objectPosition
private

◆ objectRotation

Quaternion StateManager.objectRotation
private

◆ partName

string StateManager.partName = ""

◆ partPosition

Vector3 StateManager.partPosition = new Vector3(0.0f, 0.0f, 0.0f)

◆ partRotation

Quaternion StateManager.partRotation = Quaternion.Euler(new Vector3(0.0f, 0.0f, 0.0f))

◆ player

GameObject StateManager.player
private

◆ playerController

PlayerController StateManager.playerController
private

◆ powerConduit

GameObject StateManager.powerConduit

◆ press

GameObject StateManager.press

◆ progress

int StateManager.progress

◆ quantumHatchway

GameObject StateManager.quantumHatchway

◆ railCart

GameObject StateManager.railCart

◆ railCartHub

GameObject StateManager.railCartHub

◆ reactorTurbine

GameObject StateManager.reactorTurbine

◆ retriever

GameObject StateManager.retriever

◆ saveCoroutine

Coroutine StateManager.saveCoroutine
private

◆ saveManager

SaveManager StateManager.saveManager

◆ saving

bool StateManager.saving

◆ smelter

GameObject StateManager.smelter

◆ solarPanel

GameObject StateManager.solarPanel

◆ steel

GameObject StateManager.steel

◆ steelRamp

GameObject StateManager.steelRamp

◆ storageComputer

GameObject StateManager.storageComputer

◆ storageContainer

GameObject StateManager.storageContainer

◆ totalMachines

int StateManager.totalMachines

◆ turret

GameObject StateManager.turret

◆ universalConduit

GameObject StateManager.universalConduit

◆ universalExtractor

GameObject StateManager.universalExtractor

◆ worldLoaded

bool StateManager.worldLoaded

◆ worldName

string StateManager.worldName = "World"

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