Exemple #1
0
    private Sprite PatternToSprite(Egg.Pattern pattern)
    {
        switch (pattern)
        {
        case Egg.Pattern.None: return(nonePattern);

        case Egg.Pattern.Spots: return(spotsPattern);

        case Egg.Pattern.Stripes: return(stripesPattern);

        case Egg.Pattern.Speckles: return(specklesPattern);

        default: throw new ArgumentOutOfRangeException();
        }
    }
 public Layer(Egg.Pattern pattern, Color color)
 {
     this.pattern = pattern;
     this.color   = color;
 }