use iocaine_powder::sex_dungeon::NPC;
use std::sync::{Arc, RwLock};
use crate::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))
}
}