iocaine 3.4.0

The deadliest poison known to AI
// SPDX-FileCopyrightText: Gergely Nagy
// SPDX-FileContributor: Gergely Nagy
//
// SPDX-License-Identifier: MIT

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))
    }
}