Small changes + updated references to EFT 12.12.16432

This commit is contained in:
SamSWAT 2022-01-06 21:39:21 +03:00
parent 3e7986f62b
commit 85dca37953
4 changed files with 13 additions and 15 deletions

2
.gitignore vendored
View File

@ -476,3 +476,5 @@ dkms.conf
*.out *.out
*.app *.app
/project/SamSWAT.TimeWeatherChanger/Key.snk
/project/Shared/Keys

View File

@ -1,5 +1,4 @@
using UnityEngine; using UnityEngine;
using Object = UnityEngine.Object;
namespace SamSWAT.TimeWeatherChanger namespace SamSWAT.TimeWeatherChanger
{ {

View File

@ -40,9 +40,6 @@
<Reference Include="Assembly-CSharp"> <Reference Include="Assembly-CSharp">
<HintPath>..\Shared\References\Assembly-CSharp.dll</HintPath> <HintPath>..\Shared\References\Assembly-CSharp.dll</HintPath>
</Reference> </Reference>
<Reference Include="Assembly-CSharp-firstpass">
<HintPath>..\Shared\References\Assembly-CSharp-firstpass.dll</HintPath>
</Reference>
<Reference Include="Comfort"> <Reference Include="Comfort">
<HintPath>..\Shared\References\Comfort.dll</HintPath> <HintPath>..\Shared\References\Comfort.dll</HintPath>
</Reference> </Reference>

View File

@ -1,21 +1,20 @@
using UnityEngine; using System;
using UnityEngine;
using EFT; using EFT;
using EFT.UI; using EFT.UI;
using EFT.Weather; using EFT.Weather;
using System;
using Comfort.Common; using Comfort.Common;
using RegexCMD = GClass2219; using RegexCMD = GClass2296;
using GameDateTime = GClass1204; using GameDateTime = GClass1258;
using Notifier = GClass1624; using Notifier = GClass1691;
using NotifierParams = GClass1623; using NotifierParams = GClass1690;
using CursorSettings = GClass2222; using CursorSettings = GClass2299;
using Random = UnityEngine.Random; using Random = UnityEngine.Random;
namespace SamSWAT.TimeWeatherChanger namespace SamSWAT.TimeWeatherChanger
{ {
public class TimeWeatherController : MonoBehaviour public class TimeWeatherController : MonoBehaviour
{ {
private static GameObject weather;
private static GameObject input; private static GameObject input;
private static WeatherController weatherController; private static WeatherController weatherController;
private static GameWorld gameWorld; private static GameWorld gameWorld;
@ -44,6 +43,7 @@ namespace SamSWAT.TimeWeatherChanger
void Start() void Start()
{ {
Debug.LogError("SamSWAT - Time and Weather Changer loaded"); Debug.LogError("SamSWAT - Time and Weather Changer loaded");
//Duplicate functionality of home key //Duplicate functionality of home key
ConsoleScreen.Commands.AddCommand(new RegexCMD("twc", match => ConsoleScreen.Commands.AddCommand(new RegexCMD("twc", match =>
{ {
@ -152,11 +152,11 @@ namespace SamSWAT.TimeWeatherChanger
weatherdebugtex = "ON"; weatherdebugtex = "ON";
else else
weatherdebugtex = "OFF"; weatherdebugtex = "OFF";
//Caching WeatherController script for the first time //Caching WeatherController script for the first time
if (weather == null | weatherController == null) if (weatherController == null)
{ {
weather = GameObject.Find("Weather"); weatherController = GameObject.Find("Weather").GetComponent<WeatherController>();
weatherController = weather.GetComponent<WeatherController>();
} }
//Shit ton of different sliders and buttons //Shit ton of different sliders and buttons