no nullable
parent
a65bc2bf63
commit
ab8a42d98b
|
@ -10,13 +10,13 @@ namespace dumb282tweaks;
|
||||||
|
|
||||||
public static class Main {
|
public static class Main {
|
||||||
// Variables
|
// Variables
|
||||||
[AllowNull] public static UnityModManager.ModEntry Instance { get; private set; }
|
public static UnityModManager.ModEntry Instance { get; private set; }
|
||||||
[AllowNull] public static dumb282tweaksSettings Settings { get; private set; }
|
public static dumb282tweaksSettings Settings { get; private set; }
|
||||||
|
|
||||||
public static readonly string[] cabTypeTexts = new[] {
|
// public static readonly string[] cabTypeTexts = new[] {
|
||||||
"Default",
|
// "Default",
|
||||||
"German"
|
// "German"
|
||||||
};
|
// };
|
||||||
public static readonly string[] smokeDeflectorTypeTexts = new[] {
|
public static readonly string[] smokeDeflectorTypeTexts = new[] {
|
||||||
"None",
|
"None",
|
||||||
"Witte",
|
"Witte",
|
||||||
|
@ -31,9 +31,9 @@ public static class Main {
|
||||||
// "Short",
|
// "Short",
|
||||||
// };
|
// };
|
||||||
|
|
||||||
[AllowNull] public static GameObject wagnerSmokeDeflectorsLoad;
|
public static GameObject wagnerSmokeDeflectorsLoad;
|
||||||
[AllowNull] public static GameObject witteSmokeDeflectorsLoad;
|
public static GameObject witteSmokeDeflectorsLoad;
|
||||||
[AllowNull] public static GameObject streamlinedBoilerLoad;
|
public static GameObject streamlinedBoilerLoad;
|
||||||
|
|
||||||
// Load
|
// Load
|
||||||
private static bool Load(UnityModManager.ModEntry modEntry) {
|
private static bool Load(UnityModManager.ModEntry modEntry) {
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<AssemblyName>dumb282tweaks</AssemblyName>
|
<AssemblyName>dumb282tweaks</AssemblyName>
|
||||||
<TargetFramework>net48</TargetFramework>
|
<TargetFramework>net48</TargetFramework>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<Nullable>enable</Nullable>
|
|
||||||
<WarningsAsErrors>CS8600;CS8602;CS8603</WarningsAsErrors>
|
<WarningsAsErrors>CS8600;CS8602;CS8603</WarningsAsErrors>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
@ -15,7 +14,6 @@
|
||||||
<!-- Null Checking -->
|
<!-- Null Checking -->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||||
<PackageReference Include="Nullable" Version="1.3.1" PrivateAssets="all" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<!-- Derail Valley -->
|
<!-- Derail Valley -->
|
||||||
|
|
Loading…
Reference in New Issue