no nullable

master
t0stiman 2023-11-23 13:04:06 +01:00
parent a65bc2bf63
commit ab8a42d98b
2 changed files with 9 additions and 11 deletions

View File

@ -10,13 +10,13 @@ namespace dumb282tweaks;
public static class Main {
// Variables
[AllowNull] public static UnityModManager.ModEntry Instance { get; private set; }
[AllowNull] public static dumb282tweaksSettings Settings { get; private set; }
public static UnityModManager.ModEntry Instance { get; private set; }
public static dumb282tweaksSettings Settings { get; private set; }
public static readonly string[] cabTypeTexts = new[] {
"Default",
"German"
};
// public static readonly string[] cabTypeTexts = new[] {
// "Default",
// "German"
// };
public static readonly string[] smokeDeflectorTypeTexts = new[] {
"None",
"Witte",
@ -31,9 +31,9 @@ public static class Main {
// "Short",
// };
[AllowNull] public static GameObject wagnerSmokeDeflectorsLoad;
[AllowNull] public static GameObject witteSmokeDeflectorsLoad;
[AllowNull] public static GameObject streamlinedBoilerLoad;
public static GameObject wagnerSmokeDeflectorsLoad;
public static GameObject witteSmokeDeflectorsLoad;
public static GameObject streamlinedBoilerLoad;
// Load
private static bool Load(UnityModManager.ModEntry modEntry) {

View File

@ -3,7 +3,6 @@
<AssemblyName>dumb282tweaks</AssemblyName>
<TargetFramework>net48</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<WarningsAsErrors>CS8600;CS8602;CS8603</WarningsAsErrors>
</PropertyGroup>
@ -15,7 +14,6 @@
<!-- Null Checking -->
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Nullable" Version="1.3.1" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<!-- Derail Valley -->