mirror of
https://github.com/Dadechin/Unity-WebSocket.git
synced 2025-07-03 20:04:33 +00:00
26 lines
667 B
C#
26 lines
667 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,
|
|
}
|
|
}
|
|
|