forked from ZeraGmbH/Blockly.Net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGroupInfo.cs
34 lines (29 loc) · 863 Bytes
/
GroupInfo.cs
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
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;
namespace BlocklyNet.Scripting.Engine;
/// <summary>
/// Information on an execution group - and all of its children.
/// </summary>
public class GroupInfo
{
/// <summary>
/// The blockly idententifier of the group block.
/// </summary>
[NotNull, Required]
public string Id { get; set; } = null!;
/// <summary>
/// The user defined name of the group.
/// </summary>
[NotNull, Required]
public string? Name { get; set; }
/// <summary>
/// All nested groups.
/// </summary>
[NotNull, Required]
public List<GroupInfo> Children { get; set; } = [];
/// <summary>
/// All scripts (potentially) called by this block.
/// </summary>
[NotNull, Required]
public List<string> Scripts { get; set; } = [];
}