basic capture functionality
This commit is contained in:
parent
246f3c0840
commit
c141e6a169
20 changed files with 430 additions and 14 deletions
14
scripts/core/GameRoot.cs
Normal file
14
scripts/core/GameRoot.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using Godot;
|
||||
|
||||
public partial class GameRoot : Node
|
||||
{
|
||||
public static GameRoot Instance { get; private set; } = null!;
|
||||
public event System.Action<Creature>? CaptureRequested;
|
||||
|
||||
public override void _EnterTree()
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
public void RequestCapture(Creature creature) => CaptureRequested?.Invoke(creature);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue