Files
2026-03-30 20:11:57 +07:00

22 lines
662 B
C#

namespace FishNet.Utility.Performance
{
public static class RetrieveOptionExtensions
{
public static bool FastContains(this ObjectPoolRetrieveOption whole, ObjectPoolRetrieveOption part) => (whole & part) == part;
}
[System.Flags]
public enum ObjectPoolRetrieveOption
{
Unset = 0,
/// <summary>
/// True to make the object active before returning.
/// </summary>
MakeActive = 1,
/// <summary>
/// True to treat supplied transform properties as local space.
/// False will treat the properties as world space.
/// </summary>
LocalSpace = 2
}
}