Cleanup of usings
This commit is contained in:
parent
c34fd5eb0d
commit
d5b7f0aa26
@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using Aki.Common;
|
||||
using astealz.SmartSpawnController.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Aki.Common;
|
||||
using astealz.SmartSpawnController.Utils;
|
||||
|
||||
namespace Aki.SinglePlayer.Utils
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System;
|
||||
using ComponentAce.Compression.Libs.zlib;
|
||||
using System;
|
||||
using System.IO;
|
||||
using ComponentAce.Compression.Libs.zlib;
|
||||
|
||||
namespace Aki.Common
|
||||
{
|
||||
|
@ -2,7 +2,6 @@
|
||||
using EFT;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
namespace astealz.SmartSpawnController.Behaviors
|
||||
|
@ -1,10 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace astealz.SmartSpawnController
|
||||
{
|
||||
|
@ -1,12 +1,6 @@
|
||||
using astealz.SmartSpawnController.Utils;
|
||||
using EFT;
|
||||
using HarmonyLib;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace astealz.SmartSpawnController
|
||||
|
@ -1,10 +1,6 @@
|
||||
using Comfort.Common;
|
||||
using EFT;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace astealz.SmartSpawnController
|
||||
@ -13,8 +9,10 @@ namespace astealz.SmartSpawnController
|
||||
{
|
||||
public static Config Config { get; set; }
|
||||
|
||||
public static MapConfig CurrentMapConfig {
|
||||
get {
|
||||
public static MapConfig CurrentMapConfig
|
||||
{
|
||||
get
|
||||
{
|
||||
MapConfig config = null;
|
||||
if (!Config.Maps.TryGetValue(LocationId, out config))
|
||||
{
|
||||
@ -25,7 +23,8 @@ namespace astealz.SmartSpawnController
|
||||
}
|
||||
}
|
||||
|
||||
public static string LocationId {
|
||||
public static string LocationId
|
||||
{
|
||||
get
|
||||
{
|
||||
var game = GameObject.Find("GAME");
|
||||
|
@ -1,14 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using astealz.SmartSpawnController.Utils;
|
||||
using Comfort.Common;
|
||||
using EFT;
|
||||
using astealz.SmartSpawnController.Utils;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
|
||||
namespace astealz.SmartSpawnController
|
||||
{
|
||||
|
@ -1,10 +1,7 @@
|
||||
using EFT;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace astealz.SmartSpawnController.Patches
|
||||
{
|
||||
|
@ -1,10 +1,7 @@
|
||||
using HarmonyLib;
|
||||
using System.Collections.Generic;
|
||||
using astealz.SmartSpawnController.Utils;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Reflection.Emit;
|
||||
using UnityEngine;
|
||||
using astealz.SmartSpawnController.Utils;
|
||||
|
||||
namespace astealz.SmartSpawnController.Patches
|
||||
{
|
||||
@ -14,7 +11,8 @@ namespace astealz.SmartSpawnController.Patches
|
||||
{
|
||||
private static float scavWaveRetrySpawnDeltaTime = 15f;
|
||||
private static float lastCheckTime = 0f;
|
||||
public BotSpawnerDelayPatch() : base(prefix: nameof(PatchPrefix)) {
|
||||
public BotSpawnerDelayPatch() : base(prefix: nameof(PatchPrefix))
|
||||
{
|
||||
scavWaveRetrySpawnDeltaTime = Globals.Config.ScavWaveRetryInterval;
|
||||
}
|
||||
|
||||
|
@ -1,12 +1,9 @@
|
||||
using astealz.SmartSpawnController.Utils;
|
||||
using EFT;
|
||||
using HarmonyLib;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace astealz.SmartSpawnController.Patches
|
||||
{
|
||||
@ -38,7 +35,8 @@ namespace astealz.SmartSpawnController.Patches
|
||||
var bossSpawnerType = botSpawnerType.GetField("BossSpawner").FieldType;
|
||||
var bossLateSpawnMethod = bossSpawnerType
|
||||
.GetMethods(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly)
|
||||
.Single(m => {
|
||||
.Single(m =>
|
||||
{
|
||||
var mp = m.GetParameters();
|
||||
if (mp.Length < methodParams.Count)
|
||||
return false;
|
||||
@ -75,9 +73,11 @@ namespace astealz.SmartSpawnController.Patches
|
||||
|
||||
public WildSpawnType WildSpawnType { get; private set; }
|
||||
|
||||
public string ZoneName {
|
||||
public string ZoneName
|
||||
{
|
||||
get => nameZone;
|
||||
set {
|
||||
set
|
||||
{
|
||||
Logger.Info("Can't change boss 'ZoneName'");
|
||||
}
|
||||
}
|
||||
|
@ -1,11 +1,6 @@
|
||||
using astealz.SmartSpawnController.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace astealz.SmartSpawnController.Patches
|
||||
{
|
||||
|
@ -1,9 +1,6 @@
|
||||
using astealz.SmartSpawnController.Utils;
|
||||
using System;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace astealz.SmartSpawnController.Patches
|
||||
{
|
||||
|
@ -1,5 +1,4 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// Общие сведения об этой сборке предоставляются следующим набором
|
||||
|
Loading…
x
Reference in New Issue
Block a user