refactor config handling
This commit is contained in:
@@ -151,11 +151,11 @@ public class SerpentsHandManager
|
||||
// ReSharper disable once IteratorNeverReturns
|
||||
}
|
||||
|
||||
public void SpawnSerpentWave()
|
||||
public static void SpawnSerpentWave()
|
||||
{
|
||||
var state = (SerpentsHandState)CustomClasses.Instance.ClassManager.GetSpawnState(typeof(SerpentsHandConfig));
|
||||
|
||||
var serpentsHandConfig = _customClasses.SerpentsHandConfig;
|
||||
var serpentsHandConfig = CustomClasses.Instance.ClassManager.GetConfig<SerpentsHandConfig>();
|
||||
|
||||
state.SetSpawned();
|
||||
state.SetWillSpawn();
|
||||
@@ -322,7 +322,7 @@ public class SpawnSerpentsCommand : ICommand
|
||||
return false;
|
||||
}
|
||||
|
||||
CustomClasses.Instance.SerpentsHandManager.SpawnSerpentWave();
|
||||
SerpentsHandManager.SpawnSerpentWave();
|
||||
|
||||
response = "success";
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user