Delete TurnTime and IAnalogBehavior
TurnTime has no caller; IAnalogBehavior's only implementer is Thruster. Pure deletes, no behaviour change. Not compiled in Unity (the operator's); the Shared tests build at the end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
55e607db35
commit
618e53336f
4 changed files with 1 additions and 15 deletions
|
|
@ -93,11 +93,6 @@ public interface IActivatedBehavior
|
|||
void Deactivate();
|
||||
}
|
||||
|
||||
public interface IAnalogBehavior
|
||||
{
|
||||
float Axis { get; set; }
|
||||
}
|
||||
|
||||
public interface IEventBehavior
|
||||
{
|
||||
void ResetEvents();
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public class ThrusterData : BehaviorData
|
|||
}
|
||||
}
|
||||
|
||||
public class Thruster : Behavior, IAnalogBehavior, IPowerConsumer
|
||||
public class Thruster : Behavior, IPowerConsumer
|
||||
{
|
||||
// Live: heat, quality, durability and power move this stat after construction, so it is read, never cached.
|
||||
public float Thrust => Evaluate(_data.Thrust);
|
||||
|
|
|
|||
|
|
@ -2356,6 +2356,4 @@ public class BehaviorGroup
|
|||
|
||||
return null;
|
||||
}
|
||||
|
||||
//public IAnalogBehavior Axis;
|
||||
}
|
||||
|
|
@ -59,13 +59,6 @@ public class Ship : Entity
|
|||
public float RightStrafeTotalTorque { get; private set; }
|
||||
private List<Thruster> RightStrafeTorqueThrusters = new List<Thruster>();
|
||||
|
||||
public float TurnTime(float2 direction)
|
||||
{
|
||||
var angleDiff = Direction.Angle(normalize(direction));
|
||||
var clockwise = dot(direction, Direction.Rotate(ItemRotation.Clockwise)) > 0;
|
||||
return angleDiff / ((clockwise ? ClockwiseTorque : CounterClockwiseTorque) / Mass);
|
||||
}
|
||||
|
||||
public event Action OnExitedWormhole;
|
||||
public event Action OnEnteredWormhole;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue