Skip to content

Commit c1b7570

Browse files
committed
explicitly stating that they are null and internally set by Godot with an editor value.
1 parent c9bc639 commit c1b7570

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

data/core/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ namespace Osls
66
public class Startup : Node
77
{
88
#region ==================== Fields / Properties ====================
9-
[Export] private PackedScene _mainScene;
9+
[Export] private PackedScene _mainScene = null;
1010
private int _initialisationStep;
1111
#endregion
1212

1313

1414
#region ==================== Public Methods ====================
1515
/// <summary>
16-
/// Add initialisation steps to the loading scene util GetTree().ChangeSceneTo() is called.
16+
/// Add initialisation steps to the loading scene until GetTree().ChangeSceneTo() is called.
1717
/// If it takes some time create a loading bar.
1818
/// </summary>
1919
public override void _Process(float delta)
@@ -31,4 +31,4 @@ public override void _Process(float delta)
3131
}
3232
#endregion
3333
}
34-
}
34+
}

data/core/lesson/viewer/IoInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Osls.Core
1010
public class IoInfo : Control
1111
{
1212
#region ==================== Fields / Properties ====================
13-
[Export] private PackedScene _dataEntryScene;
13+
[Export] private PackedScene _dataEntryScene = null;
1414
private readonly List<DataEntry> _aviableInputs = new List<DataEntry>();
1515
private readonly List<DataEntry> _aviableOutputs = new List<DataEntry>();
1616
#endregion

data/diagram_models/sfc/editor/2d_editor/sfc_patch/elements/SfcLineButton.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ namespace Osls.SfcEditor
1010
public class SfcLineButton : TextureButton
1111
{
1212
#region ==================== Fields ====================
13-
[Export] private Texture _singleLineTexture;
14-
[Export] private Texture _doubleLineTexture;
13+
[Export] private Texture _singleLineTexture = null;
14+
[Export] private Texture _doubleLineTexture = null;
1515
private static Color VisibleColor = new Color(1f, 1f, 1f, 1f);
1616
private static Color TiltColor = new Color(1f, 1f, 1f, 0.4f);
1717
private static Color HiddenColor = new Color(1f, 1f, 1f, 0.0f);

data/diagram_models/sfc/processing_viewer/controls/ExecutionControl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ namespace Osls.SfcSimulation.Viewer
66
public class ExecutionControl : Button
77
{
88
#region ==================== Fields / Properties ====================
9-
[Export] private Texture _runContinuouslyTexture;
10-
[Export] private Texture _pausedTexture;
9+
[Export] private Texture _runContinuouslyTexture = null;
10+
[Export] private Texture _pausedTexture = null;
1111
[Export] private Color RunningColor = new Color(0.5f, 1f, 0f, 0.1f);
1212
[Export] private Color PausedColor = new Color(1f, 0.0f, 0.0f, 0.1f);
1313
#endregion

data/plant_models/sandbox/DigitalOutputs.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ namespace Osls.Plants.Sandbox
99
public class DigitalOutputs : ScrollContainer
1010
{
1111
#region ==================== Fields / Properties ====================
12-
[Export] private StyleBox _styleNormal;
13-
[Export] private StyleBox _styleActive;
12+
[Export] private StyleBox _styleNormal = null;
13+
[Export] private StyleBox _styleActive = null;
1414
private Label[] _outputs;
1515
#endregion
1616

0 commit comments

Comments
 (0)