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