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];
            }
        }
Пример #2
0
 public override void Reset(ILightingInformation information, Random random)
 {
     Color = Color.Random(random);
 }
Пример #3
0
 public override void Reset(ILightingInformation information, Random random)
 {
     _colours = (from index in Enumerable.Range(0, information.LightCount)
                 select information[index].Color).ToArray();
 }
Пример #4
0
 public abstract void Reset(ILightingInformation information, Random random);
Пример #5
0
 public override void Reset(ILightingInformation information, Random random)
 {
     NextState(random);
 }
 public override void Reset(ILightingInformation information, Random random)
 {
 }
Пример #7
0
 public override void Reset(ILightingInformation information, Random random)
 {
     _colors = (from index in Enumerable.Range(0, information.LightCount)
                select Color.Random(random)).ToList();
 }