初始化

This commit is contained in:
xhm
2023-11-21 23:05:03 +08:00
commit 2455630dad
2252 changed files with 466529 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
using System;
using System.Reflection.Emit;
namespace Raindrops.Shared.InvokeST
{
public class ConvertItem
{
public ConvertItem(Action<ILGenerator> action, int lostWeight = 0, int consumptionWeight = 0, int order = 0)
{
Order = order;
Action = action;
LostWeight = lostWeight;
ConsumptionWeight = consumptionWeight;
}
public ConvertItem(OpCode opCode, int lostWeight = 0, int consumptionWeight = 0, int order = 0)
{
Order = order;
OpCode = opCode;
LostWeight = lostWeight;
ConsumptionWeight = consumptionWeight;
}
internal int Order { get; set; }
public int ConsumptionWeight { get; }
public int LostWeight { get; }
public Action<ILGenerator> Action { get; }
public OpCode? OpCode { get; }
}
}