Esempio n. 1
0
        static ComponentManager()
        {
            _lockObject = new object();

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

            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;