-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathEditorNull.cs
More file actions
52 lines (41 loc) · 1.24 KB
/
Copy pathEditorNull.cs
File metadata and controls
52 lines (41 loc) · 1.24 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
using RPGCore.DataEditor.Manifest;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
namespace RPGCore.DataEditor;
/// <summary>
/// An editor value representing null.
/// </summary>
public class EditorNull : IEditorValue
{
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private readonly List<string> comments;
/// <inheritdoc/>
public IList<string> Comments => comments;
/// <inheritdoc/>
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
public EditorSession Session { get; }
/// <summary>
/// A collection of <see cref="IEditorFeature"/>s associated with this <see cref="EditorNull"/>.
/// </summary>
public FeatureCollection<EditorNull> Features { get; }
/// <inheritdoc/>
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
FeatureCollection IEditorToken.Features => Features;
/// <inheritdoc/>
public TypeName? Type => null;
/// <inheritdoc/>
public event PropertyChangedEventHandler PropertyChanged;
internal EditorNull(EditorSession session)
{
Session = session;
comments = new List<string>();
Features = new FeatureCollection<EditorNull>(this);
PropertyChanged = delegate { };
}
/// <inheritdoc/>
public IEditorValue Duplicate()
{
return new EditorNull(Session);
}
}