Refactored effects into AbstractCueDevice

This commit is contained in:
DarthAffe committed 2015-10-18 17:12:53 +02:00
1 parent 630090ac6f
commit e49945004f
5 files changed
+129 -91

No files matched your search

+5 -5
View File
@@ -6,24 +6,24 @@ namespace CUE.NET.Effects
/// <summary>
/// Represents a wrapped effect with additional time information.
/// </summary>
internal class EffectTimeContainer
public class EffectTimeContainer
{
#region Properties & Fields
/// <summary>
/// Gets or sets the wrapped effect.
/// </summary>
internal IEffect Effect { get; set; }
public IEffect Effect { get; set; }
/// <summary>
/// Gets or sets the tick-count from the last time the effect was updated.
/// </summary>
internal long TicksAtLastUpdate { get; set; }
public long TicksAtLastUpdate { get; set; }
/// <summary>
/// Gets the z-index of the effect.
/// </summary>
internal int ZIndex => Effect?.ZIndex ?? 0;
public int ZIndex => Effect?.ZIndex ?? 0;
#endregion
@@ -34,7 +34,7 @@ namespace CUE.NET.Effects
/// </summary>
/// <param name="effect">The wrapped effect.</param>
/// <param name="ticksAtLastUpdate">The tick-count from the last time the effect was updated.</param>
internal EffectTimeContainer(IEffect effect, long ticksAtLastUpdate)
public EffectTimeContainer(IEffect effect, long ticksAtLastUpdate)
{
this.Effect = effect;
this.TicksAtLastUpdate = ticksAtLastUpdate;