@@ -1003,7 +1003,7 @@ pub fn get_derived_virtual_method_presence(class_name: &TyName, godot_method_nam
1003
1003
/// - register_server_singletons() ...another weird one.
1004
1004
/// - Autoloads, etc.
1005
1005
#[ rustfmt:: skip]
1006
- pub fn classify_codegen_level ( class_name : & str , godot_classification : & str ) -> Option < ClassCodegenLevel > {
1006
+ pub fn classify_codegen_level ( class_name : & str ) -> Option < ClassCodegenLevel > {
1007
1007
let level = match class_name {
1008
1008
// See register_core_types() in https://github.com/godotengine/godot/blob/master/core/register_core_types.cpp,
1009
1009
// which is called before Core level is initialized.
@@ -1017,8 +1017,8 @@ pub fn classify_codegen_level(class_name: &str, godot_classification: &str) -> O
1017
1017
| "ProjectSettings" | "Engine" | "OS" | "Time"
1018
1018
=> ClassCodegenLevel :: Core ,
1019
1019
1020
- // Anything that comes from another extension could be available in Core but since there would be load order dependencies,
1021
- // instead don't allow calls until Server level .
1020
+ // Symbols from another extension could be available in Core, but since GDExtension can currently not guarantee
1021
+ // the order of different extensions being loaded, we prevent implicit dependencies and require Server .
1022
1022
| "OpenXRExtensionWrapperExtension"
1023
1023
=> ClassCodegenLevel :: Servers ,
1024
1024
@@ -1050,18 +1050,8 @@ pub fn classify_codegen_level(class_name: &str, godot_classification: &str) -> O
1050
1050
"ResourceImporterOggVorbis" | "ResourceImporterMP3" if cfg ! ( before_api = "4.3" )
1051
1051
=> ClassCodegenLevel :: Editor ,
1052
1052
1053
- _ => {
1054
- // NOTE: Right now, Godot reports everything that's not "editor" as "core" in `extension_api.json`.
1055
- // If it wasn't picked up by the whitelist, and Godot reports it as "core" we will treat it as a scene class.
1056
- match godot_classification {
1057
- "editor" => ClassCodegenLevel :: Editor ,
1058
- "core" => ClassCodegenLevel :: Scene ,
1059
- _ => {
1060
- // we don't know this classification
1061
- return None ;
1062
- }
1063
- }
1064
- }
1053
+ // No special-case override for this class.
1054
+ _ => return None ,
1065
1055
} ;
1066
1056
Some ( level)
1067
1057
}
0 commit comments