Move arbitrary property operator to PropOp.
This commit is contained in:
@@ -8,6 +8,15 @@ using RBeatTime = Cryville.Crtr.BeatTime;
|
||||
namespace Cryville.Crtr {
|
||||
public abstract class PropOp : PdtOperator {
|
||||
internal PropOp() : base(1) { }
|
||||
public class Arbitrary : PropOp {
|
||||
public int Name { get; set; }
|
||||
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));
|
||||
}
|
||||
}
|
||||
public class Boolean : PropOp {
|
||||
readonly Action<bool> _cb;
|
||||
public Boolean(Action<bool> cb) { _cb = cb; }
|
||||
|
Reference in New Issue
Block a user