Fixes and cleanup.

This commit is contained in:
2025-02-19 20:47:20 -05:00
parent db9667ef21
commit a6ff06ac08
4 changed files with 6 additions and 7 deletions

View File

@ -7,8 +7,6 @@ namespace IngameScript
{
public class BlockActionPiston : BlockAction
{
public bool Running { get; private set; } = false;
private IMyPistonBase _piston;
private float _position;
private float _velocity;
@ -24,7 +22,7 @@ namespace IngameScript
_velocity = velocity;
}
public IEnumerator<bool> Run()
protected override IEnumerator<bool> onRun()
{
_piston.MoveToPosition(_position, _velocity);

View File

@ -7,8 +7,6 @@ namespace IngameScript
{
public class BlockActionRotor : BlockAction
{
public bool Running { get; private set; } = false;
private IMyMotorStator _rotor;
private float _angle;
private float _velocity;
@ -27,7 +25,7 @@ namespace IngameScript
_direction = direction;
}
public IEnumerator<bool> Run()
protected override IEnumerator<bool> onRun()
{
_rotor.RotorLock = false;
_rotor.RotateToAngle(_direction, _angle, _velocity);