EntitySystem constructor
EntitySystem(
- Aspect aspect
Creates an EntitySystem with aspect
.
Implementation
EntitySystem(Aspect aspect)
: _all = aspect._all,
_excluded = aspect._excluded,
_one = aspect._one {
_systemBitIndex = _SystemBitManager._getBitIndexFor(runtimeType);
_componentIndicesAll = _all.toIntValues();
_componentIndicesOne = _one.toIntValues();
_componentIndicesExcluded = _excluded.toIntValues();
_interestingComponentsIndices = _componentIndicesAll
.followedBy(_componentIndicesOne)
.followedBy(_componentIndicesExcluded)
.toList();
}