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

Function prefab_json

src/resource/unit_compiler.cpp:623–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621 }
622
623 const char *prefab_json(UnitCompiler &c, const char *prefab_name)
624 {
625 StringId64 name(prefab_name);
626 for (u32 i = 0; i < array::size(c._prefab_names); ++i) {
627 if (c._prefab_names[i] == name)
628 return &c._prefab_data[c._prefab_offsets[i]];
629 }
630
631 return NULL;
632 }
633
634 u32 object_index(const JsonArray &objects, const Guid &object_id, CompileOptions &opts)
635 {

Callers 1

parse_unit_internalFunction · 0.85

Calls 1

sizeFunction · 0.50

Tested by

no test coverage detected