blob: db3e390807f72ee77a5a9469efa95446f16e896b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
using System;
using Godot;
using TheLegendOfGustav.InputHandling;
using TheLegendOfGustav.Magic;
namespace TheLegendOfGustav.Utils;
/// <summary>
/// Objeto global com sinais, fortes sinais.
/// </summary>
public partial class SignalBus : Node
{
/// <summary>
/// Pois é.
/// </summary>
public static SignalBus Instance { get; private set; }
[Signal]
public delegate void InspectorMovedEventHandler(Vector2I pos);
[Signal]
public delegate void EnterInspectionModeEventHandler();
[Signal]
public delegate void ExitInspectionModeEventHandler();
[Signal]
public delegate void PlayerSpellChooseLocationEventHandler(SpellResource spell);
[Signal]
public delegate void PlayerSpellCastEventHandler(bool success);
[Signal]
public delegate void CommandInputHandlerEventHandler(InputHandlers state);
[Signal]
public delegate void EscapeRequestedEventHandler();
[Signal]
public delegate void PlayerDescentEventHandler();
[Signal]
public delegate void DungeonFloorChangedEventHandler(int floor);
public override void _Ready()
{
base._Ready();
Instance = this;
}
}
|