forked from Misaki/GhostEngine
Update scene graph
This commit is contained in:
18
Ghost.Editor.Core/SceneGraph/SceneGraphNode.cs
Normal file
18
Ghost.Editor.Core/SceneGraph/SceneGraphNode.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace Ghost.Editor.Core.SceneGraph;
|
||||
|
||||
public abstract partial class SceneGraphNode : ObservableObject
|
||||
{
|
||||
[ObservableProperty]
|
||||
public partial string Name
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public ObservableCollection<SceneGraphNode> Children
|
||||
{
|
||||
get;
|
||||
} = new();
|
||||
}
|
||||
Reference in New Issue
Block a user