a little renaming

This commit is contained in:
Dylan Wilson
2018-02-06 22:25:13 +10:00
parent bb6b085fd0
commit b470a5ff99
2 changed files with 5 additions and 7 deletions
@@ -54,7 +54,6 @@ namespace MonoGame.Extended.Entities
EntityManager = new EntityManager(_systemManager, _dependencyResolver);
}
// don't call this every frame, lol
public void Scan(params Assembly[] assemblies)
{
var exportedTypes = assemblies
@@ -210,13 +209,13 @@ namespace MonoGame.Extended.Entities
if (systemAttribute == null)
return;
var system = _dependencyResolver.Resolve<ProcessingSystem>(typeInfo.AsType());
var processingSystem = system as EntityProcessingSystem;
var processingSystem = _dependencyResolver.Resolve<ProcessingSystem>(typeInfo.AsType());
var entityProcessingSystem = processingSystem as EntityProcessingSystem;
if (processingSystem != null)
processingSystem.Aspect = new Aspect(andMask, orMask, norMask);
if (entityProcessingSystem != null)
entityProcessingSystem.Aspect = new Aspect(andMask, orMask, norMask);
_systemManager.AddSystem(system, systemAttribute.GameLoopType, systemAttribute.Layer, SystemExecutionType.Synchronous);
_systemManager.AddSystem(processingSystem, systemAttribute.GameLoopType, systemAttribute.Layer, SystemExecutionType.Synchronous);
}
}