more ID functions
This commit is contained in:
parent
d8925c9eb9
commit
9e14109f9f
15
src/game.rs
15
src/game.rs
|
@ -385,6 +385,21 @@ impl Game {
|
|||
self.items.iter().map(|item| item.id.clone()).collect()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn dialogue_ids(&self) -> Vec<String> {
|
||||
self.dialogues.iter().map(|dialogue| dialogue.id.clone()).collect()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn ending_ids(&self) -> Vec<String> {
|
||||
self.endings.iter().map(|ending| ending.id.clone()).collect()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn variable_ids(&self) -> Vec<String> {
|
||||
self.variables.iter().map(|variable| variable.id.clone()).collect()
|
||||
}
|
||||
|
||||
// todo dedupe?
|
||||
|
||||
pub fn new_palette_id(&self) -> String {
|
||||
|
|
Loading…
Reference in New Issue