public Command(CommandType type, Element element, ElementGenerator target, int id) { Type = type; Element = element; ElementGenerator = target; ID = id; }
private void AddGenerator(ElementGenerator generator) { m_generators.Insert(0, generator); if (m_generators.Count > 1) { m_generators[1].Parent = generator; } }
public override string ToString() { return(Invariant($"{Type,-11} {Element} {ElementGenerator.GetType().Name} {ID}")); }
public void Add(CommandType type, Element element, ElementGenerator target, int id = 0) { Add(new Command(type, element, target, id)); }