foreach (Zone z in singleZones)
{
Color[] colors = new Color[] { Color.FromHsv(startTime / 36 + z.ID * 60, 1.0, 1.0) };
z.Update(colors);
}
Possible lifetime problems... but I don't think so? I doubt anyone would have Zone objects living any longer than the Client anyway, and it will still disconnect when requested...
Allows for even more convenient patterns like
Possible lifetime problems... but I don't think so? I doubt anyone would have Zone objects living any longer than the Client anyway, and it will still disconnect when requested...