Make commands more publicly accessible

This commit is contained in:
hodasemi 2025-04-15 10:50:44 +02:00
parent abbbfb359d
commit b9296f8e57

View file

@ -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) => {