chore: use Asset definition instead of enum entry for zcg

This commit is contained in:
Jan Laupetin
2025-04-28 11:08:32 +02:00
committed by Jan
parent 3adbe5a275
commit 1fe1b30831
13 changed files with 195 additions and 203 deletions

View File

@ -261,7 +261,7 @@ namespace
"{0}::{0}({1}* asset, const Zone& zone, IZoneOutputStream& stream)", WriterClassName(m_env.m_asset), m_env.m_asset->m_definition->GetFullName())
m_intendation++;
LINEF(": AssetWriter(zone.m_pools->GetAssetOrAssetReference({0}, GetAssetName(asset)), zone, stream)", m_env.m_asset->m_asset_enum_entry->m_name)
LINEF(": AssetWriter(zone.m_pools->GetAssetOrAssetReference({0}::EnumEntry, GetAssetName(asset)), zone, stream)", m_env.m_asset->m_asset_name)
m_intendation--;
LINE("{")