generating order changed
This commit is contained in:
@@ -13,7 +13,6 @@ class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
new mROA.Codegen.CoCodegenMethodRepository();
|
||||
new CoCodegenMethodRepository();
|
||||
var builder = new FullMixBuilder();
|
||||
// builder.UseJsonSerialisation();
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user