Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -2,26 +2,26 @@ extends MainLoop
|
|||
|
||||
|
||||
func _process(_delta: float) -> bool:
|
||||
var a := Node.new()
|
||||
var b := Node.new()
|
||||
var a := Node.new()
|
||||
var b := Node.new()
|
||||
|
||||
# a and b are different objects with different RIDs
|
||||
print(a.get_instance_id())
|
||||
print(b.get_instance_id())
|
||||
# a and b are different objects with different RIDs
|
||||
print(a.get_instance_id())
|
||||
print(b.get_instance_id())
|
||||
|
||||
assert(a != b)
|
||||
assert(a.get_instance_id() != b.get_instance_id())
|
||||
assert(a != b)
|
||||
assert(a.get_instance_id() != b.get_instance_id())
|
||||
|
||||
# Set b to refer to the same object as a
|
||||
b.free()
|
||||
b = a
|
||||
# Set b to refer to the same object as a
|
||||
b.free()
|
||||
b = a
|
||||
|
||||
# a and b are now the same object and have the same RID
|
||||
print(a.get_instance_id())
|
||||
print(b.get_instance_id())
|
||||
# a and b are now the same object and have the same RID
|
||||
print(a.get_instance_id())
|
||||
print(b.get_instance_id())
|
||||
|
||||
assert(a == b)
|
||||
assert(a.get_instance_id() == b.get_instance_id())
|
||||
assert(a == b)
|
||||
assert(a.get_instance_id() == b.get_instance_id())
|
||||
|
||||
a.free()
|
||||
return true # Exit
|
||||
a.free()
|
||||
return true # Exit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue