use std::sync::{Arc, RwLock};
use crate::{sex_dungeon::NPC, tenx_programmer::TenXProgrammer};
#[derive(Clone)]
pub struct Decay {
pub metrics: TenXProgrammer,
pub request_handler: Arc<NPC>,
}
pub type StateOfDecay = Arc<RwLock<Decay>>;
impl From<Decay> for Arc<RwLock<Decay>> {
fn from(decay: Decay) -> Self {
Self::new(RwLock::new(decay))
}
}