removed null!
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Gamesmiths.Forge.Godot.Core;
|
||||
|
||||
public class ForgeManagers
|
||||
{
|
||||
public static ForgeManagers Instance { get; private set; } = null!;
|
||||
public static ForgeManagers Instance { get; private set; }
|
||||
|
||||
public TagsManager TagsManager { get; private set; }
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ public partial class AttributeEditorProperty : EditorProperty
|
||||
private const int ButtonSize = 26;
|
||||
private const int PopupSize = 300;
|
||||
|
||||
private Label _label = null!;
|
||||
private Label _label;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Gamesmiths.Forge.Godot.Editor.Attributes;
|
||||
[Tool]
|
||||
public partial class AttributeSetClassEditorProperty : EditorProperty
|
||||
{
|
||||
private OptionButton _optionButton = null!;
|
||||
private OptionButton _optionButton;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ public partial class CueKeyEditorProperty : EditorProperty
|
||||
private const int ButtonSize = 26;
|
||||
private const int PopupSize = 300;
|
||||
|
||||
private Label _label = null!;
|
||||
private Label _label;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
|
||||
@@ -15,13 +15,13 @@ public partial class TagContainerEditorProperty : EditorProperty
|
||||
{
|
||||
private readonly Dictionary<TreeItem, TagNode> _treeItemToNode = [];
|
||||
|
||||
private VBoxContainer _root = null!;
|
||||
private Button _containerButton = null!;
|
||||
private ScrollContainer _scroll = null!;
|
||||
private Tree _tree = null!;
|
||||
private VBoxContainer _root;
|
||||
private Button _containerButton;
|
||||
private ScrollContainer _scroll;
|
||||
private Tree _tree;
|
||||
|
||||
private Texture2D _checkedIcon = null!;
|
||||
private Texture2D _uncheckedIcon = null!;
|
||||
private Texture2D _checkedIcon;
|
||||
private Texture2D _uncheckedIcon;
|
||||
|
||||
private GodotStringArray _currentValue = [];
|
||||
|
||||
|
||||
@@ -13,13 +13,13 @@ public partial class TagEditorProperty : EditorProperty
|
||||
{
|
||||
private readonly Dictionary<TreeItem, TagNode> _treeItemToNode = [];
|
||||
|
||||
private VBoxContainer _root = null!;
|
||||
private Button _containerButton = null!;
|
||||
private ScrollContainer _scroll = null!;
|
||||
private Tree _tree = null!;
|
||||
private VBoxContainer _root;
|
||||
private Button _containerButton;
|
||||
private ScrollContainer _scroll;
|
||||
private Tree _tree;
|
||||
|
||||
private Texture2D _checkedIcon = null!;
|
||||
private Texture2D _uncheckedIcon = null!;
|
||||
private Texture2D _checkedIcon;
|
||||
private Texture2D _uncheckedIcon;
|
||||
|
||||
private string _currentValue = string.Empty;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ public partial class TagsEditor : VBoxContainer, ISerializationListener
|
||||
{
|
||||
private readonly Dictionary<TreeItem, TagNode> _treeItemToNode = [];
|
||||
|
||||
private TagsManager _tagsManager = null!;
|
||||
private TagsManager _tagsManager;
|
||||
|
||||
private ForgeData? _forgePluginData;
|
||||
|
||||
|
||||
@@ -18,15 +18,15 @@ public partial class ForgeEntity : Node, IForgeEntity
|
||||
[Export]
|
||||
public ForgeTagContainer BaseTags { get; set; } = new();
|
||||
|
||||
public EntityAttributes Attributes { get; set; } = null!;
|
||||
public EntityAttributes Attributes { get; set; }
|
||||
|
||||
public EntityTags Tags { get; set; } = null!;
|
||||
public EntityTags Tags { get; set; }
|
||||
|
||||
public EffectsManager EffectsManager { get; set; } = null!;
|
||||
public EffectsManager EffectsManager { get; set; }
|
||||
|
||||
public EntityAbilities Abilities { get; set; } = null!;
|
||||
public EntityAbilities Abilities { get; set; }
|
||||
|
||||
public EventManager Events { get; set; } = null!;
|
||||
public EventManager Events { get; set; }
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user