727 B
727 B
Workflow
A B C
Database -> -> -> Balancing data -> Exported data
Description
- A : Use structs defines in weaponry_structs : impl From for all weapon parts
- B : Every part can be converted to a weapon(ish) : Use the correct solver to add all parts
- C1 : Use the traits to generate the tex data
Strategy
Since the structs will become more than just weapons but will become craft afterwards, polymorphism is the key
The creation algorithm will pick a Strategy depending on the user's choice and build a final weapon depending on it The creation will implement an iterator to go with itertools / rayon ?