Skip to content

Commit

Permalink
feat: make CurrentNode pub so users can manually query for it
Browse files Browse the repository at this point in the history
  • Loading branch information
giusdp committed Jan 3, 2024
1 parent 942bd7f commit bd5d67a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/talk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ impl Talk {
TalkBuilder::default()
}
}

/// Marker component for the current node in a Talk.
#[derive(Component)]
#[component(storage = "SparseSet")]
pub(crate) struct CurrentNode;
pub struct CurrentNode;

/// An enumeration of the different kinds of actions that can be performed in a Talk.
#[derive(Component, Debug, Default, Clone, Hash, Eq, PartialEq, serde::Deserialize)]
Expand Down

0 comments on commit bd5d67a

Please sign in to comment.