ravenous-tools/weaponry/workflow.md

19 lines
727 B
Markdown

# Workflow
A B C
Database -> <Structs> -> <Weapons> -> Balancing data
-> Exported data
# Description
- A : Use structs defines in weaponry_structs
: impl From<ForeignType> 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 ?