static ComponentManager()
        {
            _lockObject = new object();

            Flag = ComponentFlag.GetNextFlag();

            Pools = EmptyArray <ComponentPool <T> > .Value;

            Publisher <WorldDisposedMessage> .Subscribe(0, On);
        }
Esempio n. 2
0
 public bool this[ComponentFlag flag]
 {
     [MethodImpl(MethodImplOptions.AggressiveInlining)]
     get => flag.Index < _bitArray?.Length && (_bitArray[flag.Index] & flag.Bit) != 0;