コード例 #1
0
            public bool Contains(Sprite.Template sprite)
            {
                foreach (var component in this.Components)
                {
                    if (component.requirement && component.template.Equals(sprite.Name))
                    {
                        return(true);
                    }
                }

                return(false);
            }
コード例 #2
0
 public Component(Sprite.Template element, bool requirement)
 {
     this.template    = element;
     this.requirement = requirement;
 }