Beispiel #1
0
        private void ExecuteForGroup(IReadOnlyList <IEntity> entities, IReactToGroupExSystem system, bool runParallel = false)
        {
            // We manually down cast this so it doesnt recurse this method
            var castSystem = (IReactToGroupSystem)system;

            system.BeforeProcessing();
            ExecuteForGroup(entities, castSystem, runParallel);
            system.AfterProcessing();
        }
Beispiel #2
0
 private void ExecuteForGroup(IReadOnlyList <IEntity> entities, IReactToGroupExSystem castSystem, bool runParallel = false)
 {
     castSystem.BeforeProcessing();
     ExecuteForGroup(entities, (IReactToGroupSystem)castSystem, runParallel);
     castSystem.AfterProcessing();
 }