Files @ d6859ea7177f
Branch filter:

Location: ATITD-Tools/Desert-Paint-Codex/Models/Reaction.cs - annotation

Jason Maltzen
Add some sanity checks on min/max concentration and min/max reagents in recipe generation. Also, clear out the search queue when generation has finished so the queue isn't loaded next time. This fixes the start/resume button state when entering the recipe generator after a prior run had finished.
namespace DesertPaintCodex.Models
{
    public class Reaction
    {
        public int Red { get; }
        public int Green { get; }
        public int Blue { get; }
        public bool Exported { get; set; }

        public Reaction(int r, int g, int b)
        {
            Red = r;
            Green = g;
            Blue = b;
        }

        public override string ToString()
        {
            return "[" + Red + ", " + Green + ", " + Blue + "]";
        }
    }
}