public LightDevice(uint deviceID, string name, LFX_Position position, LFX_ColorStruct lightColor) { _deviceID = deviceID; _name = name; _position = position; _lightColor = lightColor; Console.WriteLine($"{Name} Attached with Lights Set to {LightColor} color Lights."); }
public FXLightController(uint index, string name, LFX_Position position, int priority = 0) : base(position) { this.index = index; this.name = name; lights = new List<FXLight>(); Reset(); }
public FXBase(LFX_Position position) { this.position = position; this.color = Color.black; }
public FXZone(LFX_Position position, int priority = 0) : base(position) { this.priority = priority; }
public static FXZone GetZoneByPosition(int priority, LFX_Position position) { if (!isLoaded) Load(); if (!isInit) return null; FXZone result = new FXZone(position, priority); zones.Add(result); return result; }
public static FXZone GetZoneByPosition(LFX_Position position) { return GetZoneByPosition(0, position); }
public static List<FXLight> GetLightsByPosition(int priority, LFX_Position position) { if (!isLoaded) Load(); if (!isInit) return null; List<FXLight> result = new List<FXLight>(); foreach (var device in devices) { foreach (var light in device.lights) { if ((light.position & position) != 0) { result.Add(light.GetLight(priority)); } } } return result; }
public static List<FXLight> GetLightsByPosition(LFX_Position position) { return GetLightsByPosition(0, position); }