generating order changed

This commit is contained in:
2025-06-30 00:09:30 +03:00
parent 0958ba20ee
commit c14f0498a8
8 changed files with 43 additions and 14 deletions
-1
View File
@@ -13,7 +13,6 @@ class Program
{
public static void Main(string[] args)
{
new mROA.Codegen.CoCodegenMethodRepository();
new CoCodegenMethodRepository();
var builder = new FullMixBuilder();
// builder.UseJsonSerialisation();
-10
View File
@@ -42,15 +42,5 @@
<EmbeddedResource Include="Proxy.cstmpl" />
</ItemGroup>
<PropertyGroup>
<GetTargetPathDependsOn>$(GetTargetPathDependsOn);GetDependencyTargetPaths</GetTargetPathDependsOn>
</PropertyGroup>
<Target Name="GetDependencyTargetPaths">
<ItemGroup>
<TargetPathWithTargetPlatformMoniker Include="$(PKGmROA_CodegenTools)\lib\netstandard2.0\mROA.CodegenTools.dll" IncludeRuntimeDependency="false" />
</ItemGroup>
</Target>
</Project>
+1 -1
View File
@@ -94,7 +94,7 @@ namespace mROA.Codegen
var invokers = new List<string>();
var declarations = classes.ToList().OrderBy(i => i.Identifier.Text).ToList();
var declarations = classes.ToList();
foreach (var classDeclarationSyntax in declarations)
{
var semanticModel = compilation.GetSemanticModel(classDeclarationSyntax.SyntaxTree);
+4 -1
View File
@@ -1,9 +1,12 @@
namespace mROA.Abstract
using mROA.Implementation;
namespace mROA.Abstract
{
public interface IEndPointContext : IInjectableModule
{
IInstanceRepository RealRepository { get; }
IInstanceRepository RemoteRepository { get; }
ICallIndexProvider CallIndexProvider { get; }
int HostId { get; set; }
int OwnerId { get; set; }
}
@@ -0,0 +1,18 @@
using System;
namespace mROA.Implementation.Attributes
{
public class ApiLevelAttribute : Attribute
{
public int ApiLevel { get; set; }
public ApiLevelAttribute(int level)
{
ApiLevel = level;
}
public ApiLevelAttribute() : this(0)
{
}
}
}
+16
View File
@@ -0,0 +1,16 @@
using System.Collections.Generic;
namespace mROA.Implementation
{
public class CallIndexConfig : List<IndexSpan>
{
}
public class IndexSpan
{
public string Identifier { get; set; }
public int ApiLevel { get; set; }
public int Offset { get; set; }
public int Length { get; set; }
}
}
+3
View File
@@ -7,9 +7,12 @@ namespace mROA.Implementation
{
public IInstanceRepository RealRepository { get; set; }
public IInstanceRepository RemoteRepository { get; set; }
public ICallIndexProvider CallIndexProvider { get; }
public CallIndexConfig CallIndexConfig { get; set; }
public int HostId { get; set; }
public int OwnerId { get; set; }
public void Inject<T>(T dependency)
{
+1 -1
View File
@@ -3,7 +3,7 @@ namespace mROA.Implementation
public class IdAssignment : INetworkMessage
{
public int Id { get; set; }
public CallIndexConfig IndexConfig { get; set; }
public EMessageType MessageType => EMessageType.IdAssigning;
}