mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 09:54:35 +08:00
update
This commit is contained in:
parent
3a15b93da5
commit
b38d59ae80
@ -100,7 +100,7 @@ namespace DCFApixels.DragonECS
|
||||
}
|
||||
|
||||
public interface INotNullComponent { }
|
||||
public static class INotNullComponentExt
|
||||
public static class EcsNotNullPoolExt
|
||||
{
|
||||
public static EcsNotNullPool<TComponent> GetPool<TComponent>(this EcsWorld self)
|
||||
where TComponent : struct, INotNullComponent
|
||||
|
@ -163,11 +163,11 @@ namespace DCFApixels.DragonECS
|
||||
#endregion
|
||||
}
|
||||
|
||||
public interface IComponent { }
|
||||
public static class IComponentExt
|
||||
public interface IEcsComponent { }
|
||||
public static class EcsPoolExt
|
||||
{
|
||||
public static EcsPool<TComponent> GetPool<TComponent>(this EcsWorld self)
|
||||
where TComponent : struct, IComparable
|
||||
where TComponent : struct, IEcsComponent
|
||||
{
|
||||
return self.GetPool<TComponent, EcsPool<TComponent>>();
|
||||
}
|
||||
|
@ -94,12 +94,12 @@ namespace DCFApixels.DragonECS
|
||||
}
|
||||
|
||||
public interface ISingleComponent { }
|
||||
public static class ISingleComponentExt
|
||||
public static class EcsSinglePoolExt
|
||||
{
|
||||
public static EcsTagPool<TSingleComponent> GetPool<TSingleComponent>(this EcsWorld self)
|
||||
public static EcsSinglePool<TSingleComponent> GetPool<TSingleComponent>(this EcsWorld self)
|
||||
where TSingleComponent : struct, ISingleComponent
|
||||
{
|
||||
return self.GetPool<TSingleComponent, EcsTagPool<TSingleComponent>>();
|
||||
return self.GetPool<TSingleComponent, EcsSinglePool<TSingleComponent>>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -73,11 +73,11 @@ namespace DCFApixels.DragonECS
|
||||
#endregion
|
||||
}
|
||||
|
||||
public interface ITagComponent { }
|
||||
public static class ITagComponentExt
|
||||
public interface IEcsTagComponent { }
|
||||
public static class EcsTagPoolExt
|
||||
{
|
||||
public static EcsTagPool<TTagComponent> GetPool<TTagComponent>(this EcsWorld self)
|
||||
where TTagComponent : struct, ITagComponent
|
||||
where TTagComponent : struct, IEcsTagComponent
|
||||
{
|
||||
return self.GetPool<TTagComponent, EcsTagPool<TTagComponent>>();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user