|
Quantum Engineering
|
This is the core class for the player which handles most of the player's interactions with the game. More...
Public Member Functions | |
| void | Start () |
| void | Update () |
| Called once per frame by unity engine. More... | |
| void | FixedUpdate () |
| Frame-rate independent physics calculations. More... | |
| void | SavePlayerData () |
| Saves the player's location and money. More... | |
| void | ApplySettings () |
| Applies global settings. More... | |
| void | PlayButtonSound () |
| Plays a sound. More... | |
| void | PlayCraftingSound () |
| Plays a sound. More... | |
| void | PlayMissingItemsSound () |
| Plays a sound. More... | |
| bool | GuiOpen () |
| Returns true if any GUI is open. More... | |
| void | OpenEscapeMenu () |
| Opens the escape menu. More... | |
| void | DropItem (InventorySlot slot) |
| Drops a stack of items on the ground. More... | |
| void | OnCollisionStay (Collision collision) |
| Used to handle walking up stairs. More... | |
| void | OnCollisionEnter (Collision collision) |
| Used to handle picking up items. More... | |
Static Public Member Functions | |
| static IEnumerator | Save () |
| Handles saving world and exiting to the main menu. More... | |
Private Member Functions | |
| bool | ReadyToLoadModBlocks () |
| Returns true when prerequisites are met for loading machines added by mods. More... | |
| bool | BlockDictionaryInitiazlied () |
| Returns true if block dictionary is non null. More... | |
| bool | LoadedModTextures () |
| Returns true when all mod textures have finished loading. More... | |
| bool | ShouldShowTabletIntro () |
| Returns true at the beginning of the first in-game day when the intro should be displayed on the tablet. More... | |
| void | ShowTabletIntro () |
| Displays the intro message on the tablet. More... | |
| void | MovePlayerToSavedLocation () |
| Moves the player to their previous location when a game is loaded. More... | |
| void | OpenTabletOnFirstLoad () |
| Opens the tablet to display a message the first time the world is loaded. More... | |
| void | DisplayDeliveryWarning () |
| Displays a message on the player's tablet when the rocket is landing to collect dark matter. More... | |
| void | HandleBuildingStopRequest () |
| Stops the players building mode and sends a request to the game manager to recombine any edited combined meshes. More... | |
| void | ModifyCombinedMeshes () |
| Handles the sending of chunk load requests for modifying combined meshes. More... | |
| void | HandleChunkLoadRequest () |
| Handles requests to load chunks of blocks from combined meshes near the player. More... | |
| void | EnforceWorldLimits () |
| Enforces world size limitations. More... | |
| void | HandleSaveRequest () |
| Handles requests to exit the game. More... | |
| void | CheckStorageDistance () |
| Closes the storage GUI if the player has moved too far from the container. More... | |
Private Attributes | |
| InputManager | inputManager |
| Coroutine | saveCoroutine |
| Coroutine | networkWorldUpdateCoroutine |
| Vector3 | originalPosition |
| bool | gotPosition |
| bool | gameStarted |
| bool | checkedForCreativeMode |
| bool | meteorShowerWarningReceived |
| bool | pirateAttackWarningReceived |
| bool | destructionMessageReceived |
| bool | movedPlayer |
| bool | introDisplayed |
This is the core class for the player which handles most of the player's interactions with the game.
|
inline |
Applies global settings.
|
inlineprivate |
Returns true if block dictionary is non null.
|
inlineprivate |
Closes the storage GUI if the player has moved too far from the container.
|
inlineprivate |
Displays a message on the player's tablet when the rocket is landing to collect dark matter.
|
inline |
Drops a stack of items on the ground.
|
inlineprivate |
Enforces world size limitations.
|
inline |
Frame-rate independent physics calculations.
|
inline |
Returns true if any GUI is open.
|
inlineprivate |
Stops the players building mode and sends a request to the game manager to recombine any edited combined meshes.
|
inlineprivate |
Handles requests to load chunks of blocks from combined meshes near the player.
|
inlineprivate |
Handles requests to exit the game.
|
inlineprivate |
Returns true when all mod textures have finished loading.
|
inlineprivate |
Handles the sending of chunk load requests for modifying combined meshes.
|
inlineprivate |
Moves the player to their previous location when a game is loaded.
|
inline |
Used to handle picking up items.
|
inline |
Used to handle walking up stairs.
|
inline |
Opens the escape menu.
|
inlineprivate |
Opens the tablet to display a message the first time the world is loaded.
|
inline |
Plays a sound.
|
inline |
Plays a sound.
|
inline |
Plays a sound.
|
inlineprivate |
Returns true when prerequisites are met for loading machines added by mods.
|
inlinestatic |
Handles saving world and exiting to the main menu.
|
inline |
Saves the player's location and money.
|
inlineprivate |
Returns true at the beginning of the first in-game day when the intro should be displayed on the tablet.
|
inlineprivate |
Displays the intro message on the tablet.
|
inline |
|
inline |
Called once per frame by unity engine.
| bool PlayerController.addedModBlocks |
| GameObject PlayerController.adjustedPaintGunTank |
| GameObject PlayerController.adjustedPaintGunTank2 |
| GameObject PlayerController.alloySmelter |
| GameObject PlayerController.auger |
| bool PlayerController.autoAxisMessage |
| float PlayerController.autoAxisMessageTimer |
| GameObject PlayerController.autoCrafter |
| bool PlayerController.blockLimitMessage |
| float PlayerController.blockLimitMessageTimer |
| BlockSelector PlayerController.blockSelector |
| GameObject PlayerController.brick |
| GameObject PlayerController.builder |
| AudioSource PlayerController.builderSound |
| float PlayerController.buildIncrementTimer |
| bool PlayerController.building |
| float PlayerController.buildItemDisplayTimer |
| int PlayerController.buildMultiplier = 1 |
| GameObject PlayerController.buildObject |
| bool PlayerController.buildSettingsGuiOpen |
| Vector3 PlayerController.buildStartPosition |
| string PlayerController.buildType = "Dark Matter Collector" |
| AudioClip PlayerController.buttonClip |
| bool PlayerController.cannotCollect |
| float PlayerController.cannotCollectTimer |
|
private |
| float PlayerController.collectorAmount |
| Material PlayerController.constructionMat |
| AudioClip PlayerController.craftingClip |
| bool PlayerController.craftingGUIopen |
| bool PlayerController.creativeMode |
| bool PlayerController.crosshairEnabled = true |
| string PlayerController.cubeloc = "up" |
| GameObject PlayerController.currentStorageComputer |
| string PlayerController.currentTabletMessage = "" |
| GameObject PlayerController.darkMatter |
| GameObject PlayerController.darkMatterCollector |
| GameObject PlayerController.darkMatterConduit |
| int PlayerController.defaultRange = 6 |
| float PlayerController.deliveryWarningTimer |
| bool PlayerController.destroying |
| Vector3 PlayerController.destroyStartPosition |
| bool PlayerController.destructionMessageActive |
| int PlayerController.destructionMessageCount |
|
private |
| bool PlayerController.displayingBuildItem |
| GameObject PlayerController.door |
| bool PlayerController.doorGUIopen |
| Door PlayerController.doorToEdit |
| bool PlayerController.draggingItem |
| GameObject PlayerController.electricLight |
| bool PlayerController.escapeMenuOpen |
| bool PlayerController.exiting |
| GameObject PlayerController.extruder |
| bool PlayerController.firing |
| AudioClip PlayerController.footStep1 |
| AudioClip PlayerController.footStep2 |
| AudioClip PlayerController.footStep3 |
| AudioClip PlayerController.footStep4 |
| float PlayerController.footStepSoundFrquency |
| float PlayerController.footStepTimer |
| GameManager PlayerController.gameManager |
|
private |
| GameObject PlayerController.gearCutter |
| GameObject PlayerController.generator |
| GameObject PlayerController.glass |
|
private |
| float PlayerController.graphicsQuality = 999 |
| GameObject PlayerController.guiObject |
| AudioSource PlayerController.guiSound |
| GameObject PlayerController.headlamp |
| GameObject PlayerController.heatExchanger |
| bool PlayerController.helpMenuOpen |
| float PlayerController.hxAmount |
|
private |
|
private |
| bool PlayerController.invalidAugerPlacement |
| float PlayerController.invalidAugerPlacementTimer |
| bool PlayerController.invalidRailCartPlacement |
| float PlayerController.invalidRailCartPlacementTimer |
| bool PlayerController.inventoryOpen |
| GameObject PlayerController.ironBlock |
| GameObject PlayerController.ironRamp |
| GameObject PlayerController.item |
| GameObject PlayerController.laserCannon |
| bool PlayerController.laserCannonActive |
| LaserController PlayerController.laserController |
| bool PlayerController.lookingAtCombinedMesh |
| float PlayerController.machineAmount |
| float PlayerController.machineAmount2 |
| int PlayerController.machineCooling |
| bool PlayerController.machineGUIopen |
| bool PlayerController.machineHasPower |
| int PlayerController.machineHeat |
| string PlayerController.machineID = "unassigned" |
| float PlayerController.machineInputAmount |
| float PlayerController.machineInputAmount2 |
| string PlayerController.machineInputID = "unassigned" |
| string PlayerController.machineInputID2 = "unassigned" |
| string PlayerController.machineInputType |
| string PlayerController.machineInputType2 |
| GameObject PlayerController.machineInSight |
| float PlayerController.machineOutputAmount |
| string PlayerController.machineOutputID = "unassigned" |
| string PlayerController.machineOutputID2 = "unassigned" |
| string PlayerController.machineOutputType |
| int PlayerController.machinePower |
| double PlayerController.machineRange |
| int PlayerController.machineSpeed |
| string PlayerController.machineType |
| string PlayerController.machineType2 |
| bool PlayerController.marketGUIopen |
| Camera PlayerController.mCam |
| AudioClip PlayerController.metalFootStep1 |
| AudioClip PlayerController.metalFootStep2 |
| AudioClip PlayerController.metalFootStep3 |
| AudioClip PlayerController.metalFootStep4 |
| bool PlayerController.meteorShowerWarningActive |
|
private |
| GameObject PlayerController.missileTurret |
| AudioClip PlayerController.missingItemsClip |
| GameObject PlayerController.modBlock |
| GameObject PlayerController.modMachine |
| int PlayerController.money |
| bool PlayerController.moveBackward |
| bool PlayerController.moveDown |
|
private |
| bool PlayerController.moveForward |
| bool PlayerController.moveLeft |
| bool PlayerController.moveRight |
| bool PlayerController.moveUp |
| GameObject PlayerController.muzzleFlash |
| NetworkController PlayerController.networkController |
| int PlayerController.networkedConduitRange |
| bool PlayerController.networkedDualPower |
| int PlayerController.networkedHubCircuit |
| int PlayerController.networkedHubRange |
| bool PlayerController.networkedHubStop |
| float PlayerController.networkedHubStopTime |
| int PlayerController.networkedMachineSpeed |
| GameObject PlayerController.networkPlayer |
|
private |
| string PlayerController.nextBuildType = "Turret" |
| GameObject PlayerController.nuclearReactor |
| GameObject PlayerController.objectInSight |
| bool PlayerController.optionsGUIopen |
|
private |
| float PlayerController.paintBlue |
| bool PlayerController.paintColorSelected |
| float PlayerController.paintGreen |
| GameObject PlayerController.paintGun |
| bool PlayerController.paintGunActive |
| GameObject PlayerController.paintGunTank |
| float PlayerController.paintRed |
| GameObject PlayerController.ping |
| bool PlayerController.pirateAttackWarningActive |
|
private |
| GameObject PlayerController.playerBody |
| InventoryManager PlayerController.playerInventory |
| int PlayerController.playerMoveSpeed |
| GameObject PlayerController.powerConduit |
| GameObject PlayerController.press |
| string PlayerController.previousBuildType = "Dark Matter Conduit" |
| GameObject PlayerController.quantumHatchway |
| GameObject PlayerController.railCart |
| GameObject PlayerController.railCartHub |
| GameObject PlayerController.reactorTurbine |
| bool PlayerController.remoteStorageActive |
| bool PlayerController.requestedBuildingStop |
| bool PlayerController.requestedChunkLoad |
| bool PlayerController.requestedSave |
| float PlayerController.requestedSaveTimer |
| GameObject PlayerController.retriever |
|
private |
| GameObject PlayerController.scanner |
| bool PlayerController.scannerActive |
| GameObject PlayerController.scannerFlash |
| bool PlayerController.scanning |
| bool PlayerController.schematicMenuOpen |
| bool PlayerController.separatedBlocks |
| GameObject PlayerController.smelter |
| GameObject PlayerController.solarPanel |
| StateManager PlayerController.stateManager |
| GameObject PlayerController.steel |
| GameObject PlayerController.steelRamp |
| bool PlayerController.stopMovement |
| bool PlayerController.stoppingBuildCoRoutine |
| GameObject PlayerController.storageComputer |
| int PlayerController.storageComputerInventory |
| GameObject PlayerController.storageContainer |
| bool PlayerController.storageGUIopen |
| InventoryManager PlayerController.storageInventory |
| GameObject PlayerController.tablet |
| bool PlayerController.tabletOpen |
| bool PlayerController.timeToDeliver |
| bool PlayerController.timeToDeliverWarningRecieved |
| GameObject PlayerController.turret |
| GameObject PlayerController.universalConduit |
| GameObject PlayerController.universalExtractor |
| bool PlayerController.videoMenuOpen |
| GameObject PlayerController.weaponHit |
1.8.13