logic_constructor 0.1.0

Move combat and ability logic out of code and into HOCON config — designers tweak damage, healing, and targeting in a text file; the engine parses it into typed actions and runs them against your entities.
Documentation
use crate::lc_entity_type::LcEntityType;
use crate::lc_single_action_config::LcSingleActionConfig;

/// A configuration required to run single action.
#[derive(Clone)]
pub struct LcActionConfig<T: LcEntityType> {
    pub data: Vec<LcSingleActionConfig<T>>,
}

// Single Action Cofing [] -> Action Config
impl<T: LcEntityType> From<Vec<LcSingleActionConfig<T>>> for LcActionConfig<T> {
    fn from(value: Vec<LcSingleActionConfig<T>>) -> Self {
        LcActionConfig { data: value }
    }
}

impl<T: LcEntityType> LcActionConfig<T> {
    pub fn dummy() -> LcActionConfig<T> {
        LcActionConfig { data: vec![] }
    }
}