|
Baldi's Basics Plus Glue API
Modding API for Baldi's Basics Plus
|
Provides access to overall game state and control functions. More...
Public Member Functions | |
| void | AddLives (int amount) |
| Adds lives to the player. | |
| void | AddNotebookTotal (int count) |
| Increases the notebook total by the given count. | |
| void | AddPoints (int points, int player, bool playAnimation, bool includeInLevelTotal, bool multiply) |
| Adds points with full parameterization. | |
| void | AddPoints (int points, int player=0, bool playAnimation=true) |
| Adds points for a player with optional animation. | |
| void | AddYtpMultiplier (float value) |
| Adds a YTP multiplier value. | |
| void | AngerBaldi (float amount) |
| Adds anger to Baldi. | |
| void | BeginPlay () |
| Begins normal gameplay from the base manager. | |
| void | BeginSpoopMode () |
| Starts the spook mode gameplay. | |
| void | CloseMap () |
| Closes the map UI. | |
| void | CollectNotebooks (int count) |
| Programmatically collects notebooks. | |
| void | FinishLevel () |
| Finishes the current level. | |
| object? | GetCamera (int index) |
| Retrieves a camera object by index. | |
| object? | GetHud (int index) |
| Retrieves a HUD object by index. | |
| object? | GetPlayer (int index) |
| Retrieves a player object by index from the core manager. | |
| int | GetPoints (int player=0) |
| Gets the player's points total. | |
| int | GetPointsThisLevel (int player=0) |
| Gets points earned this level for the player. | |
| void | GivePoints (int amount) |
| Convenience overload to give points to player 0. | |
| void | GivePoints (int amount, int player) |
| Convenience overload to give points to a specific player. | |
| void | GivePoints (int amount, int player, bool playAnimation, bool includeInLevelTotal, bool multiply) |
| Full-parameter give points call. | |
| void | LoadNextLevel () |
| Loads the next level via the base manager. | |
| void | OpenMap (bool toMap=true) |
| Opens the map UI. | |
| void | Pause (bool paused, bool openScreen=true) |
| Pauses or unpauses the game. | |
| void | PleaseBaldi (float time, bool rewardSticker) |
| Temporarily pleads with Baldi for the given time and optional sticker reward. | |
| void | Quit () |
| Quits the game immediately. | |
| void | Refresh () |
| Refreshes the game context. | |
| void | RemoveYtpMultiplier (float value) |
| Removes a YTP multiplier value. | |
| void | ResetCameras () |
| Resets all cameras to default states. | |
| void | ResetShaders () |
| Resets shader-related state. | |
| void | RestartLevel () |
| Restarts the current level. | |
| void | ReturnToMenu () |
| Returns to the main menu. | |
| void | Save () |
| Saves the current game state. | |
| void | SaveAndQuit () |
| Saves the game and quits to desktop/menu. | |
| void | SetAttempts (int attempts) |
| Sets the number of attempts. | |
| void | SetLives (int lives, bool overrideLifeMode=true) |
| Sets the player's lives and optionally overrides life mode. | |
| void | SetRandomSeed () |
| Sets a random seed. | |
| void | SetSeed (int seed) |
| Sets the deterministic seed used by the game. | |
| void | ToggleMap (bool openMap=true) |
| Toggles the map UI. | |
| void | TogglePauseScreen () |
| Toggles the pause screen on. | |
Properties | |
| bool | AllNotebooksFound [get] |
| Whether all notebooks have been found. | |
| int | Attempts [get] |
| Current attempt count. | |
| object? | BaseManager [get] |
| Base manager that exposes higher-level game facilities. | |
| object? | CoreManager [get] |
| Core game manager object providing core gameplay operations. | |
| int | CurrentLevel [get, set] |
| Currently loaded level index. | |
| object? | CurrentSceneObject [get] |
| Raw scene object currently loaded. | |
| bool | DisablePause [get, set] |
| Gets or sets whether pausing is disabled. | |
| object? | EnvironmentController [get] |
| Environment controller from the base manager. | |
| int | FoundNotebooks [get] |
| Number of notebooks found this run. | |
| string | Grade [get] |
| Current grade string. | |
| int | GradeValue [get, set] |
| Current grade numeric value. | |
| bool | IsInGame [get] |
| Whether the application is currently in a playable game session. | |
| int | Lives [get] |
| Lives remaining. | |
| bool | MapAvailable [get] |
| Whether a map is available in the current context. | |
| bool | MapOpen [get] |
| Whether the map UI is currently open. | |
| float | NotebookAngerValue [get] |
| Current anger value added by notebook collection. | |
| int | NotebookTotal [get] |
| Total notebooks required for the level. | |
| bool | Paused [get, set] |
| Gets or sets whether the game is paused. | |
| bool | ReadyToStart [get, set] |
| Whether the game is ready to start (level initialization complete). | |
| BBPScene | Scene [get] |
| Strongly-typed scene wrapper for the current scene. | |
| int | Seed [get] |
| Current game seed value. | |
| int | TotalPlayers [get] |
| Number of player slots supported by the game. | |
| string | Version [get] |
| Application/game version string. | |
Provides access to overall game state and control functions.
| void BBPGlue.API.BBPGame.AddLives | ( | int | amount | ) |
Adds lives to the player.
| amount | Number of lives to add. |
| void BBPGlue.API.BBPGame.AddNotebookTotal | ( | int | count | ) |
Increases the notebook total by the given count.
| void BBPGlue.API.BBPGame.AddPoints | ( | int | points, |
| int | player, | ||
| bool | playAnimation, | ||
| bool | includeInLevelTotal, | ||
| bool | multiply ) |
Adds points with full parameterization.
| points | Points to add. |
| player | Player index. |
| playAnimation | Whether to play points animation. |
| includeInLevelTotal | Whether to count toward level total. |
| multiply | Whether to multiply the amount by a multiplier. |
| void BBPGlue.API.BBPGame.AddPoints | ( | int | points, |
| int | player = 0, | ||
| bool | playAnimation = true ) |
Adds points for a player with optional animation.
| points | Points to add. |
| player | Player index. |
| playAnimation | Whether to play points animation. |
| void BBPGlue.API.BBPGame.AddYtpMultiplier | ( | float | value | ) |
Adds a YTP multiplier value.
| void BBPGlue.API.BBPGame.AngerBaldi | ( | float | amount | ) |
Adds anger to Baldi.
| void BBPGlue.API.BBPGame.BeginPlay | ( | ) |
Begins normal gameplay from the base manager.
| void BBPGlue.API.BBPGame.BeginSpoopMode | ( | ) |
Starts the spook mode gameplay.
| void BBPGlue.API.BBPGame.CloseMap | ( | ) |
Closes the map UI.
| void BBPGlue.API.BBPGame.CollectNotebooks | ( | int | count | ) |
Programmatically collects notebooks.
| void BBPGlue.API.BBPGame.FinishLevel | ( | ) |
Finishes the current level.
| object? BBPGlue.API.BBPGame.GetCamera | ( | int | index | ) |
Retrieves a camera object by index.
| index | Camera index. |
| object? BBPGlue.API.BBPGame.GetHud | ( | int | index | ) |
| object? BBPGlue.API.BBPGame.GetPlayer | ( | int | index | ) |
Retrieves a player object by index from the core manager.
| index | Player index. |
| int BBPGlue.API.BBPGame.GetPoints | ( | int | player = 0 | ) |
Gets the player's points total.
| player | Player index. |
| int BBPGlue.API.BBPGame.GetPointsThisLevel | ( | int | player = 0 | ) |
Gets points earned this level for the player.
| player | Player index. |
| void BBPGlue.API.BBPGame.GivePoints | ( | int | amount | ) |
Convenience overload to give points to player 0.
| amount | Amount of points. |
| void BBPGlue.API.BBPGame.GivePoints | ( | int | amount, |
| int | player ) |
Convenience overload to give points to a specific player.
| amount | Amount of points. |
| player | Player index. |
| void BBPGlue.API.BBPGame.GivePoints | ( | int | amount, |
| int | player, | ||
| bool | playAnimation, | ||
| bool | includeInLevelTotal, | ||
| bool | multiply ) |
Full-parameter give points call.
| void BBPGlue.API.BBPGame.LoadNextLevel | ( | ) |
Loads the next level via the base manager.
| void BBPGlue.API.BBPGame.OpenMap | ( | bool | toMap = true | ) |
Opens the map UI.
| void BBPGlue.API.BBPGame.Pause | ( | bool | paused, |
| bool | openScreen = true ) |
Pauses or unpauses the game.
| paused | True to pause; false to unpause. |
| openScreen | True to open the pause screen when pausing. |
| void BBPGlue.API.BBPGame.PleaseBaldi | ( | float | time, |
| bool | rewardSticker ) |
Temporarily pleads with Baldi for the given time and optional sticker reward.
| void BBPGlue.API.BBPGame.Quit | ( | ) |
Quits the game immediately.
| void BBPGlue.API.BBPGame.Refresh | ( | ) |
Refreshes the game context.
| void BBPGlue.API.BBPGame.RemoveYtpMultiplier | ( | float | value | ) |
Removes a YTP multiplier value.
| void BBPGlue.API.BBPGame.ResetCameras | ( | ) |
Resets all cameras to default states.
| void BBPGlue.API.BBPGame.ResetShaders | ( | ) |
Resets shader-related state.
| void BBPGlue.API.BBPGame.RestartLevel | ( | ) |
Restarts the current level.
| void BBPGlue.API.BBPGame.ReturnToMenu | ( | ) |
Returns to the main menu.
| void BBPGlue.API.BBPGame.Save | ( | ) |
Saves the current game state.
| void BBPGlue.API.BBPGame.SaveAndQuit | ( | ) |
Saves the game and quits to desktop/menu.
| void BBPGlue.API.BBPGame.SetAttempts | ( | int | attempts | ) |
Sets the number of attempts.
| void BBPGlue.API.BBPGame.SetLives | ( | int | lives, |
| bool | overrideLifeMode = true ) |
Sets the player's lives and optionally overrides life mode.
| lives | Lives to set. |
| overrideLifeMode | Whether to override life mode. |
| void BBPGlue.API.BBPGame.SetRandomSeed | ( | ) |
Sets a random seed.
| void BBPGlue.API.BBPGame.SetSeed | ( | int | seed | ) |
Sets the deterministic seed used by the game.
| void BBPGlue.API.BBPGame.ToggleMap | ( | bool | openMap = true | ) |
Toggles the map UI.
| void BBPGlue.API.BBPGame.TogglePauseScreen | ( | ) |
Toggles the pause screen on.
|
get |
Whether all notebooks have been found.
|
get |
Current attempt count.
|
get |
Base manager that exposes higher-level game facilities.
|
get |
Core game manager object providing core gameplay operations.
|
getset |
Currently loaded level index.
|
get |
Raw scene object currently loaded.
|
getset |
Gets or sets whether pausing is disabled.
|
get |
Environment controller from the base manager.
|
get |
Number of notebooks found this run.
|
get |
Current grade string.
|
getset |
Current grade numeric value.
|
get |
Whether the application is currently in a playable game session.
|
get |
Lives remaining.
|
get |
Whether a map is available in the current context.
|
get |
Whether the map UI is currently open.
|
get |
Current anger value added by notebook collection.
|
get |
Total notebooks required for the level.
|
getset |
Gets or sets whether the game is paused.
Setting will open/close the pause screen.
|
getset |
Whether the game is ready to start (level initialization complete).
|
get |
Strongly-typed scene wrapper for the current scene.
|
get |
Current game seed value.
|
get |
Number of player slots supported by the game.
|
get |
Application/game version string.