using System; using System.ComponentModel; using TSLab.Script; using TSLab.Script.Handlers; namespace CubesLib { #region CubeDescription [Obsolete] [HandlerCategory("Ganov Cubes. Different")] [HandlerName("IsPositionLong", Language = "ru-ru")] [Description("Кубик выдает True если позиция Long и False если позиция не Long или отсутствует")] [InputsCount(1)] [Input(0, TemplateTypes.POSITION, Name = "Позиция")] [OutputsCount(1)] [OutputType(TemplateTypes.BOOL)] #endregion public class IsPositionLong : IValuesHandler, IPositionInput0, IBooleanReturns { public bool Execute(IPosition pos, int _) => pos!=null && pos.IsLong; } }