Traveller/scripts/loader/uiLoader/IUILoaderContract.cs
2024-05-08 18:22:04 +08:00

30 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace ColdMint.scripts.loader.uiLoader;
/// <summary>
/// <para>UI Loader Contract</para>
/// <para>UI加载器契约</para>
/// </summary>
/// <remarks>
///<para>Define methods that must be implemented by all UI loaders within the project</para>
///<para>为项目内所有UI加载器制定一些必须实现的方法</para>
/// </remarks>
public interface IUiLoaderContract
{
/// <summary>
/// <para>This method loads the information that the UI needs to display, such as: button text, images, etc.</para>
/// <para>在此方法内加载UI需要显示的信息例如按钮的文字图像等。</para>
/// </summary>
void InitializeUi();
/// <summary>
/// <para>initialization data</para>
/// <para>初始化数据</para>
/// </summary>
void InitializeData();
/// <summary>
/// <para>Load user actions that the UI needs to respond to, such as setting a click event for a button.</para>
/// <para>加载UI需要响应的用户行动例如为按钮设置点击事件。</para>
/// </summary>
void LoadUiActions();
}