AssemblyCSharp.Ingredient.CanBeUsedFor C# (CSharp) Method

CanBeUsedFor() public method

public CanBeUsedFor ( ComponentType component ) : bool
component ComponentType
return bool
        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;
            }
        }