2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-01-19 23:11:50 +00:00

chore: add ability for zcg to generate files once per template

This commit is contained in:
Jan Laupetin
2026-01-05 12:15:14 +00:00
parent 11fdb4ad59
commit 660f34df69
17 changed files with 166 additions and 53 deletions

View File

@@ -5,7 +5,7 @@
#include "Domain/Evaluation/OperandDynamic.h"
#include "Domain/Evaluation/OperandStatic.h"
#include "Domain/Evaluation/Operation.h"
#include "Generating/RenderingContext.h"
#include "Generating/OncePerAssetRenderingContext.h"
#include <format>
#include <ostream>
@@ -15,7 +15,7 @@ class BaseTemplate
protected:
static constexpr auto INTENDATION = " ";
BaseTemplate(std::ostream& stream, const RenderingContext& context);
BaseTemplate(std::ostream& stream, const OncePerAssetRenderingContext& context);
void DoIntendation() const;
@@ -37,7 +37,7 @@ protected:
static std::string MakeEvaluation(const IEvaluation* evaluation);
std::ostream& m_out;
const RenderingContext& m_env;
const OncePerAssetRenderingContext& m_env;
unsigned m_intendation;
private: