Skip to content

Commit

Permalink
Fixed entityId -> entity in docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikmaeckel committed Feb 26, 2024
1 parent fb98747 commit 2480e06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ class BinaryPredicate<
* Checks if this predicate holds (i.e. is true) in the given context on current tick.
*
* @param ctx The context this predicate is evaluated in.
* @param entity1 The ID of the first entity to evaluate this predicate for. default: ego vehicle.
* @param entity2 The ID of the second entity to evaluate this predicate for.
* @param entity1 The first entity to evaluate this predicate for. default: ego vehicle.
* @param entity2 The second entity to evaluate this predicate for.
*/
fun holds(ctx: PredicateContext<E, T, S>, entity1: E1, entity2: E2): Boolean =
holds(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class UnaryPredicate<
* Check if this predicate holds (i.e. is true) in the given context.
*
* @param ctx The context this predicate is evaluated in.
* @param entity The entity to evaluate.
* @param entity The entity to evaluate this predicate for.
*/
fun holds(ctx: PredicateContext<E, T, S>, entity: E): Boolean =
holds(ctx, entity.tickData.currentTick, entity.id)
Expand Down

0 comments on commit 2480e06

Please sign in to comment.