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

Function addentity

source/src/world.cpp:488–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486COMMAND(deleteentity, "s");
487
488void addentity(char *what) // type
489{
490 int type = findtype(what);
491 EDITMP("addentity");
492 if(type == NOTUSED) return;
493 entity e((int)camera1->o.x, (int)camera1->o.y, (int)camera1->o.z, type, 0, 0, 0, 0);
494 e.spawned = true;
495 intret(ents.length());
496 ents.add(e);
497 unsavededits++;
498}
499COMMAND(addentity, "s");
500
501void editentity(char **args, int numargs) // index x y z a1 a2 a3 a4 ...

Callers

nothing calls this directly

Calls 4

findtypeFunction · 0.85
intretFunction · 0.85
lengthMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected