Function mkproj_lib::rules::types [−][src]
pub fn types(summmons: [Card; 2], invocations: [Card; 4])
This is used to describe the types in Summons and Invocations
- Summon Types:
- Striker
- Tech
- Invocation Types:
- Regular
- Counter
- Weapon
- Realm
If a new card type would be made, then a change could look like this:
// Before pub fn types(summmons: [Card; 2], invocations: [Card; 4]) // After (example new summon type) pub fn types(summmons: [Card; 3], invocations: [Card; 4])
pub fn types(summmons: [Card; 2], invocations: [Card; 4]) {
println!("Summmons: ");
// This will cycle through all the struct Card fields
for i in 0..summmons.len() {
println!("\t{}: {}", summmons[i].name, summmons[i].description);
}
println!("Invocations");
for i in 0..invocations.len() {
println!("\t{}: {}", invocations[i].name, invocations[i].description);
}
}