Esempio n. 1
0
 public LightState(int pNumberOfLights, Connection pConnection)
 {
     mNumberOfLights = pNumberOfLights;
     mLights = new List<Light>();
     for (int i = 0; i < pNumberOfLights; i++)
     {
         Light l = new Light(0, 0, 0);
         mLights.Add(l);
     }
     mConnection = pConnection;
 }
Esempio n. 2
0
 public static void Flash(ILightState pState, Light light, Color pFlashColor, int flashRate)
 {
     List<Light> lights = new List<Light>();
     lights.Add(light);
     Flash(pState, lights, pFlashColor, flashRate);
 }