Клинап

This commit is contained in:
2025-03-29 19:31:10 +03:00
parent 361b4cd3f6
commit 5cc53d72fd
18 changed files with 359 additions and 390 deletions
@@ -1,13 +1,10 @@
using System;
namespace mROA.CodegenTools
namespace mROA.Codegen.Tools
{
public class ProgrammableTextSection : ITemplateSection, IBaking
{
public TemplateDocument Context { get; set; }
public int TargetLength => 0;
private Func<object, string> _bakeFunc;
private readonly Func<object, string> _bakeFunc;
public ProgrammableTextSection(Func<object, string> bakeFunc, TemplateDocument context)
{
@@ -21,6 +18,9 @@ namespace mROA.CodegenTools
return _bakeFunc(Context.AdditionalContext);
}
public TemplateDocument Context { get; set; }
public int TargetLength => 0;
public object Clone()
{
return new ProgrammableTextSection(_bakeFunc, Context);