Skip to content

Commit

Permalink
Enable nullable at the project level for the Engine and opt-out where…
Browse files Browse the repository at this point in the history
… it hasn't been implemented yet.
  • Loading branch information
huguesv committed Nov 13, 2024
1 parent 78b0cdc commit 09f0b16
Show file tree
Hide file tree
Showing 184 changed files with 83 additions and 314 deletions.
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Detection/Database.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Detection;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Detection;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Detection/DetectByFileNames.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Detection;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Detection/DetectByInternalDatabase.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Detection;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Detection/DetectByWinAgiGameInfo.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Detection;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Detection/Game.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Detection;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Detection/GameDetector.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Detection;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Detection/GameDetectorResult.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Detection;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Detection/GameFile.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Detection;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Detection/GameFileCollection.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Detection;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Detection/GameFinder.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Detection;

public class GameFinder
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Detection/GameInfoParser.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Detection;

internal static class GameInfoParser
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Detection/IGameDetectorAlgorithm.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Detection;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/GameFolder.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine;

internal sealed class GameFolder : IGameContainer
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/GameStartInfo.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/GameZipArchive.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine;

using System.IO.Compression;
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/IGameContainer.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine;

public interface IGameContainer
Expand Down
2 changes: 2 additions & 0 deletions src/Woohoo.Agi.Engine/Interpreter/AgiInterpreter.Kernel.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter;

using Woohoo.Agi.Engine.Resources;
Expand Down
2 changes: 2 additions & 0 deletions src/Woohoo.Agi.Engine/Interpreter/AgiInterpreter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter;

using Woohoo.Agi.Engine.Interpreter.Controls;
Expand Down
2 changes: 2 additions & 0 deletions src/Woohoo.Agi.Engine/Interpreter/Blit.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter;

public class Blit
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Interpreter/BorderType.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Interpreter;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Interpreter/ClockState.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Interpreter;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Interpreter/ComputerType.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Interpreter;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Interpreter/ControlEntry.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Interpreter;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Interpreter/ControlLine.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Interpreter;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter.Controls;

public class ClassicInputControl : InputControl
Expand Down
2 changes: 2 additions & 0 deletions src/Woohoo.Agi.Engine/Interpreter/Controls/GameControl.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter.Controls;

public class GameControl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Interpreter.Controls;

using Woohoo.Agi.Engine;
Expand Down
2 changes: 2 additions & 0 deletions src/Woohoo.Agi.Engine/Interpreter/Controls/InputBoxControl.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter.Controls;

public class InputBoxControl
Expand Down
2 changes: 2 additions & 0 deletions src/Woohoo.Agi.Engine/Interpreter/Controls/InputControl.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter.Controls;

public abstract class InputControl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter.Controls;

using Woohoo.Agi.Engine.Resources;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public InventoryControlItem()
/// <summary>
/// Gets or sets item name.
/// </summary>
public string Name { get; set; }
public string Name { get; set; } = string.Empty;

/// <summary>
/// Gets or sets item index in the inventory resource.
Expand Down
2 changes: 2 additions & 0 deletions src/Woohoo.Agi.Engine/Interpreter/Controls/ListBoxControl.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter.Controls;

public class ListBoxControl
Expand Down
2 changes: 2 additions & 0 deletions src/Woohoo.Agi.Engine/Interpreter/Controls/MenuControl.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter.Controls;

public class MenuControl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter.Controls;

public class PopupInputControl : InputControl
Expand Down
2 changes: 2 additions & 0 deletions src/Woohoo.Agi.Engine/Interpreter/Controls/PromptControl.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter.Controls;

public class PromptControl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter.Controls;

public class SaveRestoreFolderBrowseControl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter.Controls;

public class SaveRestoreGameBrowseControl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter.Controls;

using Woohoo.Agi.Engine;
Expand Down
2 changes: 2 additions & 0 deletions src/Woohoo.Agi.Engine/Interpreter/Controls/TextBoxControl.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter.Controls;

public class TextBoxControl
Expand Down
2 changes: 2 additions & 0 deletions src/Woohoo.Agi.Engine/Interpreter/Controls/TraceControl.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter.Controls;

using Woohoo.Agi.Engine.Interpreter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable disable

namespace Woohoo.Agi.Engine.Interpreter.Controls;

public class WordListInputControl : ClassicInputControl
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Interpreter/CycleMode.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Interpreter;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Woohoo.Agi.Engine/Interpreter/Direction.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

#nullable enable

namespace Woohoo.Agi.Engine.Interpreter;

/// <summary>
Expand Down
Loading

0 comments on commit 09f0b16

Please sign in to comment.