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

Method Priority

Descent3/levelgoal.cpp:344–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344bool lgoal::Priority(int handle, char operation, int *value) {
345 if (!value)
346 return false;
347
348 switch (operation) {
349 case LO_SET_SPECIFIED:
350 m_priority = *value;
351 m_modified = 1;
352 if (Game_mode & GM_MULTI && Netgame.local_role != LR_CLIENT) {
353 // send it off to the clients
354 SendMultiUpdate(handle);
355 }
356 return true;
357 break;
358 case LO_GET_SPECIFIED:
359 *value = m_priority;
360 return true;
361 break;
362 }
363
364 return false;
365}
366
367bool lgoal::GoalList(char operation, char *value) {
368 if (!value)

Callers 3

GoalPriorityMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected