Traveller/scripts/loader/sceneLoader/SceneLoaderTemplate.cs
Cold-Mint dd2577cfd0
Add sequential layout diagram parsing policies.
添加顺序的布局图解析策略。
2024-05-19 22:32:34 +08:00

28 lines
570 B
C#

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