Paradox Game Engine
v1.0.0 beta06
Main Page
Related Pages
Packages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Events
Macros
Pages
NodeConstructedArgs.cs
Go to the documentation of this file.
1
// Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2
// This file is distributed under GPL v3. See LICENSE.md for details.
3
using
System
;
4
5
using
SiliconStudio.Core.Reflection;
6
using
SiliconStudio.Quantum.Contents;
7
8
namespace
SiliconStudio.Quantum
9
{
10
/// <summary>
11
/// Arguments of the <see cref="INodeBuilder.NodeConstructed"/> event.
12
/// </summary>
13
public
class
NodeConstructedArgs
:
EventArgs
14
{
15
/// <summary>
16
/// Initializes a new instance of the <see cref="NodeConstructedArgs"/> class.
17
/// </summary>
18
/// <param name="content">The content of the node that has been constructed.</param>
19
public
NodeConstructedArgs
(
IContent
content)
20
{
21
TypeDescriptor = content.Descriptor;
22
MemberDescriptor = content is
MemberContent
? ((
MemberContent
)content).Member : null;
23
}
24
25
/// <summary>
26
/// Gets the type descriptor of the node that has been constructed.
27
/// </summary>
28
public
ITypeDescriptor
TypeDescriptor {
get
;
private
set; }
29
30
/// <summary>
31
/// Gets the member of the node that has been constructed, if the node corresponds to a member of another object.
32
/// </summary>
33
public
IMemberDescriptor
MemberDescriptor {
get
;
private
set; }
34
}
35
}
SiliconStudio.Core.Reflection.IMemberDescriptor
Describe a member of an object.
Definition:
IMemberDescriptor.cs:10
SiliconStudio.Quantum.Contents.IContent
Content of a IModelNode.
Definition:
IContent.cs:13
SiliconStudio.Shaders.Parser.System
A system file.
SiliconStudio.Quantum.Contents.MemberContent
An implementation of IContent that gives access to a member of an object.
Definition:
MemberContent.cs:15
SiliconStudio.Quantum.NodeConstructedArgs.NodeConstructedArgs
NodeConstructedArgs(IContent content)
Initializes a new instance of the NodeConstructedArgs class.
Definition:
NodeConstructedArgs.cs:19
SiliconStudio.Quantum.NodeConstructedArgs
Arguments of the INodeBuilder.NodeConstructed event.
Definition:
NodeConstructedArgs.cs:13
SiliconStudio.Core.Reflection.ITypeDescriptor
Provides access members of a type.
Definition:
ITypeDescriptor.cs:12
EventArgs
sources
common
presentation
SiliconStudio.Quantum
NodeConstructedArgs.cs
Generated on Sat Dec 20 2014 21:51:20 for Paradox Game Engine by
1.8.7