mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Level Teleporters
This commit is contained in:
parent
5e357e1a96
commit
7a8bb4311b
26 changed files with 581 additions and 410 deletions
27
Scripts/Utils/GlobalMapDatabase.cs
Normal file
27
Scripts/Utils/GlobalMapDatabase.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using Cirno.Scripts.Resources;
|
||||
using Godot;
|
||||
|
||||
namespace Cirno.Scripts.Utils;
|
||||
|
||||
public partial class GlobalMapDatabase : Node
|
||||
{
|
||||
|
||||
public static GlobalMapDatabase Instance { get; private set; }
|
||||
|
||||
[Export] public MapsDatabase Maps { get; private set; }
|
||||
|
||||
public MapResource FindMap(StringName mapId)
|
||||
{
|
||||
return Maps.FindMap(mapId);
|
||||
}
|
||||
|
||||
public MapResource FindNextMap(StringName mapId)
|
||||
{
|
||||
return Maps.FindNextMap(mapId); //FindMap(Maps.FindMap(mapId).NextMap);
|
||||
}
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue