Skip to content

Commit a204f4f

Browse files
authored
Merge pull request #13 from TeaJAge/main
add description to Signal
2 parents b984156 + 249169c commit a204f4f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

TiaCodegen/Commands/Signals/Signal.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ namespace TiaCodegen.Commands.Signals
99
public class Signal : IOperationOrSignal
1010
{
1111
public string DebugInfo { get; set; }
12-
public Signal(string name, SignalType signalType = SignalType.Bool, string customType = null)
12+
public Signal(string name, SignalType signalType = SignalType.Bool, string customType = null, string description = null)
1313
{
1414
Name = name;
1515
SignalType = signalType;
1616
Children = new List<IOperationOrSignal>();
1717
CustomType = customType;
18+
Description = description;
1819
}
1920

2021
public Signal(int value)
@@ -37,6 +38,8 @@ public Signal(bool value)
3738

3839
public string Name { get; private set; }
3940

41+
public string Description { get; private set; }
42+
4043
public SignalType SignalType { get; private set; }
4144

4245
public string CustomType { get; set; }

0 commit comments

Comments
 (0)