This commit is contained in:
2022-05-18 19:57:23 +03:00
commit 0ad135ca0f
73 changed files with 2282 additions and 0 deletions

52
Ingame/IMyPistonBase.cs Normal file
View File

@@ -0,0 +1,52 @@
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();
}
}