23 lines
679 B
C#
23 lines
679 B
C#
namespace RhSolutions.MLModifiers.DrinkingWaterHeatingFittings;
|
|
|
|
[MLModifierKey("Угольник RAUTITAN")]
|
|
public class Elbow : DrinkingWaterHeatingFitting
|
|
{
|
|
protected override string _title { get; } = "Угольник -PLATINUM";
|
|
|
|
public override bool TryQueryModify(string input, out string output)
|
|
{
|
|
output = string.Empty;
|
|
var diameterMatch = _diameter.Match(input);
|
|
if (!diameterMatch.Success)
|
|
{
|
|
return false;
|
|
}
|
|
string diameter = diameterMatch.Groups["Diameter"].Value;
|
|
var angleMatch = _angle.Match(input);
|
|
string angle = angleMatch.Success ? angleMatch.Groups["Angle"].Value : "90";
|
|
output = $"{_title} {angle} {diameter}";
|
|
return true;
|
|
}
|
|
}
|