Including tools into codegen

This commit is contained in:
micialware committed 2025-06-27 16:12:38 +03:00
1 parent 745def1365
commit f31ddf1604
22 files changed
+78 -574

No files matched your search

@@ -1,29 +0,0 @@
using System;
namespace mROA.Codegen.Tools
{
public class ProgrammableTextSection : ITemplateSection, IBaking
{
private readonly Func<object, string> _bakeFunc;
public ProgrammableTextSection(Func<object, string> bakeFunc, TemplateDocument context)
{
_bakeFunc = bakeFunc;
Context = context;
}
public string Bake()
{
return _bakeFunc(Context.AdditionalContext);
}
public TemplateDocument Context { get; set; }
public int TargetLength => 0;
public object Clone()
{
return new ProgrammableTextSection(_bakeFunc, Context);
}
}
}