Reinclude tools

This commit is contained in:
micialware committed 2025-06-28 22:38:09 +03:00
1 parent 999ee66f9c
commit 0958ba20ee
17 files changed
+563 -2

No files matched your search

@@ -0,0 +1,29 @@
using System;
namespace mROA.CodegenTools
{
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);
}
}
}