| 428 | } |
| 429 | |
| 430 | void getmapmodelattributes(char *name, char *attr) |
| 431 | { |
| 432 | const char *res = NULL; |
| 433 | mapmodelattributes **ap = mdlregistry.access(name), *a = ap ? *ap : NULL; |
| 434 | if(a) |
| 435 | { |
| 436 | int i = getlistindex(attr, mdlattrnames, true, MMA_NUM); |
| 437 | if(i < MMA_NUM) res = a->n[i]; |
| 438 | else |
| 439 | { |
| 440 | string s = ""; |
| 441 | loopi(MMA_NUM) if(a->n[i]) concatformatstring(s, " %s:\"%s\"", mdlattrnames[i], a->n[i]); |
| 442 | conoutf("%s:%s", a->name, *s ? s : " <no attributes set>"); |
| 443 | } |
| 444 | } |
| 445 | result(res ? res : ""); |
| 446 | } |
| 447 | COMMAND(getmapmodelattributes, "ss"); |
| 448 | |
| 449 | void updatemapmodeldependencies() |
nothing calls this directly
no test coverage detected