mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
add indexers for pools
This commit is contained in:
parent
c4109b010c
commit
cb0c299e2e
@ -80,6 +80,11 @@ namespace DCFApixels.DragonECS
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
public ref T this[int index]
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get { return ref Get(index); }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
|
@ -91,6 +91,13 @@ namespace DCFApixels.DragonECS
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
public bool this[int index]
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get { return Has(index); }
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
set { Set(index, value); }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Method
|
||||
|
Loading…
Reference in New Issue
Block a user