summaryrefslogtreecommitdiff
path: root/scripts/Utils/SignalBus.cs
blob: 7408db2fce440ff3b8de894df7cda22e366e74b9 (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
using Godot;
using System;

/// <summary>
/// Objeto global com sinais, fortes sinais.
/// </summary>
public partial class SignalBus : Node
{
	/// <summary>
    /// Pois é.
    /// </summary>
	public static SignalBus Instance { get; private set; }

	public override void _Ready()
	{
		base._Ready();
		Instance = this;
	}
	/// <summary>
	/// Acionado sempre que uma mensagem for adicionada para o log.
	/// </summary>
	/// <param name="text">Mensagem.</param>
	[Signal]
	public delegate void messageSentEventHandler(string text);
}