mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-25 01:17:10 +01:00
20 lines
551 B
GDScript3
20 lines
551 B
GDScript3
|
# Base type for group-based steering behaviors.
|
||
|
class_name GSAIGroupBehavior
|
||
|
extends GSAISteeringBehavior
|
||
|
|
||
|
# Container to find neighbors of the agent and calculate group behavior.
|
||
|
var proximity: GSAIProximity
|
||
|
|
||
|
var _callback := funcref(self, "_report_neighbor")
|
||
|
|
||
|
|
||
|
func _init(agent: GSAISteeringAgent, _proximity: GSAIProximity).(agent) -> void:
|
||
|
self.proximity = _proximity
|
||
|
|
||
|
|
||
|
# Internal callback for the behavior to define whether or not a member is
|
||
|
# relevant
|
||
|
# tags: virtual
|
||
|
func _report_neighbor(_neighbor: GSAISteeringAgent) -> bool:
|
||
|
return false
|