Instruction System
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Godot;
|
||||
using Nocturnis.Enigmos.Modules;
|
||||
using Nocturnis.GlobalManagement.Providers;
|
||||
|
||||
@@ -24,7 +25,7 @@ public class EnigmosControl
|
||||
|
||||
public void ShutDownEngine()
|
||||
{
|
||||
GlobalProvider.SceneProvider.RootScene.EngineSwitch.TextureNormal =
|
||||
((GlobalProvider.SceneProvider.RootScene.EngineSwitch as TextureButton)!).TextureNormal =
|
||||
GlobalProvider.TextureProvider.EngineSwitchOff;
|
||||
EngineUp = false;
|
||||
}
|
||||
@@ -32,7 +33,7 @@ public class EnigmosControl
|
||||
public void PowerUpEngine()
|
||||
{
|
||||
CreatureControl.Instance.CurrentCharacter.MotherBoard.Reset();
|
||||
GlobalProvider.SceneProvider.RootScene.EngineSwitch.TextureNormal =
|
||||
(GlobalProvider.SceneProvider.RootScene.EngineSwitch as TextureButton)!.TextureNormal =
|
||||
GlobalProvider.TextureProvider.EngineSwitchOn;
|
||||
EngineUp = true;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Godot;
|
||||
using Nocturnis.Creatures.Characters;
|
||||
using Nocturnis.Enigmos.Modules;
|
||||
using Nocturnis.Inventories.Items;
|
||||
|
||||
@@ -14,7 +15,7 @@ public static class GlobalProvider
|
||||
public static IDataTypeProvider DataTypeProvider { get; set; }
|
||||
public static IProcessProvider ProcessProvider { get; set; }
|
||||
public static ITextureProvider TextureProvider { get; set; }
|
||||
|
||||
public static IPositionProvider PositionProvider { get; set; }
|
||||
public static IConstructorProvider ConstructorProvider { get; set; }
|
||||
|
||||
public static IFileAccessProvider FileAccessProvider { get; set; }
|
||||
@@ -41,4 +42,5 @@ public static class GlobalProvider
|
||||
public static Font Font { get; set; }
|
||||
|
||||
public static readonly Dictionary<StringName, Texture2D> DataTypeTexture = new();
|
||||
public static IPlayerCharacter MainCharacter { get; set; }
|
||||
}
|
||||
|
||||
11
src/GlobalManagement/Providers/IPositionProvider.cs
Normal file
11
src/GlobalManagement/Providers/IPositionProvider.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Godot;
|
||||
using Nocturnis.Hermeteus.BracketSystem;
|
||||
|
||||
namespace Nocturnis.GlobalManagement.Providers;
|
||||
|
||||
public interface IPositionProvider
|
||||
{
|
||||
delegate IInstructionArrowEnd Map();
|
||||
Dictionary<string, Map> Positions { get; set; }
|
||||
IInstructionArrowEnd GetPosition(string query);
|
||||
}
|
||||
Reference in New Issue
Block a user