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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Links: directed edges between dialogue entries.

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

use super::ids::{ConversationId, EntryId};

/// A directed edge to a destination entry (which may be in another conversation).
#[derive(Debug, Clone, Copy, Default, PartialEq, Reflect, Serialize, Deserialize)]
pub struct Link {
    /// The conversation the destination entry lives in.
    pub dest_conversation: ConversationId,
    /// The destination entry.
    pub dest_entry: EntryId,
}