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

Function findtype

source/src/world.cpp:362–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360COMMAND(unlistdeletedentity, "s");
361
362int findtype(const char *what)
363{
364 int t = getlistindex(what, entnames, true, NOTUSED);
365 if(t == NOTUSED) conoutf("unknown entity type \"%s\"", what);
366 return t;
367}
368
369VAR(_nextentityispasted,0,0,1);// so copyent/pasteent can keep all attributes
370void newentity(int index, int x, int y, int z, const char *what, float v1f, float v2f, float v3f, float v4f, float v5f, float v6f, float v7f) // add an entity or overwrite an existing one

Callers 4

closestenttypeFunction · 0.85
newentityFunction · 0.85
clearentsFunction · 0.85
addentityFunction · 0.85

Calls 2

getlistindexFunction · 0.85
conoutfFunction · 0.70

Tested by

no test coverage detected