Пример #1
0
        private static Systems SystemsFromElement(SystemsElement element)
        {
            var setupSystems   = element.SetupSystems.Select(e => e.Action).ToArray();
            var updateSystems  = element.UpdateSystems.Select(e => e.Action).ToArray();
            var cleanupSystems = element.CleanupSystems.Select(e => e.Action).ToArray();

            return(new Systems(setupSystems, updateSystems, cleanupSystems));
        }
Пример #2
0
        public override FeatureBuilder End()
        {
            var systemsElement = new SystemsElement();

            systemsElement.Add(_setupSystems, _updateSystems, _cleanupSystems);
            _consume(systemsElement);
            return(base.End());
        }
Пример #3
0
 internal FeatureElement(List <DependencyElement> imports,
                         List <ContextElement> providedContexts,
                         List <ComponentElement> providedComponents,
                         List <Action <MessageBus> > messageCtors,
                         SystemsElement systems)
 {
     Imports            = imports;
     ProvidedContexts   = providedContexts;
     ProvidedComponents = providedComponents;
     MessageCtors       = messageCtors;
     Systems            = systems;
 }
Пример #4
0
 internal void Add(SystemsElement element)
 {
     SetupSystems.AddRange(element.SetupSystems);
     UpdateSystems.AddRange(element.UpdateSystems);
     CleanupSystems.AddRange(element.CleanupSystems);
 }