using System; using zero.Core.Blueprints; using zero.Core.Entities; namespace zero.Core.Options { public class BlueprintOptions : ZeroBackofficeCollection, IZeroCollectionOptions { public BlueprintOptions() { Enabled = false; } public bool Enabled { get; set; } public void Add() where T : Blueprint, new() { Items.Add(new T()); } public void Add(Blueprint implementation) where T : ZeroEntity, new() { Items.Add(implementation); } public void Add(Action> createExpression = null) where T : ZeroEntity, new() { Items.Add(new DefaultBlueprint(createExpression)); } } }