diff --git a/common/src/comp/agent.rs b/common/src/comp/agent.rs index be33b4bb49..a98c38e2f8 100644 --- a/common/src/comp/agent.rs +++ b/common/src/comp/agent.rs @@ -1,5 +1,5 @@ -use crate::path::Chaser; -use specs::{Component, Entity as EcsEntity}; +use crate::{path::Chaser, state::Time}; +use specs::{Component, Entity as EcsEntity, FlaggedStorage, HashMapStorage}; use specs_idvs::IDVStorage; use vek::*; @@ -85,3 +85,17 @@ impl Activity { impl Default for Activity { fn default() -> Self { Activity::Idle(Vec2::zero()) } } + +/// Default duration in seconds of chat bubbles +pub const SPEECH_BUBBLE_DURATION: f64 = 5.0; + +/// Adds a speech bubble to the entity +#[derive(Clone, Default, Debug, Serialize, Deserialize)] +pub struct SpeechBubble { + pub message: String, + pub timeout: Option