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

Function read_unit

src/resource/unit_compiler.cpp:554–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552namespace unit_compiler
553{
554 Buffer read_unit(const char *path, CompileOptions &opts)
555 {
556 Buffer buf = opts.read(path);
557 array::push_back(buf, '\0');
558 return buf;
559 }
560
561 // Collects the prefabs data of @a unit_json and its children recursively.
562 // Prefab of deeper child is collected first.

Callers 2

collect_prefabsFunction · 0.85
parse_unitFunction · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected