merged TypeUuidProvider trait into Reflect

This commit is contained in:
Dmitry Stepanov
2026-05-28 21:50:17 +03:00
parent 768df4600d
commit 7f33a13ff9
343 changed files with 1808 additions and 2262 deletions
+1 -3
View File
@@ -29,7 +29,6 @@ use fyrox::{
math::curve::{Curve, CurveKey, CurveKeyKind},
math::Vector3Ext,
reflect::prelude::*,
uuid_provider,
variable::InheritableVariable,
visitor::prelude::*,
},
@@ -44,6 +43,7 @@ use std::ops::Range;
/// Use it, if you need to create a sort of "spectator" camera. To use it, all you need to do is to assign it to your camera
/// node (or one if its parent nodes).
#[derive(Visit, Reflect, Debug, Clone)]
#[reflect(type_uuid = "8d9e2feb-8c61-482c-8ba4-b0b13b201113")]
pub struct FlyingCameraController {
/// Current yaw of the camera pivot (in radians).
#[visit(optional)]
@@ -200,8 +200,6 @@ impl Default for FlyingCameraController {
}
}
uuid_provider!(FlyingCameraController = "8d9e2feb-8c61-482c-8ba4-b0b13b201113");
impl ScriptTrait for FlyingCameraController {
fn on_os_event(&mut self, event: &Event<()>, context: &mut ScriptContext) -> GameResult {
match event {
+1 -1
View File
@@ -36,7 +36,7 @@ pub mod camera;
/// # };
/// #
/// # #[derive(Visit, Reflect, Debug)]
/// # #[reflect(non_cloneable)]
/// # #[reflect(non_cloneable, type_uuid = "38a3d4cf-65e1-4e86-a730-365804c51cff")]
/// # struct Game;
/// #
/// # impl Plugin for Game {