public IContainer AddAndPrepare(IContainer container) { AddContainer(container); #if !ECP_DISABLE_INJECT EcpInjections.Inject(container, _domain, _entityManager, _injections); #endif return(container); }
public void Prepare() { #if !ECP_DISABLE_INJECT for (var i = 0; i < _containersCount; i++) { EcpInjections.Inject(_containers[i], _domain, _entityManager, _injections); } for (var i = 0; i < _pipelineCount; i++) { _pipelines[i].Prepare(); } #endif }
public void Prepare() { #if !ECP_DISABLE_INJECT for (var i = 0; i < _injectSystemsCount; i++) { // injection for nested EcsSystems. var nestedSystems = _injectSystems[i] as Pipeline; if (nestedSystems != null) { foreach (var pair in _injections) { nestedSystems._injections[pair.Key] = pair.Value; } } EcpInjections.Inject(_injectSystems[i], _domain, _entityManager, _injections); } #endif }