|
Baldi's Basics Plus Glue API
Modding API for Baldi's Basics Plus
|
Wraps the active environment controller and exposes common level, spawning, lighting, and event controls. More...
Public Member Functions | |
| void | AssignPlayers () |
| Assigns players to the environment. | |
| void | BeginPlay () |
| Starts environment gameplay. | |
| void | CloseSchool () |
| Closes the school. | |
| bool | ContainsCoordinates (Vector3 position) |
| Checks whether a position is inside the environment bounds. | |
| int | DespawnAllNpcs () |
| Despawns all NPCs currently known by BBPGlue. | |
| int | DespawnAllPickups () |
| Despawns all pickups in the environment item list. | |
| bool | DespawnClosestNpc () |
| Despawns the closest NPC to the player. | |
| bool | DespawnNpc (BBPNpc npc) |
| Despawns an NPC. | |
| bool | DespawnNpc (object rawNpc) |
| Despawns a raw NPC object. | |
| bool | DespawnPickup (object pickup) |
| Despawns a pickup. | |
| void | FlickerLights (bool enabled) |
| Enables or disables light flickering. | |
| void | FreezeNavigationUpdates (bool frozen) |
| Freezes or unfreezes navigation updates. | |
| BBPBaldi? | GetBaldi () |
| Gets Baldi from the environment controller. | |
| BBPDoor? | GetClosestDoor () |
| Gets the closest door to the player. | |
| BBPDoor? | GetClosestDoor (Vector3 position) |
| Gets the closest door to a position. | |
| BBPElevator? | GetClosestElevator () |
| Gets the closest elevator to the player. | |
| BBPRoom? | GetClosestRoom () |
| Gets the closest room to the player. | |
| BBPRoom? | GetClosestRoom (Vector3 position) |
| Gets the closest room to a position. | |
| string | GetDisplayTime () |
| Gets the formatted level timer text. | |
| BBPRoom? | GetPlayerRoom () |
| Gets the room the player is currently in. | |
| BBPRoom? | GetRoom (Vector3 position) |
| Gets the room containing a position. | |
| float | LightLevel (Vector3 position) |
| Gets the light level at a position. | |
| void | MakeNoise (Vector3 position, int value) |
| Creates a noise at the specified position. | |
| void | MakeNoise (Vector3 position, int value, bool hasSilentChance) |
| Creates a noise at the specified position. | |
| void | MakeSilent (float time) |
| Makes the environment silent for a duration. | |
| void | PauseEnvironment (bool paused) |
| Pauses or unpauses the environment. | |
| void | PauseEvents (bool paused) |
| Pauses or unpauses random events. | |
| void | RecalculateNavigation () |
| Recalculates environment navigation. | |
| void | Refresh () |
| Refreshes cached environment state. | |
| void | ResetEvents () |
| Resets random events. | |
| void | SetAllLights (bool on) |
| Turns all environment lights on or off. | |
| void | SetSpawn (Vector3 position, Quaternion rotation) |
| Sets the environment spawn position and rotation. | |
| void | SetTimeLimit (float time) |
| Sets the level time limit. | |
| BBPNpc? | SpawnNpc (BBPNpc npc, int x, int z) |
| Spawns an NPC prefab at the specified BB+ grid cell. | |
| BBPNpc? | SpawnNpc (object npcPrefab, int x, int z) |
| Spawns a raw NPC prefab at the specified BB+ grid cell. | |
| BBPNpc? | SpawnNpcAtPlayer (object npcPrefab) |
| Spawns an NPC at the player's position. | |
| BBPNpc? | SpawnNpcAtWorld (object npcPrefab, Vector3 worldPosition) |
| Spawns an NPC at a world position. | |
| BBPNpc? | SpawnNpcByCharacter (string characterName) |
| Finds an NPC prefab by character name and spawns it at the player's position. | |
| BBPNpc? | SpawnNpcByCharacter (string characterName, Vector3 worldPosition) |
| Finds an NPC prefab by character name and spawns it at a world position. | |
| BBPNpc? | SpawnNpcByName (string nameContains) |
| Finds an NPC prefab by name and spawns it at the player's position. | |
| BBPNpc? | SpawnNpcByName (string nameContains, Vector3 worldPosition) |
| Finds an NPC prefab by name and spawns it at a world position. | |
| void | SpawnNPCs () |
| Spawns the level NPCs. | |
| GameObject? | SpawnObject (GameObject prefab, Vector3 position) |
| Spawns a GameObject at a position. | |
| GameObject? | SpawnObject (GameObject prefab, Vector3 position, Quaternion rotation) |
| Spawns a GameObject at a position and rotation. | |
| GameObject? | SpawnObject (GameObject prefab, Vector3 position, Quaternion rotation, Transform? parent) |
| Spawns a GameObject at a position, rotation, and optional parent. | |
| T? | SpawnObject< T > (T prefab, Vector3 position) |
| Spawns a Component at a position. | |
| T? | SpawnObject< T > (T prefab, Vector3 position, Quaternion rotation, Transform? parent=null) |
| Spawns a Component at a position, rotation, and optional parent. | |
| BBPPickup? | SpawnPickup (BBPItemId item) |
| Spawns a pickup by item ID at the player's position. | |
| BBPPickup? | SpawnPickup (BBPItemId item, Vector3 worldPosition) |
| Spawns a pickup by item ID at a world position. | |
| BBPPickup? | SpawnPickup (object room, BBPItemObject item, Vector2 position) |
| Spawns a pickup in a room. | |
| BBPPickup? | SpawnPickupAtPlayer (BBPItemObject item) |
| Spawns a pickup at the player's position. | |
| BBPPickup? | SpawnPickupAtWorld (BBPItemObject item, Vector3 worldPosition) |
| Spawns a pickup at a world position. | |
| BBPPickup? | SpawnPickupByName (string name) |
| Spawns a pickup by item name at the player's position. | |
| BBPPickup? | SpawnPickupByName (string name, Vector3 worldPosition) |
| Spawns a pickup by item name at a world position. | |
| object? | SpawnPickupRaw (object room, object itemObject, Vector2 position) |
| Spawns a raw pickup in a room. | |
| object? | SpawnPrefab (object prefab, Vector3 worldPosition) |
| Spawns a supported prefab at a world position. | |
| object? | SpawnPrefabAtPlayer (object prefab) |
| Spawns a supported prefab at the player's position. | |
| object? | SpawnRawObject (object prefab, Vector3 position) |
| Spawns a raw GameObject or Component prefab with no custom rotation. | |
| object? | SpawnRawObject (object prefab, Vector3 position, Quaternion rotation, Transform? parent=null) |
| Spawns a raw GameObject or Component prefab. | |
| void | StartEventTimers () |
| Starts random event timers. | |
| void | StopEvents () |
| Stops active random events. | |
| void | TempCloseBully () |
| Temporarily closes bully blockers. | |
| void | TempCloseLockedStandardDoors () |
| Temporarily closes locked standard doors. | |
| void | TempCloseWindows () |
| Temporarily closes windows. | |
| void | TempOpenBreakableWindows () |
| Temporarily opens breakable windows. | |
| void | TempOpenBully () |
| Temporarily opens bully blockers. | |
| void | TempOpenLockedStandardDoors () |
| Temporarily opens locked standard doors. | |
Properties | |
| bool | Active [get, set] |
| Gets or sets whether the environment is active. | |
| IList? | Activities [get] |
| Gets the raw activity list. | |
| BBPBaldi? | Baldi [get] |
| Gets Baldi from the current environment. | |
| List< BBPRandomEvent > | CurrentEvents [get] |
| Gets the currently active random events. | |
| System.Collections.Generic.List< BBPDoor > | Doors [get] |
| Gets all door components currently found in the scene. | |
| object? | ElevatorManager [get] |
| Gets the raw elevator manager. | |
| IList? | Elevators [get] |
| Gets the raw elevator list. | |
| System.Collections.Generic.List< BBPElevator > | ElevatorsList [get] |
| Gets all elevator components currently found in the scene. | |
| float | EnvironmentTimeScale [get] |
| Gets the environment time scale. | |
| int | EventsCount [get] |
| Gets the number of random events available in the current level. | |
| bool | EventsStarted [get] |
| Gets whether random events have started. | |
| bool | Exists [get] |
| Gets whether an environment controller is available. | |
| float | Height [get] |
| Gets the environment height. | |
| int | ItemCount [get] |
| Gets the number of pickups in the environment. | |
| IList? | Items [get] |
| Gets the raw pickup list. | |
| object? | Map [get] |
| Gets the raw map object. | |
| bool | NavigationUpdatesFrozen [get] |
| Gets whether navigation updates are frozen. | |
| int | NotebookCount [get] |
| Gets the number of notebooks in the environment. | |
| IList? | Notebooks [get] |
| Gets the raw notebook list. | |
| int | NotebookTotal [get, set] |
| Gets or sets the total number of notebooks in the level. | |
| int | NpcCount [get] |
| Gets the number of NPCs in the environment. | |
| IList? | Npcs [get] |
| Gets the raw NPC list. | |
| float | NpcTimeScale [get] |
| Gets the NPC time scale. | |
| int | PlayerCount [get] |
| Gets the number of players in the environment. | |
| IList? | Players [get] |
| Gets the raw player list. | |
| float | PlayerTimeScale [get] |
| Gets the player time scale. | |
| object? | Raw [get] |
| Gets the raw environment controller instance. | |
| int | RemainingTime [get] |
| Gets the remaining level time. | |
| int | RoomCount [get] |
| Gets the number of rooms in the environment. | |
| System.Collections.Generic.List< BBPRoom > | RoomList [get] |
| Gets all room components currently found in the scene. | |
| IList? | Rooms [get] |
| Gets the raw room list. | |
| Vector3 | SpawnPoint [get, set] |
| Gets or sets the level spawn position. | |
| Quaternion | SpawnRotation [get, set] |
| Gets or sets the level spawn rotation. | |
| float | SurpassedGameTime [get] |
| Gets the elapsed game time. | |
| float | SurpassedRealTime [get] |
| Gets the elapsed real time. | |
| bool | TimeOut [get] |
| Gets whether the level timer has run out. | |
Wraps the active environment controller and exposes common level, spawning, lighting, and event controls.
| void BBPGlue.API.BBPEnvironment.AssignPlayers | ( | ) |
Assigns players to the environment.
| void BBPGlue.API.BBPEnvironment.BeginPlay | ( | ) |
Starts environment gameplay.
| void BBPGlue.API.BBPEnvironment.CloseSchool | ( | ) |
Closes the school.
| bool BBPGlue.API.BBPEnvironment.ContainsCoordinates | ( | Vector3 | position | ) |
Checks whether a position is inside the environment bounds.
| position | The position to check. |
| int BBPGlue.API.BBPEnvironment.DespawnAllNpcs | ( | ) |
Despawns all NPCs currently known by BBPGlue.
| int BBPGlue.API.BBPEnvironment.DespawnAllPickups | ( | ) |
Despawns all pickups in the environment item list.
| bool BBPGlue.API.BBPEnvironment.DespawnClosestNpc | ( | ) |
Despawns the closest NPC to the player.
| bool BBPGlue.API.BBPEnvironment.DespawnNpc | ( | BBPNpc | npc | ) |
Despawns an NPC.
| npc | The NPC to despawn. |
| bool BBPGlue.API.BBPEnvironment.DespawnNpc | ( | object | rawNpc | ) |
Despawns a raw NPC object.
| rawNpc | The raw NPC object to despawn. |
| bool BBPGlue.API.BBPEnvironment.DespawnPickup | ( | object | pickup | ) |
Despawns a pickup.
| pickup | The raw pickup object to despawn. |
| void BBPGlue.API.BBPEnvironment.FlickerLights | ( | bool | enabled | ) |
Enables or disables light flickering.
| enabled | True to enable flickering; false to disable it. |
| void BBPGlue.API.BBPEnvironment.FreezeNavigationUpdates | ( | bool | frozen | ) |
Freezes or unfreezes navigation updates.
| frozen | True to freeze updates; false to unfreeze them. |
| BBPBaldi? BBPGlue.API.BBPEnvironment.GetBaldi | ( | ) |
Gets Baldi from the environment controller.
| BBPDoor? BBPGlue.API.BBPEnvironment.GetClosestDoor | ( | ) |
Gets the closest door to the player.
| BBPDoor? BBPGlue.API.BBPEnvironment.GetClosestDoor | ( | Vector3 | position | ) |
Gets the closest door to a position.
| position | The position to search from. |
| BBPElevator? BBPGlue.API.BBPEnvironment.GetClosestElevator | ( | ) |
Gets the closest elevator to the player.
| BBPRoom? BBPGlue.API.BBPEnvironment.GetClosestRoom | ( | ) |
Gets the closest room to the player.
| BBPRoom? BBPGlue.API.BBPEnvironment.GetClosestRoom | ( | Vector3 | position | ) |
Gets the closest room to a position.
| position | The position to search from. |
| string BBPGlue.API.BBPEnvironment.GetDisplayTime | ( | ) |
Gets the formatted level timer text.
| BBPRoom? BBPGlue.API.BBPEnvironment.GetPlayerRoom | ( | ) |
Gets the room the player is currently in.
| BBPRoom? BBPGlue.API.BBPEnvironment.GetRoom | ( | Vector3 | position | ) |
Gets the room containing a position.
| position | The position to check. |
| float BBPGlue.API.BBPEnvironment.LightLevel | ( | Vector3 | position | ) |
Gets the light level at a position.
| position | The position to check. |
| void BBPGlue.API.BBPEnvironment.MakeNoise | ( | Vector3 | position, |
| int | value ) |
Creates a noise at the specified position.
| position | The noise position. |
| value | The noise value used by the game. |
| void BBPGlue.API.BBPEnvironment.MakeNoise | ( | Vector3 | position, |
| int | value, | ||
| bool | hasSilentChance ) |
Creates a noise at the specified position.
| position | The noise position. |
| value | The noise value used by the game. |
| hasSilentChance | Whether silent chance should be applied. |
| void BBPGlue.API.BBPEnvironment.MakeSilent | ( | float | time | ) |
Makes the environment silent for a duration.
| time | The duration in seconds. |
| void BBPGlue.API.BBPEnvironment.PauseEnvironment | ( | bool | paused | ) |
Pauses or unpauses the environment.
| paused | True to pause; false to unpause. |
| void BBPGlue.API.BBPEnvironment.PauseEvents | ( | bool | paused | ) |
Pauses or unpauses random events.
| paused | True to pause; false to unpause. |
| void BBPGlue.API.BBPEnvironment.RecalculateNavigation | ( | ) |
Recalculates environment navigation.
| void BBPGlue.API.BBPEnvironment.Refresh | ( | ) |
Refreshes cached environment state.
| void BBPGlue.API.BBPEnvironment.ResetEvents | ( | ) |
Resets random events.
| void BBPGlue.API.BBPEnvironment.SetAllLights | ( | bool | on | ) |
Turns all environment lights on or off.
| on | True to turn lights on; false to turn them off. |
| void BBPGlue.API.BBPEnvironment.SetSpawn | ( | Vector3 | position, |
| Quaternion | rotation ) |
Sets the environment spawn position and rotation.
| position | The spawn position. |
| rotation | The spawn rotation. |
| void BBPGlue.API.BBPEnvironment.SetTimeLimit | ( | float | time | ) |
Sets the level time limit.
| time | The time limit in seconds. |
Spawns an NPC prefab at the specified BB+ grid cell.
| npc | The NPC prefab wrapper. |
| x | Grid X coordinate. |
| z | Grid Z coordinate. |
| BBPNpc? BBPGlue.API.BBPEnvironment.SpawnNpc | ( | object | npcPrefab, |
| int | x, | ||
| int | z ) |
Spawns a raw NPC prefab at the specified BB+ grid cell.
| npcPrefab | The raw NPC prefab. |
| x | Grid X coordinate. |
| z | Grid Z coordinate. |
| BBPNpc? BBPGlue.API.BBPEnvironment.SpawnNpcAtPlayer | ( | object | npcPrefab | ) |
Spawns an NPC at the player's position.
| npcPrefab | The raw NPC prefab. |
| BBPNpc? BBPGlue.API.BBPEnvironment.SpawnNpcAtWorld | ( | object | npcPrefab, |
| Vector3 | worldPosition ) |
Spawns an NPC at a world position.
| npcPrefab | The raw NPC prefab. |
| worldPosition | The target world position. |
| BBPNpc? BBPGlue.API.BBPEnvironment.SpawnNpcByCharacter | ( | string | characterName | ) |
Finds an NPC prefab by character name and spawns it at the player's position.
| characterName | The character name to look up. |
| BBPNpc? BBPGlue.API.BBPEnvironment.SpawnNpcByCharacter | ( | string | characterName, |
| Vector3 | worldPosition ) |
Finds an NPC prefab by character name and spawns it at a world position.
| characterName | The character name to look up. |
| worldPosition | The target world position. |
| BBPNpc? BBPGlue.API.BBPEnvironment.SpawnNpcByName | ( | string | nameContains | ) |
Finds an NPC prefab by name and spawns it at the player's position.
| nameContains | The NPC prefab name to look up. |
| BBPNpc? BBPGlue.API.BBPEnvironment.SpawnNpcByName | ( | string | nameContains, |
| Vector3 | worldPosition ) |
Finds an NPC prefab by name and spawns it at a world position.
| nameContains | The NPC prefab name to look up. |
| worldPosition | The target world position. |
| void BBPGlue.API.BBPEnvironment.SpawnNPCs | ( | ) |
Spawns the level NPCs.
| GameObject? BBPGlue.API.BBPEnvironment.SpawnObject | ( | GameObject | prefab, |
| Vector3 | position ) |
Spawns a GameObject at a position.
| prefab | The GameObject prefab to instantiate. |
| position | The spawn position. |
| GameObject? BBPGlue.API.BBPEnvironment.SpawnObject | ( | GameObject | prefab, |
| Vector3 | position, | ||
| Quaternion | rotation ) |
Spawns a GameObject at a position and rotation.
| prefab | The GameObject prefab to instantiate. |
| position | The spawn position. |
| rotation | The spawn rotation. |
| GameObject? BBPGlue.API.BBPEnvironment.SpawnObject | ( | GameObject | prefab, |
| Vector3 | position, | ||
| Quaternion | rotation, | ||
| Transform? | parent ) |
Spawns a GameObject at a position, rotation, and optional parent.
| prefab | The GameObject prefab to instantiate. |
| position | The spawn position. |
| rotation | The spawn rotation. |
| parent | The optional parent transform. |
| T? BBPGlue.API.BBPEnvironment.SpawnObject< T > | ( | T | prefab, |
| Vector3 | position ) |
Spawns a Component at a position.
| T | The component type. |
| prefab | The component prefab to instantiate. |
| position | The spawn position. |
| T | : | Component |
| T? BBPGlue.API.BBPEnvironment.SpawnObject< T > | ( | T | prefab, |
| Vector3 | position, | ||
| Quaternion | rotation, | ||
| Transform? | parent = null ) |
Spawns a Component at a position, rotation, and optional parent.
| T | The component type. |
| prefab | The component prefab to instantiate. |
| position | The spawn position. |
| rotation | The spawn rotation. |
| parent | The optional parent transform. |
| T | : | Component |
Spawns a pickup by item ID at the player's position.
| item | The item ID to spawn. |
Spawns a pickup by item ID at a world position.
| item | The item ID to spawn. |
| worldPosition | The target world position. |
| BBPPickup? BBPGlue.API.BBPEnvironment.SpawnPickup | ( | object | room, |
| BBPItemObject | item, | ||
| Vector2 | position ) |
Spawns a pickup in a room.
| room | The raw room object. |
| item | The item object to spawn. |
| position | The pickup position. |
| BBPPickup? BBPGlue.API.BBPEnvironment.SpawnPickupAtPlayer | ( | BBPItemObject | item | ) |
Spawns a pickup at the player's position.
| item | The item object to spawn. |
| BBPPickup? BBPGlue.API.BBPEnvironment.SpawnPickupAtWorld | ( | BBPItemObject | item, |
| Vector3 | worldPosition ) |
Spawns a pickup at a world position.
| item | The item object to spawn. |
| worldPosition | The target world position. |
| BBPPickup? BBPGlue.API.BBPEnvironment.SpawnPickupByName | ( | string | name | ) |
Spawns a pickup by item name at the player's position.
| name | The item name to look up. |
| BBPPickup? BBPGlue.API.BBPEnvironment.SpawnPickupByName | ( | string | name, |
| Vector3 | worldPosition ) |
Spawns a pickup by item name at a world position.
| name | The item name to look up. |
| worldPosition | The target world position. |
| object? BBPGlue.API.BBPEnvironment.SpawnPickupRaw | ( | object | room, |
| object | itemObject, | ||
| Vector2 | position ) |
Spawns a raw pickup in a room.
| room | The raw room object. |
| itemObject | The raw item object. |
| position | The pickup position. |
| object? BBPGlue.API.BBPEnvironment.SpawnPrefab | ( | object | prefab, |
| Vector3 | worldPosition ) |
Spawns a supported prefab at a world position.
| prefab | An NPC prefab, item object, GameObject, or Component prefab. |
| worldPosition | The target world position. |
| object? BBPGlue.API.BBPEnvironment.SpawnPrefabAtPlayer | ( | object | prefab | ) |
Spawns a supported prefab at the player's position.
| prefab | An NPC prefab, item object, GameObject, or Component prefab. |
| object? BBPGlue.API.BBPEnvironment.SpawnRawObject | ( | object | prefab, |
| Vector3 | position ) |
Spawns a raw GameObject or Component prefab with no custom rotation.
| prefab | The raw prefab to instantiate. |
| position | The spawn position. |
| object? BBPGlue.API.BBPEnvironment.SpawnRawObject | ( | object | prefab, |
| Vector3 | position, | ||
| Quaternion | rotation, | ||
| Transform? | parent = null ) |
Spawns a raw GameObject or Component prefab.
| prefab | The raw prefab to instantiate. |
| position | The spawn position. |
| rotation | The spawn rotation. |
| parent | The optional parent transform. |
| void BBPGlue.API.BBPEnvironment.StartEventTimers | ( | ) |
Starts random event timers.
| void BBPGlue.API.BBPEnvironment.StopEvents | ( | ) |
Stops active random events.
| void BBPGlue.API.BBPEnvironment.TempCloseBully | ( | ) |
Temporarily closes bully blockers.
| void BBPGlue.API.BBPEnvironment.TempCloseLockedStandardDoors | ( | ) |
Temporarily closes locked standard doors.
| void BBPGlue.API.BBPEnvironment.TempCloseWindows | ( | ) |
Temporarily closes windows.
| void BBPGlue.API.BBPEnvironment.TempOpenBreakableWindows | ( | ) |
Temporarily opens breakable windows.
| void BBPGlue.API.BBPEnvironment.TempOpenBully | ( | ) |
Temporarily opens bully blockers.
| void BBPGlue.API.BBPEnvironment.TempOpenLockedStandardDoors | ( | ) |
Temporarily opens locked standard doors.
|
getset |
Gets or sets whether the environment is active.
|
get |
Gets the raw activity list.
|
get |
Gets Baldi from the current environment.
|
get |
Gets the currently active random events.
|
get |
Gets all door components currently found in the scene.
|
get |
Gets the raw elevator manager.
|
get |
Gets the raw elevator list.
|
get |
Gets all elevator components currently found in the scene.
|
get |
Gets the environment time scale.
|
get |
Gets the number of random events available in the current level.
|
get |
Gets whether random events have started.
|
get |
Gets whether an environment controller is available.
|
get |
Gets the environment height.
|
get |
Gets the number of pickups in the environment.
|
get |
Gets the raw pickup list.
|
get |
Gets the raw map object.
|
get |
Gets whether navigation updates are frozen.
|
get |
Gets the number of notebooks in the environment.
|
get |
Gets the raw notebook list.
|
getset |
Gets or sets the total number of notebooks in the level.
|
get |
Gets the number of NPCs in the environment.
|
get |
Gets the raw NPC list.
|
get |
Gets the NPC time scale.
|
get |
Gets the number of players in the environment.
|
get |
Gets the raw player list.
|
get |
Gets the player time scale.
|
get |
Gets the raw environment controller instance.
|
get |
Gets the remaining level time.
|
get |
Gets the number of rooms in the environment.
|
get |
Gets all room components currently found in the scene.
|
get |
Gets the raw room list.
|
getset |
Gets or sets the level spawn position.
|
getset |
Gets or sets the level spawn rotation.
|
get |
Gets the elapsed game time.
|
get |
Gets the elapsed real time.
|
get |
Gets whether the level timer has run out.