mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2025-12-12 08:48:30 +00:00
Added an effect-list to the effect-target
This commit is contained in:
parent
33bd76ef0a
commit
86c9fb3860
@ -345,6 +345,12 @@ namespace CUE.NET.Devices.Generic
|
|||||||
|
|
||||||
#region Effects
|
#region Effects
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets a list of all active effects of this target.
|
||||||
|
/// For this device this is always null.
|
||||||
|
/// </summary>
|
||||||
|
public IList<IEffect<ILedGroup>> Effects => null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// NOT IMPLEMENTED: Effects can't be applied directly to the device. Add it to the Brush or create a ledgroup instead.
|
/// NOT IMPLEMENTED: Effects can't be applied directly to the device. Add it to the Brush or create a ledgroup instead.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -24,7 +24,7 @@ namespace CUE.NET.Effects
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets all <see cref="IEffect{T}" /> attached to this target.
|
/// Gets all <see cref="IEffect{T}" /> attached to this target.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected IList<IEffect<T>> Effects => EffectTimes.Select(x => x.Effect).Cast<IEffect<T>>().ToList();
|
public IList<IEffect<T>> Effects => EffectTimes.Select(x => x.Effect).Cast<IEffect<T>>().ToList();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the strongly-typed target used for the effect.
|
/// Gets the strongly-typed target used for the effect.
|
||||||
|
|||||||
@ -1,14 +1,25 @@
|
|||||||
// ReSharper disable UnusedMember.Global
|
// ReSharper disable UnusedMember.Global
|
||||||
|
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace CUE.NET.Effects
|
namespace CUE.NET.Effects
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a basic effect-target.
|
/// Represents a basic effect-target.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="T">The type this target represents.</typeparam>
|
/// <typeparam name="T">The type this target represents.</typeparam>
|
||||||
public interface IEffectTarget<out T>
|
public interface IEffectTarget<T>
|
||||||
where T : IEffectTarget<T>
|
where T : IEffectTarget<T>
|
||||||
{
|
{
|
||||||
|
#region Properties & Fields
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets a list of all active effects of this target.
|
||||||
|
/// </summary>
|
||||||
|
IList<IEffect<T>> Effects { get; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region Methods
|
#region Methods
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user