move to new git server
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Godot;
|
||||
using Nocturnis.DataStructures.States;
|
||||
using Nocturnis.Enigmos.Modules;
|
||||
using Nocturnis.GlobalManagement.Providers;
|
||||
|
||||
@@ -8,6 +9,9 @@ public class EnigmosControl
|
||||
{
|
||||
private static EnigmosControl _instance { get; set; }
|
||||
private static object _lock = new();
|
||||
public const string StateOff = "Off";
|
||||
public const string StateOn = "On";
|
||||
public const string StateEngine = "Engine";
|
||||
public static EnigmosControl Instance
|
||||
{
|
||||
get
|
||||
@@ -19,15 +23,20 @@ public class EnigmosControl
|
||||
|
||||
private EnigmosControl()
|
||||
{
|
||||
StateControl.Instance.AddRule(
|
||||
(path, fromState, toState) =>
|
||||
path.Equals(StateEngine) && (
|
||||
toState.Equals(StateOff) || toState.Equals(StateOn)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public IRootModule RootModule { get; set; }
|
||||
|
||||
public void ShutDownEngine()
|
||||
{
|
||||
((GlobalProvider.SceneProvider.RootScene.EngineSwitch as TextureButton)!).TextureNormal =
|
||||
GlobalProvider.TextureProvider.EngineSwitchOff;
|
||||
EngineUp = false;
|
||||
StateControl.Instance[StateEngine] = StateOff;
|
||||
}
|
||||
|
||||
public void PowerUpEngine()
|
||||
@@ -36,6 +45,7 @@ public class EnigmosControl
|
||||
(GlobalProvider.SceneProvider.RootScene.EngineSwitch as TextureButton)!.TextureNormal =
|
||||
GlobalProvider.TextureProvider.EngineSwitchOn;
|
||||
EngineUp = true;
|
||||
StateControl.Instance[StateEngine] = StateOn;
|
||||
}
|
||||
|
||||
public double Energy { get; set; } = 1d;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Text.Json;
|
||||
using Nocturnis.BracketSystem;
|
||||
using Nocturnis.GlobalManagement.Providers;
|
||||
using Nocturnis.Hermeteus.BracketSystem;
|
||||
|
||||
namespace Nocturnis.GlobalManagement.Controls;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Nocturnis.Hermeteus.BracketSystem;
|
||||
using Nocturnis.BracketSystem;
|
||||
|
||||
namespace Nocturnis.GlobalManagement.Providers;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using Godot;
|
||||
using Nocturnis.Hermeteus.BracketSystem;
|
||||
using Nocturnis.BracketSystem;
|
||||
|
||||
namespace Nocturnis.GlobalManagement.Providers;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user