|
Baldi's Basics Plus Glue API
Modding API for Baldi's Basics Plus
|
Wrapper around game entity objects exposing common state and control methods. More...
Public Member Functions | |
| GameObject? | AudioGameObject () |
| Returns the GameObject used for audio playback associated with this entity. | |
| BBPEntity (object? raw) | |
| Creates a new entity wrapper for the provided raw object. | |
| bool | CanCollideWith (BBPEntity other) |
| Returns whether this entity can collide with another entity. | |
| bool | CollisionValid (BBPEntity other) |
| Returns whether a collision with the other entity would be valid. | |
| void | Enable (bool value) |
| Enables or disables the entity's behavior. | |
| void | Flip () |
| Flips the entity horizontally. | |
| void | IgnoreEntity (BBPEntity other, bool value) |
| Adds or removes the other entity from this entity's ignore list. | |
| bool | IsIgnoring (BBPEntity other) |
| Returns whether this entity is ignoring the other entity. | |
| void | KillAllForces () |
| Removes all forces acting on the entity. | |
| void | MoveWithCollision (Vector3 movement) |
| Moves the entity while performing collision checks. | |
| void | SetActive (bool value) |
| Activates or deactivates the entity. | |
| void | SetBaseAnimationMultiplier (float value) |
| Sets a base multiplier applied to animations. | |
| void | SetBlinded (bool value) |
| Sets whether the entity is blinded. | |
| void | SetFrozen (bool value) |
| Sets the entity's frozen state. | |
| void | SetGrounded (bool value) |
| Sets whether the entity is grounded. | |
| void | SetHeight (float height) |
| Sets the entity's collision height. | |
| void | SetHidden (bool value) |
| Sets the entity's hidden state. | |
| void | SetInteractionEnabled (bool value) |
| Enables or disables interactions for the entity. | |
| void | SetResistAddend (bool value) |
| Sets an additive resistance flag for the entity. | |
| void | SetSpriteRotation (float degrees) |
| Rotates the sprite representation of the entity. | |
| void | SetTargetLayer (int layer) |
| Changes the target rendering/interaction layer for the entity. | |
| void | SetTrigger (bool value) |
| Sets whether the entity's collider acts as a trigger. | |
| void | SetVerticalScale (float factor) |
| Sets vertical scaling factor applied to the entity. | |
| void | SetVisible (bool value) |
| Sets whether the entity is visible. | |
| void | Squish (float time) |
| Squishes the entity for the specified duration. | |
| void | Teleport (Vector3 position) |
| Teleports the entity to the specified world position. | |
| void | Unsquish () |
| Reverses a previous squish effect. | |
| void | UpdateAudioState () |
| Refreshes audio-related state. | |
| void | UpdateInternalMovement (Vector3 movement) |
| Updates the internal movement vector used by the entity. | |
| void | UpdateState () |
| Requests the entity update its internal state. | |
| void | UpdateVisibility () |
| Refreshes visibility-related state. | |
Properties | |
| float | BaseHeight [get] |
| Base height of the entity for collision purposes. | |
| bool | Blinded [get] |
| Whether the entity is blinded. | |
| Component? | Component [get] |
| Unity Component wrapper for the entity, if available. | |
| object? | CurrentRoom [get] |
| Current room object containing this entity. | |
| object? | EnvironmentController [get] |
| Reference to the environment controller the entity is bound to. | |
| bool | Exists [get] |
| True when the underlying raw object is not null. | |
| object? | ExternalActivity [get] |
| External activity object if present. | |
| bool | Flipped [get] |
| Whether the entity is flipped horizontally. | |
| bool | Frozen [get] |
| Whether the entity is frozen. | |
| GameObject? | GameObject [get] |
| Unity GameObject for the entity, if available. | |
| bool | Grounded [get] |
| Whether the entity is currently grounded. | |
| bool | Hidden [get] |
| Whether the entity is hidden. | |
| bool | InBounds [get] |
| Whether the entity is within valid bounds. | |
| bool | InteractionDisabled [get] |
| Whether interactions are disabled for the entity. | |
| float | InternalHeight [get] |
| Internal height used by physics calculations. | |
| float | InternalHeightWithScaleFactor [get] |
| Internal height taking scale factor into account. | |
| Vector3 | InternalMovement [get] |
| Movement vector used internally by the entity. | |
| Vector3 | Position [get, set] |
| World position of the entity. | |
| object? | Raw [get] |
| The underlying raw game entity object wrapped by this instance. | |
| Vector3 | RelativeToForcedVelocity [get] |
| Velocity relative to forced motion applied to the entity. | |
| bool | Squished [get] |
| Whether the entity is squished. | |
| bool | TotallyActive [get] |
| Whether the entity is considered fully active by the game logic. | |
| Transform? | Transform [get] |
| Unity Transform for the entity, if available. | |
| Collider? | Trigger [get] |
| Collider used as the entity's trigger. | |
| Vector3 | Velocity [get] |
| Current velocity of the entity. | |
| bool | Visible [get] |
| Whether the entity is visible. | |
Wrapper around game entity objects exposing common state and control methods.
| BBPGlue.API.BBPEntity.BBPEntity | ( | object? | raw | ) |
Creates a new entity wrapper for the provided raw object.
| raw | The raw entity object or null. |
| GameObject? BBPGlue.API.BBPEntity.AudioGameObject | ( | ) |
Returns the GameObject used for audio playback associated with this entity.
| bool BBPGlue.API.BBPEntity.CanCollideWith | ( | BBPEntity | other | ) |
Returns whether this entity can collide with another entity.
| bool BBPGlue.API.BBPEntity.CollisionValid | ( | BBPEntity | other | ) |
Returns whether a collision with the other entity would be valid.
| void BBPGlue.API.BBPEntity.Enable | ( | bool | value | ) |
Enables or disables the entity's behavior.
| void BBPGlue.API.BBPEntity.Flip | ( | ) |
Flips the entity horizontally.
| void BBPGlue.API.BBPEntity.IgnoreEntity | ( | BBPEntity | other, |
| bool | value ) |
Adds or removes the other entity from this entity's ignore list.
| bool BBPGlue.API.BBPEntity.IsIgnoring | ( | BBPEntity | other | ) |
Returns whether this entity is ignoring the other entity.
| void BBPGlue.API.BBPEntity.KillAllForces | ( | ) |
Removes all forces acting on the entity.
| void BBPGlue.API.BBPEntity.MoveWithCollision | ( | Vector3 | movement | ) |
Moves the entity while performing collision checks.
| movement | Movement vector to apply. |
| void BBPGlue.API.BBPEntity.SetActive | ( | bool | value | ) |
Activates or deactivates the entity.
| value | True to activate; false to deactivate. |
| void BBPGlue.API.BBPEntity.SetBaseAnimationMultiplier | ( | float | value | ) |
Sets a base multiplier applied to animations.
| void BBPGlue.API.BBPEntity.SetBlinded | ( | bool | value | ) |
Sets whether the entity is blinded.
| value | True to blind; false to unblind. |
| void BBPGlue.API.BBPEntity.SetFrozen | ( | bool | value | ) |
Sets the entity's frozen state.
| value | True to freeze; false to unfreeze. |
| void BBPGlue.API.BBPEntity.SetGrounded | ( | bool | value | ) |
Sets whether the entity is grounded.
| void BBPGlue.API.BBPEntity.SetHeight | ( | float | height | ) |
Sets the entity's collision height.
| void BBPGlue.API.BBPEntity.SetHidden | ( | bool | value | ) |
Sets the entity's hidden state.
| void BBPGlue.API.BBPEntity.SetInteractionEnabled | ( | bool | value | ) |
Enables or disables interactions for the entity.
| value | True to enable; false to disable. |
| void BBPGlue.API.BBPEntity.SetResistAddend | ( | bool | value | ) |
Sets an additive resistance flag for the entity.
| void BBPGlue.API.BBPEntity.SetSpriteRotation | ( | float | degrees | ) |
Rotates the sprite representation of the entity.
| void BBPGlue.API.BBPEntity.SetTargetLayer | ( | int | layer | ) |
Changes the target rendering/interaction layer for the entity.
| void BBPGlue.API.BBPEntity.SetTrigger | ( | bool | value | ) |
Sets whether the entity's collider acts as a trigger.
| void BBPGlue.API.BBPEntity.SetVerticalScale | ( | float | factor | ) |
Sets vertical scaling factor applied to the entity.
| void BBPGlue.API.BBPEntity.SetVisible | ( | bool | value | ) |
Sets whether the entity is visible.
| void BBPGlue.API.BBPEntity.Squish | ( | float | time | ) |
Squishes the entity for the specified duration.
| void BBPGlue.API.BBPEntity.Teleport | ( | Vector3 | position | ) |
Teleports the entity to the specified world position.
| position | Destination position. |
| void BBPGlue.API.BBPEntity.Unsquish | ( | ) |
Reverses a previous squish effect.
| void BBPGlue.API.BBPEntity.UpdateAudioState | ( | ) |
Refreshes audio-related state.
| void BBPGlue.API.BBPEntity.UpdateInternalMovement | ( | Vector3 | movement | ) |
Updates the internal movement vector used by the entity.
| movement | Movement vector to set. |
| void BBPGlue.API.BBPEntity.UpdateState | ( | ) |
Requests the entity update its internal state.
| void BBPGlue.API.BBPEntity.UpdateVisibility | ( | ) |
Refreshes visibility-related state.
|
get |
Base height of the entity for collision purposes.
|
get |
Whether the entity is blinded.
|
get |
Unity Component wrapper for the entity, if available.
|
get |
Current room object containing this entity.
|
get |
Reference to the environment controller the entity is bound to.
|
get |
True when the underlying raw object is not null.
|
get |
External activity object if present.
|
get |
Whether the entity is flipped horizontally.
|
get |
Whether the entity is frozen.
|
get |
Unity GameObject for the entity, if available.
|
get |
Whether the entity is currently grounded.
|
get |
Whether the entity is hidden.
|
get |
Whether the entity is within valid bounds.
|
get |
Whether interactions are disabled for the entity.
|
get |
Internal height used by physics calculations.
|
get |
Internal height taking scale factor into account.
|
get |
Movement vector used internally by the entity.
|
getset |
World position of the entity.
Setting will teleport the entity.
|
get |
The underlying raw game entity object wrapped by this instance.
|
get |
Velocity relative to forced motion applied to the entity.
|
get |
Whether the entity is squished.
|
get |
Whether the entity is considered fully active by the game logic.
|
get |
Unity Transform for the entity, if available.
|
get |
Collider used as the entity's trigger.
|
get |
Current velocity of the entity.
|
get |
Whether the entity is visible.