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