Removes a couple more todo
This commit is contained in:
parent
6d080230ee
commit
b493381390
|
|
@ -152,7 +152,9 @@ pub(super) type FilterType<T> = Box<Rc<FilterFunctionType<T>>>;
|
|||
|
||||
#[derive(Clone)]
|
||||
/// A generic Filtering function
|
||||
// TODO: Deref
|
||||
// DONE: Not implementing deref and allowing for a super pub allows
|
||||
// implementation to be a little more flexible, however this might
|
||||
// also be an oversight
|
||||
pub(crate) struct FilterFunction<T>(pub(super) FilterType<T>);
|
||||
|
||||
/// This element can be converted to tex
|
||||
|
|
|
|||
|
|
@ -127,65 +127,65 @@ mod test {
|
|||
unimplemented!()
|
||||
}
|
||||
}
|
||||
// TODO[!]: Implement all the soundness below
|
||||
// // TODO[!]: Implement all the soundness below
|
||||
|
||||
/// The final enum of all categories to be given to the character sheet
|
||||
///
|
||||
/// This enum is only created at the end of the refining process with all the given information
|
||||
/// Note that some weapons might not be created or might be too niche to be created by the recipes
|
||||
/// however the full cross implementation should cover all weapons or reconsider the validity of said implementation
|
||||
#[allow(dead_code, clippy::missing_docs_in_private_items)]
|
||||
pub enum FinalWeaponCategory {
|
||||
Hast(HastSpecialties),
|
||||
Slash(SlashSpecialties),
|
||||
Blunt(BluntSpecialties),
|
||||
Collosal(ColossalSpeciaties),
|
||||
Ranged(RangedSpecialties),
|
||||
Throw(ThrowSpecialties),
|
||||
}
|
||||
// /// The final enum of all categories to be given to the character sheet
|
||||
// ///
|
||||
// /// This enum is only created at the end of the refining process with all the given information
|
||||
// /// Note that some weapons might not be created or might be too niche to be created by the recipes
|
||||
// /// however the full cross implementation should cover all weapons or reconsider the validity of said implementation
|
||||
// #[allow(dead_code, clippy::missing_docs_in_private_items)]
|
||||
// pub enum FinalWeaponCategory {
|
||||
// Hast(HastSpecialties),
|
||||
// Slash(SlashSpecialties),
|
||||
// Blunt(BluntSpecialties),
|
||||
// Collosal(ColossalSpeciaties),
|
||||
// Ranged(RangedSpecialties),
|
||||
// Throw(ThrowSpecialties),
|
||||
// }
|
||||
|
||||
#[allow(dead_code, clippy::missing_docs_in_private_items)]
|
||||
pub enum HastSpecialties {
|
||||
Lance,
|
||||
Staff,
|
||||
}
|
||||
// #[allow(dead_code, clippy::missing_docs_in_private_items)]
|
||||
// pub enum HastSpecialties {
|
||||
// Lance,
|
||||
// Staff,
|
||||
// }
|
||||
|
||||
#[allow(dead_code, clippy::missing_docs_in_private_items)]
|
||||
pub enum SlashSpecialties {
|
||||
Sword,
|
||||
#[deprecated]
|
||||
Dagger,
|
||||
Axe,
|
||||
Claws,
|
||||
}
|
||||
// #[allow(dead_code, clippy::missing_docs_in_private_items)]
|
||||
// pub enum SlashSpecialties {
|
||||
// Sword,
|
||||
// #[deprecated]
|
||||
// Dagger,
|
||||
// Axe,
|
||||
// Claws,
|
||||
// }
|
||||
|
||||
#[allow(dead_code, clippy::missing_docs_in_private_items)]
|
||||
pub enum BluntSpecialties {
|
||||
Hammer,
|
||||
Improvised,
|
||||
}
|
||||
// #[allow(dead_code, clippy::missing_docs_in_private_items)]
|
||||
// pub enum BluntSpecialties {
|
||||
// Hammer,
|
||||
// Improvised,
|
||||
// }
|
||||
|
||||
#[allow(dead_code, clippy::missing_docs_in_private_items)]
|
||||
pub enum ColossalSpeciaties {
|
||||
Rhodarak,
|
||||
Haroth,
|
||||
Kahml,
|
||||
Landscapper,
|
||||
}
|
||||
// #[allow(dead_code, clippy::missing_docs_in_private_items)]
|
||||
// pub enum ColossalSpeciaties {
|
||||
// Rhodarak,
|
||||
// Haroth,
|
||||
// Kahml,
|
||||
// Landscapper,
|
||||
// }
|
||||
|
||||
#[allow(dead_code, clippy::missing_docs_in_private_items)]
|
||||
pub enum RangedSpecialties {
|
||||
Bow,
|
||||
Crossbow,
|
||||
Cannon,
|
||||
}
|
||||
// #[allow(dead_code, clippy::missing_docs_in_private_items)]
|
||||
// pub enum RangedSpecialties {
|
||||
// Bow,
|
||||
// Crossbow,
|
||||
// Cannon,
|
||||
// }
|
||||
|
||||
#[allow(dead_code, clippy::missing_docs_in_private_items)]
|
||||
pub enum ThrowSpecialties {
|
||||
Light,
|
||||
Lances,
|
||||
Improvised,
|
||||
}
|
||||
// #[allow(dead_code, clippy::missing_docs_in_private_items)]
|
||||
// pub enum ThrowSpecialties {
|
||||
// Light,
|
||||
// Lances,
|
||||
// Improvised,
|
||||
// }
|
||||
|
||||
// TODO[4]: Have a final weapon category tied to the speciality, if any appliable to the character
|
||||
// : Since this is not needed for balencing, this will be left alone for a while
|
||||
|
|
@ -214,7 +214,6 @@ pub enum EquipementSerializedCategory {
|
|||
/// Shield generic category, will be converted into EquipementSection
|
||||
Shields,
|
||||
/// A custom None category, used to forbid a part to be cast upon or from
|
||||
// TODO: Check the soundness of this implementation
|
||||
None,
|
||||
/// Light size, will be converted to a WeaponBaseSize
|
||||
Light,
|
||||
|
|
@ -240,7 +239,6 @@ pub enum WeaponBaseShape {
|
|||
Armors,
|
||||
Shields,
|
||||
Exotic,
|
||||
// TODO[!]: Check the soundness of this, as it is not used currently
|
||||
None,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ impl From<EqShape> for Equipement {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<EqMaterial> for Equipement {
|
||||
fn from(val: EqMaterial) -> Self {
|
||||
Self {
|
||||
|
|
|
|||
|
|
@ -164,7 +164,6 @@ fn get_sub_categories_from_serde(category: &str) -> Result<SubCategories, FatalE
|
|||
EquipementSerializedCategory::Exotic => (Some(WeaponBaseShape::Exotic), None),
|
||||
EquipementSerializedCategory::Armors => (Some(WeaponBaseShape::Armors), None),
|
||||
EquipementSerializedCategory::Shields => (Some(WeaponBaseShape::Shields), None),
|
||||
// EquipementSerializedCategory::Weapons => todo!(),
|
||||
EquipementSerializedCategory::None => (Some(WeaponBaseShape::None), None),
|
||||
EquipementSerializedCategory::Light => (None, Some(WeaponBaseSize::Light)),
|
||||
EquipementSerializedCategory::Medium => (None, Some(WeaponBaseSize::Medium)),
|
||||
|
|
|
|||
|
|
@ -25,23 +25,6 @@ pub struct InitialEquipementList {
|
|||
pub(super) inner: Vec<Equipement>,
|
||||
}
|
||||
|
||||
// impl InitialEquipementList {
|
||||
// pub fn from_iter_with_intermediate<IntoEquipementType, IntermediateType>(
|
||||
// iterator: &mut dyn Iterator<Item = IntoEquipementType>,
|
||||
// ) -> Self
|
||||
// where
|
||||
// IntermediateType: Into<Equipement>,
|
||||
// IntoEquipementType: Into<IntermediateType>,
|
||||
// {
|
||||
// Self {
|
||||
// inner: iterator
|
||||
// .into_iter()
|
||||
// .map(|element| IntermediateType::from(element.into()))
|
||||
// .collect(),
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
/// The final equipement, obtained by combining all parts
|
||||
#[derive(Clone, Debug)]
|
||||
#[cfg_attr(test, derive(PartialEq))]
|
||||
|
|
@ -78,7 +61,7 @@ pub(crate) fn filter_id_unique_and_right_category()
|
|||
(Some(a), Some(b)) => a.can_apply_onto(b),
|
||||
// TODO: Unsound to have a generic nature, this should be caught at serialisation
|
||||
// There is no target and the part about to be added is generic
|
||||
(None, _) => true, // panic!("The EqNature about to be added cannot be generic"),
|
||||
(None, _) => panic!("The EqNature about to be added cannot be generic"),
|
||||
(Some(_), None) => panic!("The part about to be added unto cannot be generic"),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,3 +44,8 @@ pub use equipement_fields::{
|
|||
};
|
||||
// Likely ? Final Re-Exports
|
||||
pub use equipement_scenario::CrossRecipeScenario;
|
||||
|
||||
// // TODO[!]: Add a sensible prelude
|
||||
// mod prelude{
|
||||
|
||||
// }
|
||||
|
|
|
|||
Loading…
Reference in New Issue