Переименование
This commit is contained in:
1 parent
23e52788a0
commit
e93a028bc4
7 files changed
+13
-13
No files matched your search
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace mROA.CodegenTools
|
||||
{
|
||||
public class ProgrammableTextSection : ITemplateSection
|
||||
{
|
||||
public TemplateDocument Context { get; set; }
|
||||
public int TargetLength => 0;
|
||||
|
||||
private Func<object, string> _bakeFunc;
|
||||
|
||||
public ProgrammableTextSection(Func<object, string> bakeFunc, TemplateDocument context)
|
||||
{
|
||||
_bakeFunc = bakeFunc;
|
||||
Context = context;
|
||||
}
|
||||
|
||||
|
||||
public string Bake()
|
||||
{
|
||||
return _bakeFunc(Context.AdditionalContext);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user