outfly/src/chat.rs

25 lines
498 B
Rust
Raw Normal View History

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(),
conv_id: "undefined".to_string(),
}}}
#[derive(Event)]
pub struct StartConversationEvent {
pub talker: Talker,
}