public bool CanBeUsedFor(ComponentType component)
{
switch (component) {
case ComponentType.Dough:
return Definition.Type != "sauce_ingredient" && Definition.Type != "topping_ingredient";
case ComponentType.Sauce:
return Definition.Type == "sauce_ingredient";
case ComponentType.Topping:
return Definition.Type == "topping_ingredient";
default:
return false;
}
}