A game about forced loneliness, made by TACStudios
1using System.Collections.Generic;
2
3namespace Unity.VisualScripting
4{
5 public class FlexibleDictionary<TKey, TValue> : Dictionary<TKey, TValue>
6 {
7 public new TValue this[TKey key]
8 {
9 get
10 {
11 return base[key];
12 }
13 set
14 {
15 if (ContainsKey(key))
16 {
17 base[key] = value;
18 }
19 else
20 {
21 Add(key, value);
22 }
23 }
24 }
25 }
26}