Move arbitrary property operator to PropOp.
This commit is contained in:
@@ -58,16 +58,7 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
}
|
||||
public class Constraint {
|
||||
class ArbitraryOp : PropOp {
|
||||
public int name;
|
||||
protected override void Execute() {
|
||||
var op = GetOperand(0);
|
||||
var value = new byte[op.Length];
|
||||
op.CopyTo(value, 0);
|
||||
ChartPlayer.etor.ContextCascadeUpdate(name, new PropSrc.Arbitrary(op.Type, value));
|
||||
}
|
||||
}
|
||||
static readonly ArbitraryOp _arbop = new ArbitraryOp();
|
||||
static readonly PropOp.Arbitrary _arbop = new PropOp.Arbitrary();
|
||||
[ElementList]
|
||||
public Dictionary<RulesetSelectors, Constraint> Elements = new Dictionary<RulesetSelectors, Constraint>();
|
||||
[PropertyList]
|
||||
@@ -96,7 +87,7 @@ namespace Cryville.Crtr {
|
||||
etor.ContextSelfValue = null;
|
||||
break;
|
||||
case PropertyType.Variable:
|
||||
_arbop.name = name;
|
||||
_arbop.Name = name;
|
||||
etor.Evaluate(_arbop, prop.Value);
|
||||
break;
|
||||
default: throw new NotSupportedException("Unknown property key type");
|
||||
|
Reference in New Issue
Block a user