Добавлена возможность получать доступ к шаблонам через встроенный ресурс

This commit is contained in:
2025-03-24 10:37:19 +03:00
parent b58bddc1a3
commit 012619a92c
10 changed files with 58 additions and 8 deletions
+32
View File
@@ -0,0 +1,32 @@
// <auto-generated/>
using System.Collections.Generic;
using System.Reflection;
using mROA.Abstract;
using mROA.Implementation;
using System;
using System.Threading;
namespace mROA.Codegen
{
public class CoCodegenMethodRepository : IMethodRepository
{
private readonly List<IMethodInvoker> _methods = new () {
<!I invoker>
};
public IMethodInvoker GetMethod(int id)
{
if (id == -1)
return mROA.Implementation.MethodInvoker.Dispose;
if (_methods.Count <= id)
return null;
return _methods[id];
}
public void Inject<T>(T dependency)
{
}
}
}
+4 -1
View File
@@ -34,7 +34,10 @@
<ItemGroup>
<None Remove="test.tpt" />
<EmbeddedResource Include="test.tpt" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\mROA.CodegenTools\mROA.CodegenTools.csproj" />
</ItemGroup>
-1
View File
@@ -1 +0,0 @@
test text