Skip to content

Commit

Permalink
Make SystemIdMarker reflect-able (#15556)
Browse files Browse the repository at this point in the history
Make `SystemIdMarker` reflect-able.
  • Loading branch information
LiamGallagher737 authored Oct 1, 2024
1 parent 22af24a commit d6cfafd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/bevy_ecs/src/system/system_registry.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#[cfg(feature = "bevy_reflect")]
use crate::reflect::ReflectComponent;
use crate::{
self as bevy_ecs,
bundle::Bundle,
Expand All @@ -7,6 +9,8 @@ use crate::{
world::{Command, World},
};
use bevy_ecs_macros::{Component, Resource};
#[cfg(feature = "bevy_reflect")]
use bevy_reflect::Reflect;
use core::marker::PhantomData;
use thiserror::Error;

Expand All @@ -19,6 +23,8 @@ struct RegisteredSystem<I, O> {

/// Marker [`Component`](bevy_ecs::component::Component) for identifying [`SystemId`] [`Entity`]s.
#[derive(Component)]
#[cfg_attr(feature = "bevy_reflect", derive(Reflect))]
#[cfg_attr(feature = "bevy_reflect", reflect(Component))]
pub struct SystemIdMarker;

/// A system that has been removed from the registry.
Expand Down

0 comments on commit d6cfafd

Please sign in to comment.