Esempio n. 1
0
 public CellType(string name, Color color)
 {
     this.Name     = name;
     this.Color    = color;
     this.Id       = idCounter++;
     CellBehaviour = new CellBehaviour();
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
        }                                              //Rule container.

        public CellBehaviour(CellBehaviour cb)
        {
            Rules = new List <IRule>(cb.Rules);
        }