public CellType(string name, Color color) { this.Name = name; this.Color = color; this.Id = idCounter++; CellBehaviour = new CellBehaviour(); }
public CellType(string name, byte R, byte G, byte B) { this.Name = name; this.Color = new Color(); this.Color.R = R; this.Color.G = G; this.Color.B = B; this.Color.A = 255; this.Id = idCounter++; CellBehaviour = new CellBehaviour(); }
} //Rule container. public CellBehaviour(CellBehaviour cb) { Rules = new List <IRule>(cb.Rules); }