public bool Contains(Sprite.Template sprite) { foreach (var component in this.Components) { if (component.requirement && component.template.Equals(sprite.Name)) { return(true); } } return(false); }
public Component(Sprite.Template element, bool requirement) { this.template = element; this.requirement = requirement; }