mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
merged TypeUuidProvider trait into Reflect
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user