mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
Refer to NativeScript 1.1 as 'new' rather than 'upcoming' in the GDNative cpp example
(cherry picked from commit d85e844a94)
This commit is contained in:
@@ -335,7 +335,7 @@ of how much time has passed and calculates a new position for our sprite using a
|
||||
simple sine and cosine function. What stands out is calling
|
||||
``owner->set_position`` to call one of the build in methods of our Sprite. This
|
||||
is because our class is a container class; ``owner`` points to the actual Sprite
|
||||
node our script relates to. In the upcoming NativeScript 1.1, ``set_position``
|
||||
node our script relates to. Since NativeScript 1.1, ``set_position``
|
||||
can be called directly on our class.
|
||||
|
||||
There is one more C++ file we need; we'll name it ``gdlibrary.cpp``. Our
|
||||
|
||||
Reference in New Issue
Block a user