MCPcopy Create free account
hub / github.com/assaultcube/AC / mdlattribute

Function mdlattribute

source/src/rendermodel.cpp:92–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90const char *mdlattrnames[] = { "keywords", "desc", "defaults", "usage", "author", "license", "distribution", "version", "requires", "" };
91
92void mdlattribute(char *attrname, char *val)
93{
94 checkmdl;
95 int i = getlistindex(attrname, mdlattrnames, true, MMA_NUM);
96 if(i < MMA_NUM)
97 {
98 DELSTRING(loadingattributes.n[i]);
99 filtertext(val, val, FTXT__MDLATTR);
100 if(*val) loadingattributes.n[i] = newstring(val);
101 }
102}
103
104COMMAND(mdlattribute, "ss");
105

Callers

nothing calls this directly

Calls 3

getlistindexFunction · 0.85
filtertextFunction · 0.85
newstringFunction · 0.85

Tested by

no test coverage detected