Files @ b9934660c784
Branch filter:

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

Malkyne
This is the original source migrated over from Google Code, exactly as it appeared in 2010.
using System;

namespace DesertPaintLab
{
	public class Reagent
	{ 
		string name;
		bool isCatalyst = false;
		PaintColor color;
		
		public bool IsCatalyst
		{
			get
			{
				return isCatalyst;	
			}
		}
		
		public PaintColor Color
		{
			get
			{
				return color;	
			}
		}
		
		public string Name
		{
			get
			{
				return name;	
			}
		}
		
		public Reagent(string name)
		{
			this.name = name;
			isCatalyst = true;
		}
		
		public Reagent(string name, byte red, byte green, byte blue)
		{
			color = new PaintColor(red, green, blue);
			this.name = name;
		}
		
		public override string ToString()
		{
			if (isCatalyst)
			{
				return "[" + name + ", catalyst]";
			}
			else
			{
				return "[" + name + ", " + color.ToString() + "]";
			}
		}
		
		
	}
}