소스 검색

Replace mentions of Reference with RefCounted

Quinn 8 달 전
부모
커밋
4ba3e374cd
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      contributing/development/core_and_modules/object_class.rst
  2. 1 1
      tutorials/scripting/gdscript/gdscript_basics.rst

+ 1 - 1
contributing/development/core_and_modules/object_class.rst

@@ -274,7 +274,7 @@ References:
 Resources
 Resources
 ----------
 ----------
 
 
-:ref:`Resource <class_resource>` inherits from Reference, so all resources
+:ref:`Resource <class_resource>` inherits from RefCounted, so all resources
 are reference counted. Resources can optionally contain a path, which
 are reference counted. Resources can optionally contain a path, which
 reference a file on disk. This can be set with ``resource.set_path(path)``,
 reference a file on disk. This can be set with ``resource.set_path(path)``,
 though this is normally done by the resource loader. No two different
 though this is normally done by the resource loader. No two different

+ 1 - 1
tutorials/scripting/gdscript/gdscript_basics.rst

@@ -1035,7 +1035,7 @@ it will raise an error.
 Valid types are:
 Valid types are:
 
 
 - Built-in types (Array, Vector2, int, String, etc.).
 - Built-in types (Array, Vector2, int, String, etc.).
-- Engine classes (Node, Resource, Reference, etc.).
+- Engine classes (Node, Resource, RefCounted, etc.).
 - Constant names if they contain a script resource (``MyScript`` if you declared ``const MyScript = preload("res://my_script.gd")``).
 - Constant names if they contain a script resource (``MyScript`` if you declared ``const MyScript = preload("res://my_script.gd")``).
 - Other classes in the same script, respecting scope (``InnerClass.NestedClass`` if you declared ``class NestedClass`` inside the ``class InnerClass`` in the same scope).
 - Other classes in the same script, respecting scope (``InnerClass.NestedClass`` if you declared ``class NestedClass`` inside the ``class InnerClass`` in the same scope).
 - Script classes declared with the ``class_name`` keyword.
 - Script classes declared with the ``class_name`` keyword.