type of material only so we know which vector to retrieve This is completely worthless now
| 644 | // type of material only so we know which vector to retrieve |
| 645 | // This is completely worthless now |
| 646 | std::string Materials::getType(const t_material& mat) |
| 647 | { |
| 648 | MaterialInfo mi(mat.mat_type, mat.mat_index); |
| 649 | switch (mi.mode) |
| 650 | { |
| 651 | case MaterialInfo::Builtin: |
| 652 | return "builtin"; |
| 653 | case MaterialInfo::Inorganic: |
| 654 | return "inorganic"; |
| 655 | case MaterialInfo::Creature: |
| 656 | return "creature"; |
| 657 | case MaterialInfo::Plant: |
| 658 | return "plant"; |
| 659 | default: |
| 660 | return "unknown"; |
| 661 | } |
| 662 | } |
no outgoing calls