Revert "removed null!"

This reverts commit 290f79afd4.
This commit is contained in:
2026-03-08 09:43:12 +01:00
parent 290f79afd4
commit c92eb19a1c
16 changed files with 151 additions and 151 deletions

View File

@@ -11,7 +11,7 @@ public partial class AttributeEditorProperty : EditorProperty
private const int ButtonSize = 26;
private const int PopupSize = 300;
private Label _label;
private Label _label = null!;
public override void _Ready()
{

View File

@@ -14,7 +14,7 @@ namespace Gamesmiths.Forge.Godot.Editor.Attributes;
[Tool]
public partial class AttributeSetClassEditorProperty : EditorProperty
{
private OptionButton _optionButton;
private OptionButton _optionButton = null!;
public override void _Ready()
{

View File

@@ -14,7 +14,7 @@ public partial class CueKeyEditorProperty : EditorProperty
private const int ButtonSize = 26;
private const int PopupSize = 300;
private Label _label;
private Label _label = null!;
public override void _Ready()
{

View File

@@ -15,13 +15,13 @@ public partial class TagContainerEditorProperty : EditorProperty
{
private readonly Dictionary<TreeItem, TagNode> _treeItemToNode = [];
private VBoxContainer _root;
private Button _containerButton;
private ScrollContainer _scroll;
private Tree _tree;
private VBoxContainer _root = null!;
private Button _containerButton = null!;
private ScrollContainer _scroll = null!;
private Tree _tree = null!;
private Texture2D _checkedIcon;
private Texture2D _uncheckedIcon;
private Texture2D _checkedIcon = null!;
private Texture2D _uncheckedIcon = null!;
private GodotStringArray _currentValue = [];

View File

@@ -13,13 +13,13 @@ public partial class TagEditorProperty : EditorProperty
{
private readonly Dictionary<TreeItem, TagNode> _treeItemToNode = [];
private VBoxContainer _root;
private Button _containerButton;
private ScrollContainer _scroll;
private Tree _tree;
private VBoxContainer _root = null!;
private Button _containerButton = null!;
private ScrollContainer _scroll = null!;
private Tree _tree = null!;
private Texture2D _checkedIcon;
private Texture2D _uncheckedIcon;
private Texture2D _checkedIcon = null!;
private Texture2D _uncheckedIcon = null!;
private string _currentValue = string.Empty;

View File

@@ -16,7 +16,7 @@ public partial class TagsEditor : VBoxContainer, ISerializationListener
{
private readonly Dictionary<TreeItem, TagNode> _treeItemToNode = [];
private TagsManager _tagsManager;
private TagsManager _tagsManager = null!;
private ForgeData? _forgePluginData;