mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
Make impl block for RemovedSystem generic (#10651)
# Objective Make the impl block for RemovedSystem generic so that the methods can be called for systems that have inputs or outputs. ## Solution Simply adding generics to the impl block.
This commit is contained in:
parent
865041de74
commit
a22020bf5c
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ pub struct RemovedSystem<I = (), O = ()> {
|
|||
system: BoxedSystem<I, O>,
|
||||
}
|
||||
|
||||
impl RemovedSystem {
|
||||
impl<I, O> RemovedSystem<I, O> {
|
||||
/// Is the system initialized?
|
||||
/// A system is initialized the first time it's ran.
|
||||
pub fn initialized(&self) -> bool {
|
||||
|
@ -29,7 +29,7 @@ impl RemovedSystem {
|
|||
}
|
||||
|
||||
/// The system removed from the storage.
|
||||
pub fn system(self) -> BoxedSystem {
|
||||
pub fn system(self) -> BoxedSystem<I, O> {
|
||||
self.system
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue