mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
add UncheckedGetPool
This commit is contained in:
parent
aad94da19d
commit
649037577d
@ -104,6 +104,11 @@ namespace DCFApixels.DragonECS
|
||||
return Get<PoolCache<TPool>>().instance;
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public TPool UncheckedGetPool<TPool>() where TPool : IEcsPoolImplementation, new()
|
||||
{
|
||||
return UncheckedGet<PoolCache<TPool>>().instance;
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public TAspect GetAspect<TAspect>() where TAspect : EcsAspect
|
||||
{
|
||||
return Get<AspectCache<TAspect>>().instance;
|
||||
|
Loading…
Reference in New Issue
Block a user