MCPcopy Create free account
hub / github.com/crownengine/crown / create

Function create

src/world/script_world.cpp:85–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 }
84
85 ScriptId create(ScriptWorld &sw, UnitId unit, const ScriptDesc &desc)
86 {
87 u32 unit_index = 0;
88 create_instances(sw, &desc, 1, &unit, &unit_index);
89 return instance(sw, unit);
90 }
91
92 void destroy(ScriptWorld &sw, ScriptId inst)
93 {

Callers

nothing calls this directly

Calls 2

create_instancesFunction · 0.85
instanceFunction · 0.85

Tested by

no test coverage detected