Files
space-engineers/Ingame/IMyPistonBase.cs
2022-05-18 19:57:23 +03:00

53 lines
1.3 KiB
C#
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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