A game about forced loneliness, made by TACStudios
1using System.Collections;
2
3namespace Unity.VisualScripting
4{
5 /// <summary>
6 /// Creates an empty dictionary.
7 /// </summary>
8 [UnitCategory("Collections/Dictionaries")]
9 [UnitOrder(-1)]
10 [TypeIcon(typeof(IDictionary))]
11 [RenamedFrom("Bolt.CreateDitionary")]
12 public sealed class CreateDictionary : Unit
13 {
14 /// <summary>
15 /// The new empty dictionary.
16 /// </summary>
17 [DoNotSerialize]
18 [PortLabelHidden]
19 public ValueOutput dictionary { get; private set; }
20
21 protected override void Definition()
22 {
23 dictionary = ValueOutput(nameof(dictionary), Create);
24 }
25
26 public IDictionary Create(Flow flow)
27 {
28 return new AotDictionary();
29 }
30 }
31}