Traveller/scripts/loader/sceneLoader/SceneLoaderTemplate.cs

28 lines
570 B
C#
Raw Normal View History

using System.Threading.Tasks;
2024-04-28 13:55:19 +00:00
using Godot;
namespace ColdMint.scripts.loader.sceneLoader;
/// <summary>
/// <para>The scene loader template</para>
2024-04-28 13:55:19 +00:00
/// <para>场景加载器模板</para>
/// </summary>
public partial class SceneLoaderTemplate : Node2D, ISceneLoaderContract
{
public sealed override async void _Ready()
{
await InitializeData();
await LoadScene();
}
2024-04-28 13:55:19 +00:00
public virtual Task InitializeData()
{
return Task.CompletedTask;
}
public virtual Task LoadScene()
{
return Task.CompletedTask;
}
}