Editor slight refactor

This commit is contained in:
Rendo 2025-07-29 00:53:29 +05:00
commit 8cfbad01cf
23 changed files with 9 additions and 8 deletions

View file

@ -1,19 +0,0 @@
using Godot;
using Newlon;
[Tool]
public partial class AdventurePlayer : Node
{
const string tilesetUID = "uid://dd3yegl1xo44m";
[Export] public string pathToLevel;
public override void _Ready()
{
if (Engine.IsEditorHint()) return;
CallDeferred("InitLevel");
}
private void InitLevel()
{
LevelController.Instance.StartLevel(ResourceLoader.Load<PackedScene>(tilesetUID), ResourceLoader.Load<AdventureLevelResource>(pathToLevel));
}
}