Game Manager - Hawthorn-Games/ProjectScrapped GitHub Wiki

Variables

Type Name Description
-UserWidgetObj currentWidget Current HUD widget reference
-EHUD HUDState Current HUD state
-PuzzleManagerObj currentPuzzle Current active puzzle
-bool bIsPaused Status of the custom update

Functions

ApplyHUDChanges()

Given the current HUD state, applies the newly selected HUD.

ApplyHUD()

Removes old HUD and applies the new one. Sets click events and cursor visibility

Inputs Descriptions
USerWidgetClass: HUDClass The new HUD class to apply
bool: bShowMouseCursor Should the cursor be visible in the new HUD
bool: bEnableClickEvents Shouldclick events be enabled in the new HUD
Outputs Descriptions
bool: bSuccess Has the new HUD been applied

ChangeHUDState()

The function to call to change and apply HUD.

Input Descritption
EHUD: newState The new HUD to apply

AddPoints()

Add points to the total if the value to add is positive.

Inputs Description
float: points The value to add to the current points
Outputs Description
bool: bSuccess Have the points been added or not

GetPoints()

Return the current points.

Outputs Description
float: points current points of the player

SetCurrentPuzzle()

Sets the currentPuzzle variable to the puzzle the player just entered.

Inputs Description
PuzzleManagerOBJ: newPuzzle The new puzzle

GetCurrentPuzzle()

Returns the puzzle the player is currently in.

Ouput Description
PuzzleManagerOBJ: Puzzle The current puzzle

GetCustomUpdateStatus()

Returns the status of the custom loop used by programmable objects.

Outputs Description
bool: status True if the programmables should run, false otherwise

StartCustomUpdate()

Sets bIsPaused to false.

PauseCustomUpdate()

Sets bIsPaused to true.

⚠️ **GitHub.com Fallback** ⚠️