2024-04-04 11:33:54 +00:00
|
|
|
use bevy::prelude::*;
|
|
|
|
|
|
|
|
pub struct ChatPlugin;
|
|
|
|
impl Plugin for ChatPlugin {
|
|
|
|
fn build(&self, app: &mut App) {
|
|
|
|
app.add_event::<StartConversationEvent>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Component)]
|
|
|
|
#[derive(Clone)]
|
|
|
|
pub struct Talker {
|
|
|
|
pub pronoun: String,
|
|
|
|
pub conv_id: String,
|
|
|
|
}
|
|
|
|
impl Default for Talker { fn default() -> Self { Self {
|
|
|
|
pronoun: "they/them".to_string(),
|
2024-04-12 18:39:10 +00:00
|
|
|
conv_id: "undefined".to_string(),
|
2024-04-04 11:33:54 +00:00
|
|
|
}}}
|
|
|
|
|
2024-04-12 18:39:10 +00:00
|
|
|
#[derive(Event)]
|
|
|
|
pub struct StartConversationEvent {
|
|
|
|
pub talker: Talker,
|
2024-04-04 11:39:49 +00:00
|
|
|
}
|