| 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 | { |
no test coverage detected