Exemplo n.º 1
0
 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.");
 }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
        public FXBase(LFX_Position position)
        {
            this.position = position;

            this.color = Color.black;
        }
Exemplo n.º 4
0
 public FXZone(LFX_Position position, int priority = 0)
     : base(position)
 {
     this.priority = priority;
 }
Exemplo n.º 5
0
    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;
    }
Exemplo n.º 6
0
 public static FXZone GetZoneByPosition(LFX_Position position)
 {
     return GetZoneByPosition(0, position);
 }
Exemplo n.º 7
0
    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;
    }
Exemplo n.º 8
0
 public static List<FXLight> GetLightsByPosition(LFX_Position position)
 {
     return GetLightsByPosition(0, position);
 }