From b9296f8e5761a531bc49eb4a384064a4a1cd919f Mon Sep 17 00:00:00 2001 From: hodasemi Date: Tue, 15 Apr 2025 10:50:44 +0200 Subject: [PATCH] Make commands more publicly accessible --- ecs/src/commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecs/src/commands.rs b/ecs/src/commands.rs index 0549307..e808a91 100644 --- a/ecs/src/commands.rs +++ b/ecs/src/commands.rs @@ -22,7 +22,7 @@ pub struct Commands { } impl Commands { - pub(crate) fn new(now: Duration) -> Self { + pub fn new(now: Duration) -> Self { Self { commands: Vec::new(), now, @@ -72,7 +72,7 @@ impl Commands { )); } - pub(crate) fn apply_deferred(self, world: &mut World) -> Result<()> { + pub fn apply_deferred(self, world: &mut World) -> Result<()> { for command in self.commands { match command { CommandTypes::InsertEntity(entity_object) => {