mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-11 13:06:24 +00:00
Code cleanup
This commit is contained in:
1 parent
8390c7da68
commit
2b314091eb
10 files changed
+25
-49
No files matched your search
@@ -43,6 +43,11 @@ namespace CUE.NET.Brushes
|
||||
/// </summary>
|
||||
public Dictionary<BrushRenderTarget, Color> RenderedTargets { get; } = new Dictionary<BrushRenderTarget, Color>();
|
||||
|
||||
/// <summary>
|
||||
/// Gets the strongly-typed target used for the effect.
|
||||
/// </summary>
|
||||
protected override IBrush EffectTarget => this;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// ReSharper disable UnusedMember.Global
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
|
||||
namespace CUE.NET.Brushes
|
||||
@@ -40,11 +41,6 @@ namespace CUE.NET.Brushes
|
||||
|
||||
#region Properties & Fields
|
||||
|
||||
/// <summary>
|
||||
/// Gets the strongly-typed target used for the effect.
|
||||
/// </summary>
|
||||
protected override IBrush EffectTarget => this;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the image drawn by the brush. If null it will default to full transparent.
|
||||
/// </summary>
|
||||
@@ -63,7 +59,7 @@ namespace CUE.NET.Brushes
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color at an specific point assuming the brush is drawn into the given rectangle.
|
||||
/// </summary>
|
||||
|
||||
@@ -17,12 +17,7 @@ namespace CUE.NET.Brushes
|
||||
public class LinearGradientBrush : AbstractBrush
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
/// <summary>
|
||||
/// Gets the strongly-typed target used for the effect.
|
||||
/// </summary>
|
||||
protected override IBrush EffectTarget => this;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the start point (as percentage in the range [0..1]) of the gradient drawn by the brush. (default: 0f, 0.5f)
|
||||
/// </summary>
|
||||
|
||||
@@ -11,12 +11,7 @@ namespace CUE.NET.Brushes
|
||||
public class ProfileBrush : AbstractBrush
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
/// <summary>
|
||||
/// Gets the strongly-typed target used for the effect.
|
||||
/// </summary>
|
||||
protected override IBrush EffectTarget => this;
|
||||
|
||||
|
||||
private Dictionary<CorsairLedId, Color> _colors;
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -16,11 +16,6 @@ namespace CUE.NET.Brushes
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
/// <summary>
|
||||
/// Gets the strongly-typed target used for the effect.
|
||||
/// </summary>
|
||||
protected override IBrush EffectTarget => this;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the center point (as percentage in the range [0..1]) around which the brush should be drawn.
|
||||
/// </summary>
|
||||
|
||||
@@ -14,12 +14,7 @@ namespace CUE.NET.Brushes
|
||||
public class RandomColorBrush : AbstractBrush
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
/// <summary>
|
||||
/// Gets the strongly-typed target used for the effect.
|
||||
/// </summary>
|
||||
protected override IBrush EffectTarget => this;
|
||||
|
||||
|
||||
private Random _random = new Random();
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -11,12 +11,7 @@ namespace CUE.NET.Brushes
|
||||
public class SolidColorBrush : AbstractBrush
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
/// <summary>
|
||||
/// Gets the strongly-typed target used for the effect.
|
||||
/// </summary>
|
||||
protected override IBrush EffectTarget => this;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the color drawn by the brush.
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user