-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathDistantLightReferenceNode.cs
More file actions
58 lines (51 loc) · 1.7 KB
/
DistantLightReferenceNode.cs
File metadata and controls
58 lines (51 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#if WINAPPSDK
using Microsoft.UI.Composition;
#else
using Windows.UI.Composition;
#endif
namespace CommunityToolkit.WinUI.Animations.Expressions;
/// <summary>
/// Class DistantLightReferenceNode. This class cannot be inherited.
/// </summary>
/// <seealso cref="CommunityToolkit.WinUI.Animations.Expressions.ReferenceNode" />
public sealed partial class DistantLightReferenceNode : ReferenceNode
{
/// <summary>
/// Initializes a new instance of the <see cref="DistantLightReferenceNode"/> class.
/// </summary>
/// <param name="paramName">Name of the parameter.</param>
/// <param name="light">The light.</param>
internal DistantLightReferenceNode(string paramName, DistantLight? light = null)
: base(paramName, light)
{
}
/// <summary>
/// Creates the target reference.
/// </summary>
/// <returns>DistantLightReferenceNode.</returns>
internal static DistantLightReferenceNode CreateTargetReference()
{
var node = new DistantLightReferenceNode(null!);
node.NodeType = ExpressionNodeType.TargetReference;
return node;
}
/// <summary>
/// Gets the color.
/// </summary>
/// <value>The color.</value>
public ColorNode Color
{
get { return ReferenceProperty<ColorNode>("Color"); }
}
/// <summary>
/// Gets the direction.
/// </summary>
/// <value>The direction.</value>
public Vector3Node Direction
{
get { return ReferenceProperty<Vector3Node>("Direction"); }
}
}