refactor: update zcg generate file headers

This commit is contained in:
Jan
2025-04-30 16:57:36 +01:00
parent 115765ad86
commit 50612d117e
3 changed files with 24 additions and 17 deletions

View File

@ -32,8 +32,8 @@ namespace
LINE("")
LINE("#pragma once")
LINE("")
LINE("#include \"Loading/AssetMarker.h\"")
LINEF("#include \"Game/{0}/{0}.h\"", m_env.m_game)
LINE("#include \"Loading/AssetMarker.h\"")
LINE("")
LINE("#include <string>")
LINE("")
@ -116,19 +116,19 @@ namespace
LINE("// ====================================================================")
LINE("")
LINEF("#include \"{0}_mark_db.h\"", Lower(m_env.m_asset->m_definition->m_name))
LINE("")
LINE("#include <cassert>")
LINE("")
if (!m_env.m_referenced_assets.empty())
{
LINE("")
LINE("// Referenced Assets:")
for (const auto* type : m_env.m_referenced_assets)
{
LINEF("#include \"../{0}/{0}_mark_db.h\"", Lower(type->m_type->m_name))
}
LINE("")
}
LINE("")
LINE("#include <cassert>")
LINE("")
LINEF("using namespace {0};", m_env.m_game)
LINE("")
PrintConstructorMethod();