summaryrefslogtreecommitdiff
path: root/scripts/InputHandling/InspectInputHandler.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-09-18 12:06:59 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-09-18 12:06:59 -0300
commit5146895cf537dd69867da612abed5b4abaf805cd (patch)
tree70212352a07922b58db99ba2564f76ca072af200 /scripts/InputHandling/InspectInputHandler.cs
parenteacdd15612c70ff86f3446982c46a09272249936 (diff)
ME ELIMINE AAAAAAAAAAAAAAAAAAAAAAAAAAAA
Diffstat (limited to 'scripts/InputHandling/InspectInputHandler.cs')
-rw-r--r--scripts/InputHandling/InspectInputHandler.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/InputHandling/InspectInputHandler.cs b/scripts/InputHandling/InspectInputHandler.cs
index 90734f9..6e13c2f 100644
--- a/scripts/InputHandling/InspectInputHandler.cs
+++ b/scripts/InputHandling/InspectInputHandler.cs
@@ -10,7 +10,7 @@ namespace TheLegendOfGustav.InputHandling;
/// </summary>
public partial class InspectInputHandler : BaseInputHandler
{
- private static readonly PackedScene InspectorScene = GD.Load<PackedScene>("res://scenes/Inspector.tscn");
+ private static readonly PackedScene inspectorScene = GD.Load<PackedScene>("res://scenes/Inspector.tscn");
private static readonly Godot.Collections.Dictionary<string, Vector2I> directions = new()
{
@@ -28,23 +28,23 @@ public partial class InspectInputHandler : BaseInputHandler
/// Preciso disso
/// </summary>
[Export]
- private Map.Map Map { get; set; }
+ private Map.Map map;
- private Inspector Inspector { get; set; }
+ private Inspector inspector;
public override void Enter()
{
SignalBus.Instance.EmitSignal(SignalBus.SignalName.EnterInspectionMode);
- Inspector = InspectorScene.Instantiate<Inspector>();
+ inspector = inspectorScene.Instantiate<Inspector>();
- Inspector.GridPosition = Map.MapData.Player.GridPosition;
+ inspector.GridPosition = map.MapData.Player.GridPosition;
- Map.AddChild(Inspector);
+ map.AddChild(inspector);
}
public override void Exit()
{
- Inspector.QueueFree();
+ inspector.QueueFree();
SignalBus.Instance.EmitSignal(SignalBus.SignalName.ExitInspectionMode);
}
@@ -56,7 +56,7 @@ public partial class InspectInputHandler : BaseInputHandler
{
if (Input.IsActionJustPressed(direction.Key))
{
- Inspector.Walk(direction.Value);
+ inspector.Walk(direction.Value);
}
}