BoundsComponentTester


class BoundsComponentTester


A test data accessor for a BoundsComponent to inspect and manipulate underlying fake data.

In a test environment, each entity created via BoundsComponent.create is backed by corresponding fake data in the fake runtime. This class provides a way to bridge the public BoundsComponent API with its internal fake state.

Summary

Public functions

open operator Boolean
equals(other: Any?)
open Int
Unit

Simulates a bounds update event from the runtime, notifying all registered listeners.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

triggerOnBoundsUpdate

Added in 1.0.0-alpha16
fun triggerOnBoundsUpdate(boundingBox: BoundingBox): Unit

Simulates a bounds update event from the runtime, notifying all registered listeners.

This triggers callbacks registered via BoundsComponent.addBoundsUpdateListener.

Parameters
boundingBox: BoundingBox

The new BoundingBox.