feat: more plugin work and intra-scope communication
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using Godot;
|
||||
using GodotHostTest.Interfaces;
|
||||
|
||||
namespace GodotHostTest.Game;
|
||||
|
||||
[GlobalClass]
|
||||
public partial class LevelsData : Resource, ILevelDataProvider
|
||||
{
|
||||
[Export] private LevelData[] _levelDataEntries = [];
|
||||
|
||||
public ILevel GetLevelData(int levelNumber)
|
||||
{
|
||||
var entry = _levelDataEntries[levelNumber];
|
||||
return entry;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user