@@ -12,6 +12,7 @@ struct RustTest {
1212
1313impl godot:: NativeClass for RustTest {
1414 type Base = godot:: MeshInstance ;
15+ type UserData = godot:: user_data:: MutexData < RustTest > ;
1516
1617 fn class_name ( ) -> & ' static str {
1718 "RustTest"
@@ -30,7 +31,7 @@ impl godot::NativeClass for RustTest {
3031 step : 0.01 ,
3132 slider : true ,
3233 } ,
33- getter : |this : & mut RustTest | this. rotate_speed ,
34+ getter : |this : & RustTest | this. rotate_speed ,
3435 setter : |this : & mut RustTest , v| this. rotate_speed = v,
3536 usage : PropertyUsage :: DEFAULT ,
3637 } ) ;
@@ -41,7 +42,7 @@ impl godot::NativeClass for RustTest {
4142 hint : PropertyHint :: Enum {
4243 values : & [ "Hello" , "World" , "Testing" ] ,
4344 } ,
44- getter : |_: & mut RustTest | GodotString :: from_str ( "Hello" ) ,
45+ getter : |_: & RustTest | GodotString :: from_str ( "Hello" ) ,
4546 setter : ( ) ,
4647 usage : PropertyUsage :: DEFAULT ,
4748 } ) ;
@@ -52,7 +53,7 @@ impl godot::NativeClass for RustTest {
5253 hint : PropertyHint :: Flags {
5354 values : & [ "A" , "B" , "C" , "D" ] ,
5455 } ,
55- getter : |_: & mut RustTest | 0 ,
56+ getter : |_: & RustTest | 0 ,
5657 setter : ( ) ,
5758 usage : PropertyUsage :: DEFAULT ,
5859 } ) ;
0 commit comments