File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Source/Orts.Simulation/Simulation/Signalling Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 22using ORTS . Scripting . Api ;
33using System ;
44using System . Collections . Generic ;
5+ using System . IO ;
56
67namespace Orts . Simulation . Signalling
78{
@@ -109,6 +110,10 @@ public enum BlockState
109110 /// </summary>
110111 public string SignalTypeName => SignalHead . SignalTypeName ;
111112 /// <summary>
113+ /// Name of the signal shape, as defined in sigcfg
114+ /// </summary>
115+ public string SignalShapeName => Path . GetFileNameWithoutExtension ( SignalObject . WorldObject . SFileName ) ;
116+ /// <summary>
112117 /// Local storage of this signal, which can be accessed from other signals
113118 /// </summary>
114119 public Dictionary < int , int > SharedVariables => SignalObject . localStorage ;
You can’t perform that action at this time.
0 commit comments