using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Sandbox.ModAPI.Ingame { public interface IMyPistonBase : IMyFunctionalBlock { /// /// Param - limit is top /// float Velocity { get; } float MinLimit { get; } float MaxLimit { get; } /// /// Gets the current position of the piston head relative to the base. /// float CurrentPosition { get; } /// /// Gets the current status. /// PistonStatus Status { get; } /// /// Gets if the piston base is attached to the top piece /// bool IsAttached { get; } /// /// Gets if the piston is safety locked (welded) /// bool IsLocked { get; } /// /// Gets if the piston is looking for a top part /// bool PendingAttachment { get; } /// /// Attaches a nearby top part to the piston block /// void Attach(); /// /// Detaches the top from the piston /// void Detach(); } }