bevy_talks 0.6.0

A Bevy plugin to write dialogues for your characters to say and do things. The Dialogue System for Bevy.
Documentation
//! The dialogue database: the authored content asset.

use bevy::prelude::*;
use serde::{Deserialize, Serialize};

use super::actor::Actor;
use super::conversation::Conversation;
use super::variable::Variable;

/// A unit of authored dialogue content.
#[derive(Asset, Debug, Clone, Default, PartialEq, Reflect, Serialize, Deserialize)]
pub struct DialogueDatabase {
    /// Database version string.
    pub version: String,
    /// All actors in the database.
    pub actors: Vec<Actor>,
    /// All variables in the database, with their initial values.
    #[serde(default)]
    pub variables: Vec<Variable>,
    /// All conversations in the database.
    pub conversations: Vec<Conversation>,
}