25 lines
512 B
C#
25 lines
512 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using System.Text;
|
|
|
|
namespace Thousandto.Plugins.Common
|
|
{
|
|
/// <summary>
|
|
/// UI组件的接口
|
|
/// </summary>
|
|
public interface IUIComponent<T,TData>
|
|
{
|
|
//克隆一个对象
|
|
T Clone();
|
|
//设置Active
|
|
void SetActive(bool active);
|
|
//设置数据或者配置文件
|
|
void SetData(TData data);
|
|
|
|
void RefreshData();
|
|
//设置名字
|
|
void SetName(string name);
|
|
}
|
|
}
|