static ComponentManager() { _lockObject = new object(); Flag = ComponentFlag.GetNextFlag(); Pools = EmptyArray <ComponentPool <T> > .Value; Publisher <WorldDisposedMessage> .Subscribe(0, On); }
public bool this[ComponentFlag flag] { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => flag.Index < _bitArray?.Length && (_bitArray[flag.Index] & flag.Bit) != 0;