|
Baldi's Basics Plus Glue API
Modding API for Baldi's Basics Plus
|
Wraps the BB+ Chalk Face NPC and exposes chalkboard, timer, room locking, laughter, and activation helpers. More...
Public Member Functions | |
| void | Activate (BBPRoom room) |
| Activates Chalk Face in the given room. | |
| void | AdvanceLaughter (BBPRoom room, float acceleration) |
| Advances Chalk Face's laughter movement around a room. | |
| bool | AdvanceTimer () |
| Advances Chalk Face's charge timer. | |
| BBPChalkFace (object? raw) | |
| Creates a Chalk Face wrapper around a raw ChalkFace instance. | |
| void | Cancel () |
| Cancels Chalk Face's current behavior. | |
| void | Cancelled () |
| Runs Chalk Face's cancellation cleanup. | |
| void | ClearDestination () |
| Clears the NPC's current destination. | |
| void | ClearGuilt () |
| Clears the NPC's guilt state. | |
| void | DecreaseTimer (float rate) |
| Decreases Chalk Face's timer by a specific rate. | |
| void | Despawn () |
| Despawns the NPC. | |
| void | DestinationEmpty () |
| Notifies the NPC that its destination is empty. | |
| float | DistanceCheck (float value) |
| Calls the NPC distance check. | |
| void | FindPath (Vector3 start, Vector3 target) |
| Finds a path from a custom start position to a target position. | |
| void | FindPath (Vector3 target) |
| Finds a path to the target position. | |
| void | FindPathAvoid (Vector3 target, Vector3 avoid) |
| Finds a path to the target while avoiding a position. | |
| void | Flip () |
| Flips the NPC entity. | |
| void | Hear (GameObject source, Vector3 position, int value) |
| Makes the NPC hear a sound. | |
| void | Hear (Vector3 position, int value) |
| Makes the NPC hear a sound without a source GameObject. | |
| void | IdleUpdate () |
| Runs Chalk Face's idle update. | |
| void | Initialize () |
| Initializes the NPC. | |
| void | KillAllForces () |
| Clears all forces applied to the NPC entity. | |
| void | MadeNavigationDecision () |
| Notifies the NPC that it made a navigation decision. | |
| void | ManuallyAppendDestinationPoint (Vector3 position) |
| Appends a destination point to the NPC navigator. | |
| void | SentToDetention () |
| Calls the NPC detention handler. | |
| void | SetBlinded (bool blinded) |
| Sets whether the NPC entity is blinded. | |
| void | SetFrozen (bool frozen) |
| Freezes or unfreezes the NPC entity. | |
| void | SetHidden (bool hidden) |
| Sets whether the NPC entity is hidden. | |
| void | SetRoomAvoidance (bool value) |
| Enables or disables room avoidance for NPC pathfinding. | |
| void | SetSpeed (float speed) |
| Sets the NPC navigator speed. | |
| void | SetSprite (Sprite sprite) |
| Sets the sprite used by all NPC sprite renderers. | |
| void | SetSpriteBaseActive (bool active) |
| Shows or hides the NPC sprite root object. | |
| void | SetSpriteColor (Color color) |
| Sets the color used by all NPC sprite renderers. | |
| void | SetVerticalScale (float scale) |
| Sets the NPC entity's vertical scale. | |
| void | SetVisible (bool visible) |
| Sets whether the NPC entity is visible. | |
| void | Sighted () |
| Calls the NPC sighted handler. | |
| void | SkipCurrentDestinationPoint () |
| Skips the NPC navigator's current destination point. | |
| void | SpawnBoard (BBPRoom room) |
| Spawns a chalkboard in the given room. | |
| void | Squish (float time) |
| Squishes the NPC entity for a duration. | |
| void | TargetPosition (Vector3 target) |
| Sends a target position to the NPC. | |
| void | Teleport (Vector3 position) |
| Teleports the NPC to a position. | |
| void | TeleportToPlayer () |
| Teleports the NPC to the player position. | |
| void | Unsighted () |
| Calls the NPC unsighted handler. | |
| void | Unsquish () |
| Removes the NPC entity's squished state. | |
| void | UpdateSprite () |
| Updates Chalk Face's sprite visibility/charge state. | |
| void | WanderRandom () |
| Makes the NPC wander to a random destination. | |
| void | WanderRounds () |
| Makes the NPC use its round-wandering behavior. | |
Properties | |
| float | Acceleration [get, set] |
| Gets or sets the NPC navigator's acceleration. | |
| float | ApproachAcceleration [get] |
| Gets Chalk Face's approach acceleration. | |
| float | ApproachSpeed [get, set] |
| Gets or sets Chalk Face's approach speed. | |
| BBPAudioManager | Audio [get] |
| Gets Chalk Face's audio manager. | |
| Collider?[] | BaseTriggers [get, set] |
| Gets or sets the NPC base trigger colliders. | |
| object? | BehaviorStateMachine [get] |
| Gets the NPC behavior state machine. | |
| bool | Blinded [get] |
| Gets whether the NPC is blinded. | |
| string | BrokenRule [get] |
| Gets the rule currently associated with this NPC. | |
| float | CalculatedSpeed [get] |
| Gets the NPC's calculated speed from the game object. | |
| SpriteRenderer? | ChalkRenderer [get, set] |
| Gets or sets the chalk sprite renderer. | |
| string | Character [get] |
| Gets the NPC character identifier as text. | |
| object? | CharacterRaw [get, set] |
| Gets or sets the raw character value. | |
| float | Charge [get, set] |
| Gets or sets Chalk Face's internal charge amount. | |
| Vector3 | CurrentDestination [get] |
| Gets the NPC navigator's current destination. | |
| bool | Disobeying [get] |
| Gets whether the NPC is currently disobeying. | |
| BBPEntity | Entity [get] |
| Gets the entity component associated with this NPC. | |
| object? | EnvironmentController [get, set] |
| Gets or sets the environment controller associated with this NPC. | |
| bool | Exists [get] |
| Gets whether the wrapped NPC instance exists. | |
| SpriteRenderer? | FlyingRenderer [get, set] |
| Gets or sets the flying sprite renderer. | |
| bool | HasDestination [get] |
| Gets whether the NPC navigator has a destination. | |
| bool | HasDetour [get] |
| Gets whether the NPC currently has a detour. | |
| bool | IgnorePlayerOnSpawn [get, set] |
| Gets or sets whether the NPC ignores the player immediately after spawning. | |
| float | LockTime [get] |
| Gets Chalk Face's room lock time. | |
| object? | Looker [get, set] |
| Gets or sets the NPC looker component. | |
| float | MaxSpeed [get, set] |
| Gets or sets the NPC navigator's maximum speed. | |
| string | Name [get, set] |
| Gets or sets the NPC GameObject name. | |
| object? | NavigationStateMachine [get] |
| Gets the NPC navigation state machine. | |
| object? | Navigator [get] |
| Gets the NPC navigator. | |
| Vector3 | NextPoint [get] |
| Gets the next point in the NPC navigator's path. | |
| int | NoiseValue [get, set] |
| Gets or sets Chalk Face's noise value. | |
| Vector3 | Position [get, set] |
| Gets or sets the NPC position in world space. | |
| object? | Poster [get, set] |
| Gets or sets the NPC poster object. | |
| object? | PotentialRoomAssets [get, set] |
| Gets or sets the NPC potential room assets. | |
| float | Radius [get, set] |
| Gets or sets the NPC navigator radius. | |
| object? | Raw [get] |
| Gets the raw underlying NPC instance. | |
| Quaternion | Rotation [get, set] |
| Gets or sets the NPC rotation in world space. | |
| float | SetTime [get, set] |
| Gets or sets Chalk Face's set/charge time. | |
| IList? | SpawnableRooms [get] |
| Gets the rooms this NPC can spawn in. | |
| float | SpinSpeed [get, set] |
| Gets or sets Chalk Face's spin speed. | |
| GameObject? | SpriteBase [get, set] |
| Gets or sets the root GameObject for the NPC sprites. | |
| SpriteRenderer?[] | SpriteRenderers [get, set] |
| Gets or sets the NPC sprite renderers. | |
| float | TimeScale [get] |
| Gets the NPC's current time scale. | |
| float | UnchargeRate [get, set] |
| Gets or sets Chalk Face's uncharge rate. | |
| Vector3 | Velocity [get] |
| Gets the NPC navigator's current velocity. | |
| bool | Wandering [get] |
| Gets whether the NPC is currently wandering. | |
Wraps the BB+ Chalk Face NPC and exposes chalkboard, timer, room locking, laughter, and activation helpers.
| BBPGlue.API.BBPChalkFace.BBPChalkFace | ( | object? | raw | ) |
Creates a Chalk Face wrapper around a raw ChalkFace instance.
| raw | The raw ChalkFace object or component. |
| void BBPGlue.API.BBPChalkFace.Activate | ( | BBPRoom | room | ) |
Activates Chalk Face in the given room.
| room | The room to lock and haunt. |
| void BBPGlue.API.BBPChalkFace.AdvanceLaughter | ( | BBPRoom | room, |
| float | acceleration ) |
Advances Chalk Face's laughter movement around a room.
| room | The target room. |
| acceleration | Extra acceleration. |
| bool BBPGlue.API.BBPChalkFace.AdvanceTimer | ( | ) |
Advances Chalk Face's charge timer.
| void BBPGlue.API.BBPChalkFace.Cancel | ( | ) |
Cancels Chalk Face's current behavior.
| void BBPGlue.API.BBPChalkFace.Cancelled | ( | ) |
Runs Chalk Face's cancellation cleanup.
|
inherited |
Clears the NPC's current destination.
|
inherited |
Clears the NPC's guilt state.
| void BBPGlue.API.BBPChalkFace.DecreaseTimer | ( | float | rate | ) |
Decreases Chalk Face's timer by a specific rate.
| rate | Amount to decrease. |
|
inherited |
Despawns the NPC.
|
inherited |
Notifies the NPC that its destination is empty.
|
inherited |
Calls the NPC distance check.
| value | The value to pass to the game method. |
|
inherited |
Finds a path from a custom start position to a target position.
| start | The start position. |
| target | The target position. |
|
inherited |
Finds a path to the target position.
| target | The target position. |
|
inherited |
Finds a path to the target while avoiding a position.
| target | The target position. |
| avoid | The position to avoid. |
|
inherited |
Flips the NPC entity.
|
inherited |
Makes the NPC hear a sound.
| source | The sound source GameObject. |
| position | The sound position. |
| value | The sound value used by the game. |
|
inherited |
Makes the NPC hear a sound without a source GameObject.
| position | The sound position. |
| value | The sound value used by the game. |
| void BBPGlue.API.BBPChalkFace.IdleUpdate | ( | ) |
Runs Chalk Face's idle update.
|
inherited |
Initializes the NPC.
|
inherited |
Clears all forces applied to the NPC entity.
|
inherited |
Notifies the NPC that it made a navigation decision.
|
inherited |
Appends a destination point to the NPC navigator.
| position | The point to append. |
|
inherited |
Calls the NPC detention handler.
|
inherited |
Sets whether the NPC entity is blinded.
| blinded | True to blind the NPC; false to restore sight. |
|
inherited |
Freezes or unfreezes the NPC entity.
| frozen | True to freeze the NPC; false to unfreeze it. |
|
inherited |
Sets whether the NPC entity is hidden.
| hidden | True to hide the NPC; false to show it. |
|
inherited |
Enables or disables room avoidance for NPC pathfinding.
| value | True to avoid rooms; otherwise, false. |
|
inherited |
Sets the NPC navigator speed.
| speed | The speed to set. |
|
inherited |
Sets the sprite used by all NPC sprite renderers.
| sprite | The sprite to use. |
|
inherited |
Shows or hides the NPC sprite root object.
| active | True to show the sprite root; false to hide it. |
|
inherited |
Sets the color used by all NPC sprite renderers.
| color | The color to apply. |
|
inherited |
Sets the NPC entity's vertical scale.
| scale | The vertical scale value. |
|
inherited |
Sets whether the NPC entity is visible.
| visible | True to make the NPC visible; false to hide it. |
|
inherited |
Calls the NPC sighted handler.
|
inherited |
Skips the NPC navigator's current destination point.
| void BBPGlue.API.BBPChalkFace.SpawnBoard | ( | BBPRoom | room | ) |
Spawns a chalkboard in the given room.
| room | The room to spawn a board in. |
|
inherited |
Squishes the NPC entity for a duration.
| time | The duration in seconds. |
|
inherited |
Sends a target position to the NPC.
| target | The target position. |
|
inherited |
Teleports the NPC to a position.
| position | The target position. |
|
inherited |
Teleports the NPC to the player position.
|
inherited |
Calls the NPC unsighted handler.
|
inherited |
Removes the NPC entity's squished state.
| void BBPGlue.API.BBPChalkFace.UpdateSprite | ( | ) |
Updates Chalk Face's sprite visibility/charge state.
|
inherited |
Makes the NPC wander to a random destination.
|
inherited |
Makes the NPC use its round-wandering behavior.
|
getsetinherited |
Gets or sets the NPC navigator's acceleration.
|
get |
Gets Chalk Face's approach acceleration.
|
getset |
Gets or sets Chalk Face's approach speed.
|
get |
Gets Chalk Face's audio manager.
|
getsetinherited |
Gets or sets the NPC base trigger colliders.
|
getinherited |
Gets the NPC behavior state machine.
|
getinherited |
Gets whether the NPC is blinded.
|
getinherited |
Gets the rule currently associated with this NPC.
|
getinherited |
Gets the NPC's calculated speed from the game object.
|
getset |
Gets or sets the chalk sprite renderer.
|
getinherited |
Gets the NPC character identifier as text.
|
getsetinherited |
Gets or sets the raw character value.
|
getset |
Gets or sets Chalk Face's internal charge amount.
|
getinherited |
Gets the NPC navigator's current destination.
|
getinherited |
Gets whether the NPC is currently disobeying.
|
getinherited |
Gets the entity component associated with this NPC.
|
getsetinherited |
Gets or sets the environment controller associated with this NPC.
|
getinherited |
Gets whether the wrapped NPC instance exists.
|
getset |
Gets or sets the flying sprite renderer.
|
getinherited |
Gets whether the NPC navigator has a destination.
|
getinherited |
Gets whether the NPC currently has a detour.
|
getsetinherited |
Gets or sets whether the NPC ignores the player immediately after spawning.
|
get |
Gets Chalk Face's room lock time.
|
getsetinherited |
Gets or sets the NPC looker component.
|
getsetinherited |
Gets or sets the NPC navigator's maximum speed.
|
getsetinherited |
Gets or sets the NPC GameObject name.
|
getinherited |
Gets the NPC navigation state machine.
|
getinherited |
Gets the NPC navigator.
|
getinherited |
Gets the next point in the NPC navigator's path.
|
getset |
Gets or sets Chalk Face's noise value.
|
getsetinherited |
Gets or sets the NPC position in world space.
|
getsetinherited |
Gets or sets the NPC poster object.
|
getsetinherited |
Gets or sets the NPC potential room assets.
|
getsetinherited |
Gets or sets the NPC navigator radius.
|
getinherited |
Gets the raw underlying NPC instance.
|
getsetinherited |
Gets or sets the NPC rotation in world space.
|
getset |
Gets or sets Chalk Face's set/charge time.
|
getinherited |
Gets the rooms this NPC can spawn in.
|
getset |
Gets or sets Chalk Face's spin speed.
|
getsetinherited |
Gets or sets the root GameObject for the NPC sprites.
|
getsetinherited |
Gets or sets the NPC sprite renderers.
|
getinherited |
Gets the NPC's current time scale.
|
getset |
Gets or sets Chalk Face's uncharge rate.
|
getinherited |
Gets the NPC navigator's current velocity.
|
getinherited |
Gets whether the NPC is currently wandering.