Beispiel #1
0
            public override bool directSet(RunTimeValueBase value)
            {
                double v = value.toNumber();

                cache[id]    = v;
                number.value = v;
                return(true);
            }
Beispiel #2
0
            public override SLOT assign(RunTimeValueBase value,out bool success)
            {
                double v = value.toNumber();

                cache[id]    = v;
                number.value = v;
                success      = true;
                return(this);
            }
        private static void _execMulti_CallBacker(ASBinCode.RunTimeValueBase v1, ASBinCode.RunTimeValueBase v2, StackFrame frame, ASBinCode.OpStep step, ASBinCode.RunTimeScope scope)
        {
            double n1 = v1.toNumber();

            double n2 = v2.toNumber();

            {
                step.reg.getSlot(scope, frame).setValue(n1 * n2);// ((ASBinCode.rtData.rtNumber)v1).value - ((ASBinCode.rtData.rtNumber)v2).value);//new ASBinCode.rtData.rtNumber(((ASBinCode.rtData.rtNumber)v1).value - ((ASBinCode.rtData.rtNumber)v2).value));
            }
            //frame.endStep(step);
            frame.endStepNoError();
        }