Files @ f28757bb21cb
Branch filter:

Location: ATITD-Tools/Desert-Paint-Lab/Reaction.cs

jmaltzen
Refactor recipe / reaction computation into a common class. Add some file utilities for supporting Mac bundles. Add some scripts for building Mac app bundles. Add a help window that shows the missing reactions.
using System;
namespace DesertPaintLab
{
	public class Reaction
	{
		int red = 0;
		int green = 0;
		int blue = 0;
		bool exported = false;		
		
		public int Red
		{
			get
			{
				return red;
			}	
		}
		
		public int Green
		{
			get
			{
				return green;	
			}
		}
		
		public int Blue
		{
			get
			{
				return blue;	
			}
		}
		
		public bool Exported
		{
			get
			{
				return exported;
			}
			set
			{
				exported = value;	
			}
		}
		
		public Reaction(int r, int g, int b)
		{
			red = r;
			green = g;
			blue = b;
		}
		
		public override string ToString()
		{
			return "[" + red + ", " + green + ", " + blue + "]";
		}
		
	}
}