feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
|
|
@ -110,11 +110,13 @@ class GDScript : public Script {
|
|||
HashMap<StringName, MethodInfo> _signals;
|
||||
Dictionary rpc_config;
|
||||
|
||||
public:
|
||||
struct LambdaInfo {
|
||||
int capture_count;
|
||||
bool use_self;
|
||||
};
|
||||
|
||||
private:
|
||||
HashMap<GDScriptFunction *, LambdaInfo> lambda_info;
|
||||
|
||||
public:
|
||||
|
|
@ -157,16 +159,18 @@ private:
|
|||
bool placeholder_fallback_enabled = false;
|
||||
void _update_exports_values(HashMap<StringName, Variant> &values, List<PropertyInfo> &propnames);
|
||||
|
||||
StringName doc_class_name;
|
||||
DocData::ClassDoc doc;
|
||||
Vector<DocData::ClassDoc> docs;
|
||||
void _add_doc(const DocData::ClassDoc &p_doc);
|
||||
void _clear_doc();
|
||||
void _add_doc(const DocData::ClassDoc &p_inner_class);
|
||||
#endif
|
||||
|
||||
GDScriptFunction *implicit_initializer = nullptr;
|
||||
GDScriptFunction *initializer = nullptr; //direct pointer to new , faster to locate
|
||||
GDScriptFunction *implicit_ready = nullptr;
|
||||
GDScriptFunction *static_initializer = nullptr;
|
||||
GDScriptFunction *initializer = nullptr; // Direct pointer to `new()`/`_init()` member function, faster to locate.
|
||||
|
||||
GDScriptFunction *implicit_initializer = nullptr; // `@implicit_new()` special function.
|
||||
GDScriptFunction *implicit_ready = nullptr; // `@implicit_ready()` special function.
|
||||
GDScriptFunction *static_initializer = nullptr; // `@static_initializer()` special function.
|
||||
|
||||
Error _static_init();
|
||||
void _static_default_init(); // Initialize static variables with default values based on their types.
|
||||
|
|
@ -257,9 +261,15 @@ public:
|
|||
CRASH_COND(!member_indices.has(p_member));
|
||||
return member_indices[p_member].data_type;
|
||||
}
|
||||
const HashMap<StringName, GDScriptFunction *> &get_member_functions() const { return member_functions; }
|
||||
const Ref<GDScriptNativeClass> &get_native() const { return native; }
|
||||
|
||||
_FORCE_INLINE_ const HashMap<StringName, GDScriptFunction *> &get_member_functions() const { return member_functions; }
|
||||
_FORCE_INLINE_ const HashMap<GDScriptFunction *, LambdaInfo> &get_lambda_info() const { return lambda_info; }
|
||||
|
||||
_FORCE_INLINE_ const GDScriptFunction *get_implicit_initializer() const { return implicit_initializer; }
|
||||
_FORCE_INLINE_ const GDScriptFunction *get_implicit_ready() const { return implicit_ready; }
|
||||
_FORCE_INLINE_ const GDScriptFunction *get_static_initializer() const { return static_initializer; }
|
||||
|
||||
RBSet<GDScript *> get_dependencies();
|
||||
HashMap<GDScript *, RBSet<GDScript *>> get_all_dependencies();
|
||||
RBSet<GDScript *> get_must_clear_dependencies();
|
||||
|
|
@ -292,9 +302,8 @@ public:
|
|||
virtual void update_exports() override;
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
virtual Vector<DocData::ClassDoc> get_documentation() const override {
|
||||
return docs;
|
||||
}
|
||||
virtual StringName get_doc_class_name() const override { return doc_class_name; }
|
||||
virtual Vector<DocData::ClassDoc> get_documentation() const override { return docs; }
|
||||
virtual String get_class_icon_path() const override;
|
||||
#endif // TOOLS_ENABLED
|
||||
|
||||
|
|
@ -334,7 +343,7 @@ public:
|
|||
virtual void get_constants(HashMap<StringName, Variant> *p_constants) override;
|
||||
virtual void get_members(HashSet<StringName> *p_members) override;
|
||||
|
||||
virtual const Variant get_rpc_config() const override;
|
||||
virtual Variant get_rpc_config() const override;
|
||||
|
||||
void unload_static() const;
|
||||
|
||||
|
|
@ -417,6 +426,7 @@ class GDScriptLanguage : public ScriptLanguage {
|
|||
Vector<Variant> global_array;
|
||||
HashMap<StringName, int> globals;
|
||||
HashMap<StringName, Variant> named_globals;
|
||||
Vector<int> global_array_empty_indexes;
|
||||
|
||||
struct CallLevel {
|
||||
Variant *stack = nullptr;
|
||||
|
|
@ -448,6 +458,7 @@ class GDScriptLanguage : public ScriptLanguage {
|
|||
int _debug_max_call_stack = 0;
|
||||
|
||||
void _add_global(const StringName &p_name, const Variant &p_value);
|
||||
void _remove_global(const StringName &p_name);
|
||||
|
||||
friend class GDScriptInstance;
|
||||
|
||||
|
|
@ -459,15 +470,20 @@ class GDScriptLanguage : public ScriptLanguage {
|
|||
friend class GDScriptFunction;
|
||||
|
||||
SelfList<GDScriptFunction>::List function_list;
|
||||
#ifdef DEBUG_ENABLED
|
||||
bool profiling;
|
||||
bool profile_native_calls;
|
||||
uint64_t script_frame_time;
|
||||
#endif
|
||||
|
||||
HashMap<String, ObjectID> orphan_subclasses;
|
||||
|
||||
public:
|
||||
int calls;
|
||||
#ifdef TOOLS_ENABLED
|
||||
void _extension_loaded(const Ref<GDExtension> &p_extension);
|
||||
void _extension_unloading(const Ref<GDExtension> &p_extension);
|
||||
#endif
|
||||
|
||||
public:
|
||||
bool debug_break(const String &p_error, bool p_allow_continue = true);
|
||||
bool debug_break_parse(const String &p_file, int p_line, const String &p_error);
|
||||
|
||||
|
|
@ -621,7 +637,7 @@ public:
|
|||
/* GLOBAL CLASSES */
|
||||
|
||||
virtual bool handles_global_class_type(const String &p_type) const override;
|
||||
virtual String get_global_class_name(const String &p_path, String *r_base_type = nullptr, String *r_icon_path = nullptr) const override;
|
||||
virtual String get_global_class_name(const String &p_path, String *r_base_type = nullptr, String *r_icon_path = nullptr, bool *r_is_abstract = nullptr, bool *r_is_tool = nullptr) const override;
|
||||
|
||||
void add_orphan_subclass(const String &p_qualified_name, const ObjectID &p_subclass);
|
||||
Ref<GDScript> get_orphan_subclass(const String &p_qualified_name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue