Add readonly where it is missing and fix those field names according to their modifiers (#2589)
This commit is contained in:
@@ -16,12 +16,12 @@ namespace Content.Server.AI.Operators.Movement
|
||||
public float ArrivalDistance { get; }
|
||||
public float PathfindingProximity { get; }
|
||||
|
||||
private bool _requiresInRangeUnobstructed;
|
||||
private readonly bool _requiresInRangeUnobstructed;
|
||||
|
||||
public MoveToEntityOperator(
|
||||
IEntity owner,
|
||||
IEntity target,
|
||||
float arrivalDistance = 1.0f,
|
||||
IEntity owner,
|
||||
IEntity target,
|
||||
float arrivalDistance = 1.0f,
|
||||
float pathfindingProximity = 1.5f,
|
||||
bool requiresInRangeUnobstructed = false)
|
||||
{
|
||||
@@ -44,7 +44,7 @@ namespace Content.Server.AI.Operators.Movement
|
||||
steering.Register(_owner, _request);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public override void Shutdown(Outcome outcome)
|
||||
{
|
||||
base.Shutdown(outcome);
|
||||
@@ -71,4 +71,4 @@ namespace Content.Server.AI.Operators.Movement
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user