MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetProdInfo

Method GetProdInfo

Descent3/matcen.cpp:988–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986}
987
988bool matcen::GetProdInfo(char index, int *type_id, int *priority, float *time, int *max_prod) {
989 if (index >= 0 && index < MAX_PROD_TYPES) {
990 if (type_id)
991 *type_id = m_prod_type[index];
992
993 if (priority)
994 *priority = m_prod_priority[index];
995
996 if (time)
997 *time = m_prod_time[index];
998
999 if (max_prod)
1000 *max_prod = m_max_prod_type[index];
1001
1002 return true;
1003 }
1004
1005 return false;
1006}
1007
1008bool matcen::SetProdInfo(char index, int *type_id, int *priority, float *time, int *max_prod) {
1009 if (index >= 0 && index < MAX_PROD_TYPES) {

Callers 3

UpdateDialogMethod · 0.80
osipf_MatcenValueFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected