TriggerRegion class
Base class for representing trigger regions. It's a predefine region in 3D space, owned by one or more triggers. The shape of the trigger can be arbitrary.
@author {@link https://github.com/Mugen87|Mugen87}
- Implementers
Constructors
Properties
Methods
-
fromJSON(
Map< String, dynamic> json) → TriggerRegion - Restores this instance from the given JSON object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJSON(
) → Map< String, dynamic> - Transforms this instance into a JSON object.
-
toString(
) → String -
A string representation of this object.
inherited
-
touching(
[GameEntity? entity]) → bool - Returns true if the bounding volume of the given game entity touches/intersects the trigger region. Must be implemented by all concrete trigger regions.
-
update(
[Trigger? trigger]) → TriggerRegion - Updates this trigger region. Must be implemented by all concrete trigger regions.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited