Improve some method bindings to use specific Object subtypes

This was made possible by changes to `VariantCaster` which now make
it possible to pass any `Object`-derived type as pointer.
This commit is contained in:
Rémi Verschelde
2022-01-28 15:06:54 +01:00
parent 38c6611b91
commit 7072b359b4
15 changed files with 54 additions and 83 deletions

View File

@ -14,9 +14,9 @@
<methods>
<method name="add_exception">
<return type="void" />
<argument index="0" name="node" type="Object" />
<argument index="0" name="node" type="CollisionObject2D" />
<description>
Adds a collision exception so the shape does not report collisions with the specified node.
Adds a collision exception so the shape does not report collisions with the specified [CollisionObject2D] node.
</description>
</method>
<method name="add_exception_rid">
@ -101,9 +101,9 @@
</method>
<method name="remove_exception">
<return type="void" />
<argument index="0" name="node" type="Object" />
<argument index="0" name="node" type="CollisionObject2D" />
<description>
Removes a collision exception so the shape does report collisions with the specified node.
Removes a collision exception so the shape does report collisions with the specified [CollisionObject2D] node.
</description>
</method>
<method name="remove_exception_rid">