From 4d65757b3e8893f32f6203ddebaf9255f8750591 Mon Sep 17 00:00:00 2001 From: Blazepaws <157802762+blazepaws@users.noreply.github.com> Date: Sun, 15 Sep 2024 19:49:00 +0200 Subject: [PATCH] Reflect derived traits on all components and resources: bevy_window (#15233) Solves https://github.com/bevyengine/bevy/issues/15187 for bevy_window. This is the last one. --- crates/bevy_window/src/monitor.rs | 4 ++-- crates/bevy_window/src/window.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/bevy_window/src/monitor.rs b/crates/bevy_window/src/monitor.rs index 64fafa89c1..756574596b 100644 --- a/crates/bevy_window/src/monitor.rs +++ b/crates/bevy_window/src/monitor.rs @@ -22,7 +22,7 @@ use bevy_reflect::{ReflectDeserialize, ReflectSerialize}; derive(serde::Serialize, serde::Deserialize), reflect(Serialize, Deserialize) )] -#[reflect(Component)] +#[reflect(Component, Debug)] pub struct Monitor { /// The name of the monitor pub name: Option, @@ -42,7 +42,7 @@ pub struct Monitor { /// A marker component for the primary monitor #[derive(Component, Debug, Clone, Reflect)] -#[reflect(Component)] +#[reflect(Component, Debug)] pub struct PrimaryMonitor; impl Monitor { diff --git a/crates/bevy_window/src/window.rs b/crates/bevy_window/src/window.rs index ad001fea94..6e80ed7474 100644 --- a/crates/bevy_window/src/window.rs +++ b/crates/bevy_window/src/window.rs @@ -20,7 +20,7 @@ use bevy_utils::tracing::warn; /// with this component if [`primary_window`](crate::WindowPlugin::primary_window) /// is `Some`. #[derive(Default, Debug, Component, PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Reflect)] -#[reflect(Component)] +#[reflect(Component, Debug, Default, PartialEq)] pub struct PrimaryWindow; /// Reference to a [`Window`], whether it be a direct link to a specific entity or @@ -124,7 +124,7 @@ impl NormalizedWindowRef { derive(serde::Serialize, serde::Deserialize), reflect(Serialize, Deserialize) )] -#[reflect(Component, Default)] +#[reflect(Component, Default, Debug)] pub struct Window { /// The cursor options of this window. Cursor icons are set with the `Cursor` component on the /// window entity.