|
Baldi's Basics Plus Glue API
Modding API for Baldi's Basics Plus
|
Wraps the BB+ Baldi NPC and exposes Baldi-specific fields, sounds, detention behavior, and helper methods. More...
Public Member Functions | |
| void | AddExtraAnger (float value) |
| Adds extra anger to Baldi by invoking the underlying GetExtraAnger method. | |
| BBPBaldi (object? raw) | |
| Initializes a new instance of the BBPBaldi class wrapping a raw object. | |
| void | BreakRuler () |
| Invokes the underlying BreakRuler behavior for Baldi. | |
| void | CaughtPlayer (BBPPlayerRef player) |
| Notifies Baldi that a player has been caught. | |
| void | ClearDestination () |
| Clears the NPC's current destination. | |
| void | ClearDestinationInteraction () |
| Clears the current destination interaction for Baldi. | |
| void | ClearGuilt () |
| Clears the NPC's guilt state. | |
| void | ClearSoundLocations () |
| Clears tracked sound locations for Baldi. | |
| 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 | Distract () |
| Causes Baldi to become distracted by invoking the underlying Distract method. | |
| void | EatSound () |
| Triggers Baldi's eat sound behavior. | |
| void | EndSlap () |
| Ends Baldi's slap action by invoking the underlying EndSlap method. | |
| 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 | GetAngry (float value) |
| Triggers Baldi to get angry by invoking the underlying GetAngry method. | |
| void | Hear (GameObject? source, Vector3 position, int value, bool indicator=true) |
| Informs Baldi of a sound source at a given position. | |
| 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 | 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 | Praise (float time, bool rewardSticker=false) |
| Praises the player for a duration and optionally rewards a sticker. | |
| void | PraiseAnimation () |
| Plays Baldi's praise animation. | |
| void | ResetSlapDistance () |
| Resets the slap distance threshold for Baldi. | |
| void | ResetSprite () |
| Resets Baldi's sprite to its default state. | |
| void | RestoreRuler () |
| Invokes the underlying RestoreRuler behavior for Baldi. | |
| void | ResumeApple () |
| Resumes Baldi's apple-related behavior. | |
| void | SentToDetention () |
| Calls the NPC detention handler. | |
| void | SetAnger (float value) |
| Sets Baldi's anger to the specified value by invoking the underlying method. | |
| 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 | Slap () |
| Invokes Baldi's Slap action. | |
| void | SlapBreak () |
| Invokes Baldi's slap break action. | |
| void | SlapBroken () |
| Invokes Baldi's broken slap action. | |
| void | SlapNormal () |
| Invokes Baldi's normal slap action. | |
| void | SlapRumble () |
| Invokes Baldi's slap rumble action. | |
| void | Squish (float time) |
| Squishes the NPC entity for a duration. | |
| void | TakeApple () |
| Causes Baldi to take an apple. | |
| 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 | TutorialCatch () |
| Invokes Baldi's tutorial catch behavior. | |
| void | Unsighted () |
| Calls the NPC unsighted handler. | |
| void | Unsquish () |
| Removes the NPC entity's squished state. | |
| void | UpdateSlapDistance () |
| Updates the slap distance calculation for Baldi. | |
| void | UpdateSoundTarget () |
| Updates Baldi's sound target by invoking the underlying UpdateSoundTarget method. | |
| 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 | Anger [get, set] |
| Gets or sets the current anger level for Baldi. | |
| float | AppleTime [get, set] |
| Gets or sets the timer related to Baldi's apple interactions. | |
| BBPAudioManager | Audio [get] |
| Gets the audio manager associated with Baldi. | |
| float | BaseAnger [get, set] |
| Gets or sets the base anger value for Baldi. | |
| float | BaseSpeed [get, set] |
| Gets or sets the base movement speed for Baldi. | |
| 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. | |
| string | Character [get] |
| Gets the NPC character identifier as text. | |
| object? | CharacterRaw [get, set] |
| Gets or sets the raw character value. | |
| Vector3 | CurrentDestination [get] |
| Gets the NPC navigator's current destination. | |
| object? | CurrentDestinationInteraction [get] |
| Gets the current destination interaction object Baldi is targeting. | |
| float | Delay [get] |
| Gets the current delay value for Baldi. | |
| 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. | |
| float | ExtraAnger [get, set] |
| Gets or sets the extra anger applied to Baldi. | |
| float | ExtraAngerDrain [get, set] |
| Gets or sets the extra anger drain applied to Baldi. | |
| 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. | |
| object? | Looker [get, set] |
| Gets or sets the NPC looker component. | |
| float | MaxSpeed [get, set] |
| Gets or sets the NPC navigator's maximum speed. | |
| float | MovementPortion [get] |
| Gets the portion of time Baldi spends moving. | |
| 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. | |
| float | NextSlapDistance [get, set] |
| Gets or sets the next slap distance threshold for Baldi. | |
| float | PauseTime [get, set] |
| Gets or sets the pause time for Baldi's behavior. | |
| 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 | SlapDistance [get, set] |
| Gets or sets the current slap distance threshold for Baldi. | |
| float | SlapSpeedScale [get, set] |
| Gets or sets the scale applied to speed when Baldi slaps. | |
| bool | SmoothMove [get, set] |
| Gets or sets whether Baldi uses smooth movement. | |
| IList? | SpawnableRooms [get] |
| Gets the rooms this NPC can spawn in. | |
| float | Speed [get] |
| Gets the current effective speed for Baldi. | |
| float | SpeedMultiplier [get, set] |
| Gets or sets the multiplier applied to Baldi's base 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 | TotalDistance [get, set] |
| Gets or sets the total distance Baldi has traveled. | |
| bool | TutorialMode [get, set] |
| Gets or sets whether Baldi is in tutorial mode. | |
| Vector3 | Velocity [get] |
| Gets the NPC navigator's current velocity. | |
| bool | Wandering [get] |
| Gets whether the NPC is currently wandering. | |
Wraps the BB+ Baldi NPC and exposes Baldi-specific fields, sounds, detention behavior, and helper methods.
| BBPGlue.API.BBPBaldi.BBPBaldi | ( | object? | raw | ) |
Initializes a new instance of the BBPBaldi class wrapping a raw object.
| raw | The raw underlying object instance or null. |
| void BBPGlue.API.BBPBaldi.AddExtraAnger | ( | float | value | ) |
Adds extra anger to Baldi by invoking the underlying GetExtraAnger method.
| value | The extra anger amount to add. |
| void BBPGlue.API.BBPBaldi.BreakRuler | ( | ) |
Invokes the underlying BreakRuler behavior for Baldi.
| void BBPGlue.API.BBPBaldi.CaughtPlayer | ( | BBPPlayerRef | player | ) |
Notifies Baldi that a player has been caught.
| player | Reference to the player that was caught. |
|
inherited |
Clears the NPC's current destination.
| void BBPGlue.API.BBPBaldi.ClearDestinationInteraction | ( | ) |
Clears the current destination interaction for Baldi.
|
inherited |
Clears the NPC's guilt state.
| void BBPGlue.API.BBPBaldi.ClearSoundLocations | ( | ) |
Clears tracked sound locations for Baldi.
|
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. |
| void BBPGlue.API.BBPBaldi.Distract | ( | ) |
Causes Baldi to become distracted by invoking the underlying Distract method.
| void BBPGlue.API.BBPBaldi.EatSound | ( | ) |
Triggers Baldi's eat sound behavior.
| void BBPGlue.API.BBPBaldi.EndSlap | ( | ) |
Ends Baldi's slap action by invoking the underlying EndSlap 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.
| void BBPGlue.API.BBPBaldi.GetAngry | ( | float | value | ) |
Triggers Baldi to get angry by invoking the underlying GetAngry method.
| value | The amount of anger to apply. |
| void BBPGlue.API.BBPBaldi.Hear | ( | GameObject? | source, |
| Vector3 | position, | ||
| int | value, | ||
| bool | indicator = true ) |
Informs Baldi of a sound source at a given position.
| source | The GameObject source of the sound (may be null). |
| position | The position where the sound originated. |
| value | An integer value associated with the sound. |
| indicator | Whether to show an indicator for the sound. |
|
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. |
|
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. |
| void BBPGlue.API.BBPBaldi.Praise | ( | float | time, |
| bool | rewardSticker = false ) |
Praises the player for a duration and optionally rewards a sticker.
| time | The duration of the praise. |
| rewardSticker | If true, reward a sticker. |
| void BBPGlue.API.BBPBaldi.PraiseAnimation | ( | ) |
Plays Baldi's praise animation.
| void BBPGlue.API.BBPBaldi.ResetSlapDistance | ( | ) |
Resets the slap distance threshold for Baldi.
| void BBPGlue.API.BBPBaldi.ResetSprite | ( | ) |
Resets Baldi's sprite to its default state.
| void BBPGlue.API.BBPBaldi.RestoreRuler | ( | ) |
Invokes the underlying RestoreRuler behavior for Baldi.
| void BBPGlue.API.BBPBaldi.ResumeApple | ( | ) |
Resumes Baldi's apple-related behavior.
|
inherited |
Calls the NPC detention handler.
| void BBPGlue.API.BBPBaldi.SetAnger | ( | float | value | ) |
Sets Baldi's anger to the specified value by invoking the underlying method.
| value | The anger value to set. |
|
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.BBPBaldi.Slap | ( | ) |
Invokes Baldi's Slap action.
| void BBPGlue.API.BBPBaldi.SlapBreak | ( | ) |
Invokes Baldi's slap break action.
| void BBPGlue.API.BBPBaldi.SlapBroken | ( | ) |
Invokes Baldi's broken slap action.
| void BBPGlue.API.BBPBaldi.SlapNormal | ( | ) |
Invokes Baldi's normal slap action.
| void BBPGlue.API.BBPBaldi.SlapRumble | ( | ) |
Invokes Baldi's slap rumble action.
|
inherited |
Squishes the NPC entity for a duration.
| time | The duration in seconds. |
| void BBPGlue.API.BBPBaldi.TakeApple | ( | ) |
Causes Baldi to take an apple.
|
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.
| void BBPGlue.API.BBPBaldi.TutorialCatch | ( | ) |
Invokes Baldi's tutorial catch behavior.
|
inherited |
Calls the NPC unsighted handler.
|
inherited |
Removes the NPC entity's squished state.
| void BBPGlue.API.BBPBaldi.UpdateSlapDistance | ( | ) |
Updates the slap distance calculation for Baldi.
| void BBPGlue.API.BBPBaldi.UpdateSoundTarget | ( | ) |
Updates Baldi's sound target by invoking the underlying UpdateSoundTarget method.
|
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.
|
getset |
Gets or sets the current anger level for Baldi.
Setting this value invokes the underlying SetAnger method.
|
getset |
Gets or sets the timer related to Baldi's apple interactions.
|
get |
Gets the audio manager associated with Baldi.
|
getset |
Gets or sets the base anger value for Baldi.
|
getset |
Gets or sets the base movement speed for Baldi.
|
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.
|
getinherited |
Gets the NPC character identifier as text.
|
getsetinherited |
Gets or sets the raw character value.
|
getinherited |
Gets the NPC navigator's current destination.
|
get |
Gets the current destination interaction object Baldi is targeting.
|
get |
Gets the current delay value for Baldi.
|
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 extra anger applied to Baldi.
|
getset |
Gets or sets the extra anger drain applied to Baldi.
|
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.
|
getsetinherited |
Gets or sets the NPC looker component.
|
getsetinherited |
Gets or sets the NPC navigator's maximum speed.
|
get |
Gets the portion of time Baldi spends moving.
|
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 the next slap distance threshold for Baldi.
|
getset |
Gets or sets the pause time for Baldi's behavior.
|
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 the current slap distance threshold for Baldi.
|
getset |
Gets or sets the scale applied to speed when Baldi slaps.
|
getset |
Gets or sets whether Baldi uses smooth movement.
|
getinherited |
Gets the rooms this NPC can spawn in.
|
get |
Gets the current effective speed for Baldi.
|
getset |
Gets or sets the multiplier applied to Baldi's base 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 the total distance Baldi has traveled.
|
getset |
Gets or sets whether Baldi is in tutorial mode.
|
getinherited |
Gets the NPC navigator's current velocity.
|
getinherited |
Gets whether the NPC is currently wandering.