@@ -17,7 +17,7 @@ use crate::meta;
17
17
use crate :: meta:: error:: { ConvertError , FromGodotError , FromVariantError } ;
18
18
use crate :: meta:: signed_range:: SignedRange ;
19
19
use crate :: meta:: {
20
- element_godot_type_name, element_variant_type, ArrayElement , AsArg , ClassName , ElementType ,
20
+ element_godot_type_name, element_variant_type, ArrayElement , AsArg , ClassId , ElementType ,
21
21
ExtVariantType , FromGodot , GodotConvert , GodotFfiVariant , GodotType , PropertyHintInfo , RefArg ,
22
22
ToGodot ,
23
23
} ;
@@ -1038,7 +1038,7 @@ impl<T: ArrayElement> Array<T> {
1038
1038
if let ( ElementType :: ScriptClass ( _) , ElementType :: Class ( expected_class) ) =
1039
1039
( & self_ty, & target_ty)
1040
1040
{
1041
- if let Some ( actual_base_class) = self_ty. class_name ( ) {
1041
+ if let Some ( actual_base_class) = self_ty. class_id ( ) {
1042
1042
if actual_base_class == * expected_class {
1043
1043
return Ok ( self ) ;
1044
1044
}
@@ -1073,8 +1073,8 @@ impl<T: ArrayElement> Array<T> {
1073
1073
// A bit contrived because empty StringName is lazy-initialized but must also remain valid.
1074
1074
#[ allow( unused_assignments) ]
1075
1075
let mut empty_string_name = None ;
1076
- let class_name = if let Some ( class_name ) = elem_ty. class_name ( ) {
1077
- class_name . string_sys ( )
1076
+ let class_name = if let Some ( class_id ) = elem_ty. class_id ( ) {
1077
+ class_id . string_sys ( )
1078
1078
} else {
1079
1079
empty_string_name = Some ( StringName :: default ( ) ) ;
1080
1080
// as_ref() crucial here -- otherwise the StringName is dropped.
@@ -1297,7 +1297,7 @@ where
1297
1297
}
1298
1298
1299
1299
#[ doc( hidden) ]
1300
- fn as_node_class ( ) -> Option < ClassName > {
1300
+ fn as_node_class ( ) -> Option < ClassId > {
1301
1301
PropertyHintInfo :: object_as_node_class :: < T > ( )
1302
1302
}
1303
1303
}
@@ -1315,7 +1315,7 @@ where
1315
1315
}
1316
1316
1317
1317
#[ doc( hidden) ]
1318
- fn as_node_class ( ) -> Option < ClassName > {
1318
+ fn as_node_class ( ) -> Option < ClassId > {
1319
1319
PropertyHintInfo :: object_as_node_class :: < T > ( )
1320
1320
}
1321
1321
}
0 commit comments