框架上传
This commit is contained in:
14
Assets/00.StaryEvo/Runtime/Rule/ICanGetModel.cs
Normal file
14
Assets/00.StaryEvo/Runtime/Rule/ICanGetModel.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace Stary.Evo
|
||||
{
|
||||
public interface ICanGetData: IBelongToArchitecture
|
||||
{
|
||||
|
||||
}
|
||||
public static class CanGetDataExtension
|
||||
{
|
||||
public static T GetData<T>(this ICanGetData self) where T : class, IData
|
||||
{
|
||||
return self.GetArchitecture().GetData<T>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user