Handle and remove warnings in GSAI* classes

This commit is contained in:
Nathan Lovato 2020-02-11 13:18:22 -06:00
parent 77f90b0c74
commit 6d2016c9e9
5 changed files with 6 additions and 6 deletions

View File

@ -37,7 +37,7 @@ func _ready() -> void:
child.set_proximity_agents(avoider_agents)
func _physics_process(delta: float) -> void:
func _physics_process(_delta: float) -> void:
for child in get_children():
child.global_position = child.global_position.posmodv(boundaries)

View File

@ -36,5 +36,5 @@ var _applied_steering := false
# Moves the agent's body by target `acceleration`.
# tags: virtual
func _apply_steering(acceleration: GSAITargetAcceleration, delta: float) -> void:
func _apply_steering(_acceleration: GSAITargetAcceleration, _delta: float) -> void:
pass

View File

@ -16,5 +16,5 @@ func _init(agent: GSAISteeringAgent, proximity: GSAIProximity).(agent) -> void:
# Internal callback for the behavior to define whether or not a member is
# relevant
# tags: virtual
func _report_neighbor(neighbor: GSAISteeringAgent) -> bool:
func _report_neighbor(_neighbor: GSAISteeringAgent) -> bool:
return false

View File

@ -14,8 +14,8 @@ var is_enabled := true
var agent: GSAISteeringAgent
func _init(agent: GSAISteeringAgent) -> void:
self.agent = agent
func _init(_agent: GSAISteeringAgent) -> void:
self.agent = _agent
# Sets the `acceleration` with the behavior's desired amount of acceleration.

View File

@ -19,5 +19,5 @@ func _init(agent: GSAISteeringAgent, agents: Array) -> void:
# `_find_neighbors` calls `callback` for each agent in the `agents` array and
# adds one to the count if its `callback` returns true.
# tags: virtual
func _find_neighbors(callback: FuncRef) -> int:
func _find_neighbors(_callback: FuncRef) -> int:
return 0