public override sealed void Reset(ILightingInformation information, Random random)
        {
            _colours = (from index in Enumerable.Range(0, information.LightCount)
                        select information[index].Color).ToArray();

            for (int i = 0; i < Math.Min(Configured.Length, information.LightCount); i++)
            {
                _colours[i] = Configured[i];
            }
        }
Exemplo n.º 2
0
 public override void Reset(ILightingInformation information, Random random)
 {
     Color = Color.Random(random);
 }
Exemplo n.º 3
0
 public override void Reset(ILightingInformation information, Random random)
 {
     _colours = (from index in Enumerable.Range(0, information.LightCount)
                 select information[index].Color).ToArray();
 }
Exemplo n.º 4
0
 public abstract void Reset(ILightingInformation information, Random random);
Exemplo n.º 5
0
 public override void Reset(ILightingInformation information, Random random)
 {
     NextState(random);
 }
 public override void Reset(ILightingInformation information, Random random)
 {
 }
Exemplo n.º 7
0
 public override void Reset(ILightingInformation information, Random random)
 {
     _colors = (from index in Enumerable.Range(0, information.LightCount)
                select Color.Random(random)).ToList();
 }