소스 검색

Fix outdated reference to `register_class` function in GDExtension C++ example

This was replaced by the `GDREGISTER_CLASS` macro in Godot 4.0.
Hugo Locurcio 10 달 전
부모
커밋
89508cdc98
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tutorials/scripting/gdextension/gdextension_cpp_example.rst

+ 1 - 1
tutorials/scripting/gdextension/gdextension_cpp_example.rst

@@ -295,7 +295,7 @@ The ``initialize_example_module`` and ``uninitialize_example_module`` functions
 called respectively when Godot loads our plugin and when it unloads it. All
 we're doing here is parse through the functions in our bindings module to
 initialize them, but you might have to set up more things depending on your
-needs. We call the function ``register_class`` for each of our classes in our library.
+needs. We call the ``GDREGISTER_CLASS`` macro for each of our classes in our library.
 
 The important function is the third function called ``example_library_init``.
 We first call a function in our bindings library that creates an initialization object.