示例#1
0
 private Dictionary(godot_dictionary nativeValueToOwn)
 {
     NativeValue = (godot_dictionary.movable)(nativeValueToOwn.IsAllocated ?
                                              nativeValueToOwn :
                                              NativeFuncs.godotsharp_dictionary_new());
     _weakReferenceToSelf = DisposablesTracker.RegisterDisposable(this);
 }
示例#2
0
 /// <summary>
 /// Constructs a new empty <see cref="Dictionary"/>.
 /// </summary>
 public Dictionary()
 {
     NativeValue          = (godot_dictionary.movable)NativeFuncs.godotsharp_dictionary_new();
     _weakReferenceToSelf = DisposablesTracker.RegisterDisposable(this);
 }