Beispiel #1
0
            /// <inheritdoc/>
            public void Resolve(ISimulation simulation, IBehaviorContainer container, TContext context)
            {
                var builder = container.Build(simulation, context);

                foreach (var action in _builders)
                {
                    action(builder);
                }
            }
Beispiel #2
0
            /// <inheritdoc/>
            public void Resolve(ISimulation simulation, IEntity entity, IBehaviorContainer container)
            {
                // Reading is not really a problem
                var context = ContextFactory.Get <TContext>(simulation, entity, container);
                var builder = container.Build(simulation, context);

                foreach (var action in _builders)
                {
                    action(builder);
                }
            }