From 837ee177e705dd0aa61312a054d85738a6bc976f Mon Sep 17 00:00:00 2001 From: Robert Dorn Date: Wed, 20 Nov 2024 16:10:52 +0100 Subject: [PATCH] renamed val to value --- .../nodes/experimental/PointerAnimateTo.ts | 2 +- .../nodes/experimental/Random.ts | 2 +- .../nodes/math/arithmetic/AbsoluteValue.ts | 2 +- .../nodes/math/arithmetic/Add.ts | 2 +- .../nodes/math/arithmetic/Cast.ts | 2 +- .../nodes/math/arithmetic/Ceil.ts | 2 +- .../nodes/math/arithmetic/Clamp.ts | 2 +- .../nodes/math/arithmetic/Divide.ts | 2 +- .../nodes/math/arithmetic/Floor.ts | 2 +- .../nodes/math/arithmetic/Fraction.ts | 2 +- .../nodes/math/arithmetic/Interpolate.ts | 2 +- .../nodes/math/arithmetic/Max.ts | 2 +- .../nodes/math/arithmetic/Min.ts | 2 +- .../nodes/math/arithmetic/Multiply.ts | 2 +- .../nodes/math/arithmetic/Negate.ts | 2 +- .../nodes/math/arithmetic/Remainder.ts | 2 +- .../nodes/math/arithmetic/Saturate.ts | 2 +- .../nodes/math/arithmetic/Sign.ts | 2 +- .../nodes/math/arithmetic/Subtract.ts | 2 +- .../nodes/math/arithmetic/Truncate.ts | 2 +- .../nodes/math/bitwise/And.ts | 2 +- .../nodes/math/bitwise/CountLeadingZeros.ts | 2 +- .../nodes/math/bitwise/CountOneBits.ts | 2 +- .../nodes/math/bitwise/CountTrailingZeros.ts | 2 +- .../nodes/math/bitwise/LeftShift.ts | 2 +- .../nodes/math/bitwise/Not.ts | 2 +- .../nodes/math/bitwise/Or.ts | 2 +- .../nodes/math/bitwise/RightShift.ts | 2 +- .../nodes/math/bitwise/Xor.ts | 2 +- .../nodes/math/combine/Combine2.ts | 2 +- .../nodes/math/combine/Combine3.ts | 2 +- .../nodes/math/combine/Combine4.ts | 2 +- .../nodes/math/combine/Combine4x4.ts | 2 +- .../nodes/math/comparison/Equality.ts | 2 +- .../nodes/math/comparison/GreaterThan.ts | 2 +- .../math/comparison/GreaterThanOrEqualTo.ts | 2 +- .../nodes/math/comparison/LessThan.ts | 2 +- .../math/comparison/LessThanOrEqualTo.ts | 2 +- .../nodes/math/constants/Euler.ts | 2 +- .../nodes/math/constants/Inf.ts | 2 +- .../nodes/math/constants/NotANumber.ts | 2 +- .../nodes/math/constants/Pi.ts | 2 +- .../nodes/math/exponential/CubeRoot.ts | 2 +- .../nodes/math/exponential/Exponential.ts | 2 +- .../nodes/math/exponential/Log.ts | 2 +- .../nodes/math/exponential/Log10.ts | 2 +- .../nodes/math/exponential/Log2.ts | 2 +- .../nodes/math/exponential/Power.ts | 2 +- .../nodes/math/exponential/SquareRoot.ts | 2 +- .../nodes/math/hyperbolic/HyperbolicCosine.ts | 2 +- .../nodes/math/hyperbolic/HyperbolicSine.ts | 2 +- .../math/hyperbolic/HyperbolicTangent.ts | 2 +- .../hyperbolic/InverseHyperbolicCosine.ts | 2 +- .../math/hyperbolic/InverseHyperbolicSine.ts | 2 +- .../hyperbolic/InverseHyperbolicTangent.ts | 2 +- .../nodes/math/matrix/Determinant.ts | 2 +- .../nodes/math/matrix/Inverse.ts | 2 +- .../nodes/math/matrix/MatMul.ts | 2 +- .../nodes/math/matrix/Transpose.ts | 2 +- .../nodes/math/special/IsInfNode.ts | 2 +- .../nodes/math/special/IsNaNNode.ts | 2 +- .../nodes/math/special/Select.ts | 2 +- .../nodes/math/trigonometry/Arccosine.ts | 2 +- .../nodes/math/trigonometry/Arcsine.ts | 2 +- .../nodes/math/trigonometry/Arctangent.ts | 2 +- .../nodes/math/trigonometry/Arctangent2.ts | 2 +- .../nodes/math/trigonometry/Cosine.ts | 2 +- .../math/trigonometry/DegreeToRadians.ts | 2 +- .../math/trigonometry/RadiansToDegrees.ts | 2 +- .../nodes/math/trigonometry/Sine.ts | 2 +- .../nodes/math/trigonometry/Tangent.ts | 2 +- .../nodes/math/typeConversion/BoolToFloat.ts | 2 +- .../nodes/math/typeConversion/BoolToInt.ts | 2 +- .../nodes/math/typeConversion/FloatToBool.ts | 2 +- .../nodes/math/typeConversion/FloatToInt.ts | 2 +- .../nodes/math/typeConversion/IntToBool.ts | 2 +- .../nodes/math/typeConversion/IntToFloat.ts | 2 +- .../nodes/math/vector/Cross.ts | 2 +- .../nodes/math/vector/Dot.ts | 2 +- .../nodes/math/vector/Normalize.ts | 2 +- .../nodes/math/vector/Rotate2D.ts | 2 +- .../nodes/math/vector/Rotate3D.ts | 2 +- .../nodes/math/vector/Transform.ts | 2 +- .../nodes/math/vector/VectorLength.ts | 2 +- src/authoring/AuthoringNodeSpecs.ts | 170 +++++++++--------- tst/BehaveEngine.test.ts | 50 +++--- tst/authoring.test.ts | 2 +- 87 files changed, 195 insertions(+), 195 deletions(-) diff --git a/src/BasicBehaveEngine/nodes/experimental/PointerAnimateTo.ts b/src/BasicBehaveEngine/nodes/experimental/PointerAnimateTo.ts index 396d90b..c779a4d 100644 --- a/src/BasicBehaveEngine/nodes/experimental/PointerAnimateTo.ts +++ b/src/BasicBehaveEngine/nodes/experimental/PointerAnimateTo.ts @@ -2,7 +2,7 @@ import {BehaveEngineNode, IBehaviourNodeProps} from "../../BehaveEngineNode"; export class PointerAnimateTo extends BehaveEngineNode { REQUIRED_CONFIGURATIONS = [{id: "pointer"}, {id: "easingType"}] - REQUIRED_VALUES = [{id: "val"}, {id: "easingDuration"}] + REQUIRED_VALUES = [{id: "value"}, {id: "easingDuration"}] _pointer: string; _easingType: number; diff --git a/src/BasicBehaveEngine/nodes/experimental/Random.ts b/src/BasicBehaveEngine/nodes/experimental/Random.ts index b83b349..0a362d4 100644 --- a/src/BasicBehaveEngine/nodes/experimental/Random.ts +++ b/src/BasicBehaveEngine/nodes/experimental/Random.ts @@ -10,6 +10,6 @@ export class Random extends BehaveEngineNode { override processNode(flowSocket?: string) { this.graphEngine.processNodeStarted(this); - return {'val': {id: "val", value: [Math.random()], type: this.getTypeIndex('float')}} + return {'val': {id: "value", value: [Math.random()], type: this.getTypeIndex('float')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/AbsoluteValue.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/AbsoluteValue.ts index 286f82a..ef7f4ef 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/AbsoluteValue.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/AbsoluteValue.ts @@ -41,6 +41,6 @@ export class AbsoluteValue extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Add.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Add.ts index b7b5004..c81949b 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Add.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Add.ts @@ -45,6 +45,6 @@ export class Add extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndexA}}; + return {'val': {id: "value", value: val, type: typeIndexA}}; } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Cast.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Cast.ts index 1094ee4..8e7fff7 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Cast.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Cast.ts @@ -17,6 +17,6 @@ export class Cast extends BehaveEngineNode { const castType = this.configuration['castType'].value! const typeIndex = this.getTypeIndex(castType!); - return {id: "val", value: a, type: typeIndex} + return {id: "value", value: a, type: typeIndex} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Ceil.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Ceil.ts index 97715b1..9234618 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Ceil.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Ceil.ts @@ -37,6 +37,6 @@ export class Ceil extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Clamp.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Clamp.ts index fafb8af..8cef83c 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Clamp.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Clamp.ts @@ -45,6 +45,6 @@ export class Clamp extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndexA}} + return {'val': {id: "value", value: val, type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Divide.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Divide.ts index ceda63b..7fcf451 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Divide.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Divide.ts @@ -45,6 +45,6 @@ export class Divide extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndexA}} + return {'val': {id: "value", value: val, type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Floor.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Floor.ts index f7ab417..64537b7 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Floor.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Floor.ts @@ -37,6 +37,6 @@ export class Floor extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Fraction.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Fraction.ts index 1b171c0..c0b5304 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Fraction.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Fraction.ts @@ -37,6 +37,6 @@ export class Fraction extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Interpolate.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Interpolate.ts index bb8e155..e1e4863 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Interpolate.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Interpolate.ts @@ -44,6 +44,6 @@ export class Interpolate extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndexA}} + return {'val': {id: "value", value: val, type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Max.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Max.ts index e157c8a..e815d4e 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Max.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Max.ts @@ -43,6 +43,6 @@ export class Max extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndexA}} + return {'val': {id: "value", value: val, type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Min.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Min.ts index 2d17215..0fb275c 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Min.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Min.ts @@ -43,6 +43,6 @@ export class Min extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndexA}} + return {'val': {id: "value", value: val, type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Multiply.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Multiply.ts index 8ae1390..58a5045 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Multiply.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Multiply.ts @@ -45,6 +45,6 @@ export class Multiply extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndexA}} + return {'val': {id: "value", value: val, type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Negate.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Negate.ts index 931dacb..e22bf8d 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Negate.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Negate.ts @@ -40,6 +40,6 @@ export class Negate extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Remainder.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Remainder.ts index d7467fe..27f5d11 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Remainder.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Remainder.ts @@ -45,6 +45,6 @@ export class Remainder extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndexA}} + return {'val': {id: "value", value: val, type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Saturate.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Saturate.ts index 4f0bc66..a85a22b 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Saturate.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Saturate.ts @@ -37,6 +37,6 @@ export class Saturate extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Sign.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Sign.ts index e0fab80..d191e61 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Sign.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Sign.ts @@ -39,6 +39,6 @@ export class Sign extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Subtract.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Subtract.ts index e5e50aa..a06e86d 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Subtract.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Subtract.ts @@ -45,6 +45,6 @@ export class Subtract extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndexA}} + return {'val': {id: "value", value: val, type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/arithmetic/Truncate.ts b/src/BasicBehaveEngine/nodes/math/arithmetic/Truncate.ts index 6ae4965..0099392 100644 --- a/src/BasicBehaveEngine/nodes/math/arithmetic/Truncate.ts +++ b/src/BasicBehaveEngine/nodes/math/arithmetic/Truncate.ts @@ -38,6 +38,6 @@ export class Truncate extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/bitwise/And.ts b/src/BasicBehaveEngine/nodes/math/bitwise/And.ts index a9c8340..c90abd8 100644 --- a/src/BasicBehaveEngine/nodes/math/bitwise/And.ts +++ b/src/BasicBehaveEngine/nodes/math/bitwise/And.ts @@ -31,6 +31,6 @@ export class And extends BehaveEngineNode { default: throw Error("Invalid type") } - return {'val': {id: "val", value: [val], type: typeIndexA}} + return {'val': {id: "value", value: [val], type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/bitwise/CountLeadingZeros.ts b/src/BasicBehaveEngine/nodes/math/bitwise/CountLeadingZeros.ts index 4361125..3db0703 100644 --- a/src/BasicBehaveEngine/nodes/math/bitwise/CountLeadingZeros.ts +++ b/src/BasicBehaveEngine/nodes/math/bitwise/CountLeadingZeros.ts @@ -18,6 +18,6 @@ export class CountLeadingZeros extends BehaveEngineNode { throw Error("invalid input type") } let val = Math.clz32(a); - return {'val': {id: "val", value: [val], type: this.getTypeIndex('int')}} + return {'val': {id: "value", value: [val], type: this.getTypeIndex('int')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/bitwise/CountOneBits.ts b/src/BasicBehaveEngine/nodes/math/bitwise/CountOneBits.ts index 283f27c..b02a44d 100644 --- a/src/BasicBehaveEngine/nodes/math/bitwise/CountOneBits.ts +++ b/src/BasicBehaveEngine/nodes/math/bitwise/CountOneBits.ts @@ -24,6 +24,6 @@ export class CountOneBits extends BehaveEngineNode { count++; } - return {'val': {id: "val", value: [count], type: this.getTypeIndex('int')}} + return {'val': {id: "value", value: [count], type: this.getTypeIndex('int')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/bitwise/CountTrailingZeros.ts b/src/BasicBehaveEngine/nodes/math/bitwise/CountTrailingZeros.ts index 15df152..b7a127a 100644 --- a/src/BasicBehaveEngine/nodes/math/bitwise/CountTrailingZeros.ts +++ b/src/BasicBehaveEngine/nodes/math/bitwise/CountTrailingZeros.ts @@ -18,6 +18,6 @@ export class CountTrailingZeros extends BehaveEngineNode { throw Error("invalid input type") } let val = a ? (31 - Math.clz32(a & -a)) : 32; - return {'val': {id: "val", value: [val], type: this.getTypeIndex('int')}} + return {'val': {id: "value", value: [val], type: this.getTypeIndex('int')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/bitwise/LeftShift.ts b/src/BasicBehaveEngine/nodes/math/bitwise/LeftShift.ts index 707b736..f246314 100644 --- a/src/BasicBehaveEngine/nodes/math/bitwise/LeftShift.ts +++ b/src/BasicBehaveEngine/nodes/math/bitwise/LeftShift.ts @@ -20,6 +20,6 @@ export class LeftShift extends BehaveEngineNode { throw Error("invalid input type") } let val = a << b; - return {'val': {id: "val", value: [val], type: this.getTypeIndex('int')}}; + return {'val': {id: "value", value: [val], type: this.getTypeIndex('int')}}; } } diff --git a/src/BasicBehaveEngine/nodes/math/bitwise/Not.ts b/src/BasicBehaveEngine/nodes/math/bitwise/Not.ts index 939f2db..2bb5098 100644 --- a/src/BasicBehaveEngine/nodes/math/bitwise/Not.ts +++ b/src/BasicBehaveEngine/nodes/math/bitwise/Not.ts @@ -25,6 +25,6 @@ export class Not extends BehaveEngineNode { default: throw Error("Invalid type") } - return {'val': {id: "val", value: [val], type: typeIndexA}} + return {'val': {id: "value", value: [val], type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/bitwise/Or.ts b/src/BasicBehaveEngine/nodes/math/bitwise/Or.ts index 64d7805..4d8cc63 100644 --- a/src/BasicBehaveEngine/nodes/math/bitwise/Or.ts +++ b/src/BasicBehaveEngine/nodes/math/bitwise/Or.ts @@ -31,6 +31,6 @@ export class Or extends BehaveEngineNode { default: throw Error("Invalid type") } - return {'val': {id: "val", value: [val], type: typeIndexA}} + return {'val': {id: "value", value: [val], type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/bitwise/RightShift.ts b/src/BasicBehaveEngine/nodes/math/bitwise/RightShift.ts index 55b86bb..aaf9168 100644 --- a/src/BasicBehaveEngine/nodes/math/bitwise/RightShift.ts +++ b/src/BasicBehaveEngine/nodes/math/bitwise/RightShift.ts @@ -20,6 +20,6 @@ export class RightShift extends BehaveEngineNode { throw Error("invalid input type") } let val = a >> b; - return {'val': {id: "val", value: [val], type: this.getTypeIndex('int')}} + return {'val': {id: "value", value: [val], type: this.getTypeIndex('int')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/bitwise/Xor.ts b/src/BasicBehaveEngine/nodes/math/bitwise/Xor.ts index e143ae5..1c1f8db 100644 --- a/src/BasicBehaveEngine/nodes/math/bitwise/Xor.ts +++ b/src/BasicBehaveEngine/nodes/math/bitwise/Xor.ts @@ -31,6 +31,6 @@ export class Xor extends BehaveEngineNode { default: throw Error("Invalid type") } - return {'val': {id: "val", value: [val], type: typeIndexA}} + return {'val': {id: "value", value: [val], type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/combine/Combine2.ts b/src/BasicBehaveEngine/nodes/math/combine/Combine2.ts index 970590c..112eb05 100644 --- a/src/BasicBehaveEngine/nodes/math/combine/Combine2.ts +++ b/src/BasicBehaveEngine/nodes/math/combine/Combine2.ts @@ -20,6 +20,6 @@ export class Combine2 extends BehaveEngineNode { throw Error("invalid input types") } - return {'val': {id: "val", value: [a, b], type: this.getTypeIndex("float2")}}; + return {'val': {id: "value", value: [a, b], type: this.getTypeIndex("float2")}}; } } diff --git a/src/BasicBehaveEngine/nodes/math/combine/Combine3.ts b/src/BasicBehaveEngine/nodes/math/combine/Combine3.ts index f67a85a..6b34280 100644 --- a/src/BasicBehaveEngine/nodes/math/combine/Combine3.ts +++ b/src/BasicBehaveEngine/nodes/math/combine/Combine3.ts @@ -22,6 +22,6 @@ export class Combine3 extends BehaveEngineNode { throw Error("invalid input types") } - return {'val': {id: "val", value: [a, b, c], type: this.getTypeIndex("float3")}}; + return {'val': {id: "value", value: [a, b, c], type: this.getTypeIndex("float3")}}; } } diff --git a/src/BasicBehaveEngine/nodes/math/combine/Combine4.ts b/src/BasicBehaveEngine/nodes/math/combine/Combine4.ts index bcf2c4f..e518db4 100644 --- a/src/BasicBehaveEngine/nodes/math/combine/Combine4.ts +++ b/src/BasicBehaveEngine/nodes/math/combine/Combine4.ts @@ -24,6 +24,6 @@ export class Combine4 extends BehaveEngineNode { throw Error("invalid input types") } - return {'val': {id: "val", value: [a, b, c, d], type: this.getTypeIndex("float4")}}; + return {'val': {id: "value", value: [a, b, c, d], type: this.getTypeIndex("float4")}}; } } diff --git a/src/BasicBehaveEngine/nodes/math/combine/Combine4x4.ts b/src/BasicBehaveEngine/nodes/math/combine/Combine4x4.ts index f074988..e85374b 100644 --- a/src/BasicBehaveEngine/nodes/math/combine/Combine4x4.ts +++ b/src/BasicBehaveEngine/nodes/math/combine/Combine4x4.ts @@ -24,6 +24,6 @@ export class Combine4x4 extends BehaveEngineNode { } } - return {'val': {id: "val", value: [[a, b, c, d], [e, f, g, h], [i, j, k, l], [m, n, o, p]], type: this.getTypeIndex("float4x4")}}; + return {'val': {id: "value", value: [[a, b, c, d], [e, f, g, h], [i, j, k, l], [m, n, o, p]], type: this.getTypeIndex("float4x4")}}; } } diff --git a/src/BasicBehaveEngine/nodes/math/comparison/Equality.ts b/src/BasicBehaveEngine/nodes/math/comparison/Equality.ts index cbcca16..4dc135a 100644 --- a/src/BasicBehaveEngine/nodes/math/comparison/Equality.ts +++ b/src/BasicBehaveEngine/nodes/math/comparison/Equality.ts @@ -38,6 +38,6 @@ export class Equality extends BehaveEngineNode { default: throw Error("Invalid type") } - return {'val': {id: "val", value: [val], type: this.getTypeIndex('bool')}}; + return {'val': {id: "value", value: [val], type: this.getTypeIndex('bool')}}; } } diff --git a/src/BasicBehaveEngine/nodes/math/comparison/GreaterThan.ts b/src/BasicBehaveEngine/nodes/math/comparison/GreaterThan.ts index 3f6569c..15f818d 100644 --- a/src/BasicBehaveEngine/nodes/math/comparison/GreaterThan.ts +++ b/src/BasicBehaveEngine/nodes/math/comparison/GreaterThan.ts @@ -29,6 +29,6 @@ export class GreaterThan extends BehaveEngineNode { default: throw Error("Invalid type") } - return {'val': {id: "val", value: [val], type: this.getTypeIndex('bool')}}; + return {'val': {id: "value", value: [val], type: this.getTypeIndex('bool')}}; } } diff --git a/src/BasicBehaveEngine/nodes/math/comparison/GreaterThanOrEqualTo.ts b/src/BasicBehaveEngine/nodes/math/comparison/GreaterThanOrEqualTo.ts index f1e450f..d7ba145 100644 --- a/src/BasicBehaveEngine/nodes/math/comparison/GreaterThanOrEqualTo.ts +++ b/src/BasicBehaveEngine/nodes/math/comparison/GreaterThanOrEqualTo.ts @@ -29,6 +29,6 @@ export class GreaterThanOrEqualTo extends BehaveEngineNode { default: throw Error("Invalid type") } - return {'val': {id: "val", value: [val], type: this.getTypeIndex('bool')}}; + return {'val': {id: "value", value: [val], type: this.getTypeIndex('bool')}}; } } diff --git a/src/BasicBehaveEngine/nodes/math/comparison/LessThan.ts b/src/BasicBehaveEngine/nodes/math/comparison/LessThan.ts index 0a6f882..8a795e6 100644 --- a/src/BasicBehaveEngine/nodes/math/comparison/LessThan.ts +++ b/src/BasicBehaveEngine/nodes/math/comparison/LessThan.ts @@ -30,6 +30,6 @@ export class LessThan extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: [val], type: this.getTypeIndex('bool')}}; + return {'val': {id: "value", value: [val], type: this.getTypeIndex('bool')}}; } } diff --git a/src/BasicBehaveEngine/nodes/math/comparison/LessThanOrEqualTo.ts b/src/BasicBehaveEngine/nodes/math/comparison/LessThanOrEqualTo.ts index 91329b9..190a4d2 100644 --- a/src/BasicBehaveEngine/nodes/math/comparison/LessThanOrEqualTo.ts +++ b/src/BasicBehaveEngine/nodes/math/comparison/LessThanOrEqualTo.ts @@ -29,6 +29,6 @@ export class LessThanOrEqualTo extends BehaveEngineNode { default: throw Error("Invalid type") } - return {'val': {id: "val", value: [val], type: this.getTypeIndex('bool')}}; + return {'val': {id: "value", value: [val], type: this.getTypeIndex('bool')}}; } } diff --git a/src/BasicBehaveEngine/nodes/math/constants/Euler.ts b/src/BasicBehaveEngine/nodes/math/constants/Euler.ts index ba31fef..9647a0a 100644 --- a/src/BasicBehaveEngine/nodes/math/constants/Euler.ts +++ b/src/BasicBehaveEngine/nodes/math/constants/Euler.ts @@ -10,6 +10,6 @@ export class Euler extends BehaveEngineNode { override processNode(flowSocket?: string) { this.graphEngine.processNodeStarted(this); - return {'val': {id: "val", value: [Math.E], type: this.getTypeIndex('float')}} + return {'val': {id: "value", value: [Math.E], type: this.getTypeIndex('float')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/constants/Inf.ts b/src/BasicBehaveEngine/nodes/math/constants/Inf.ts index 41e3c20..4950311 100644 --- a/src/BasicBehaveEngine/nodes/math/constants/Inf.ts +++ b/src/BasicBehaveEngine/nodes/math/constants/Inf.ts @@ -10,6 +10,6 @@ export class Inf extends BehaveEngineNode { override processNode(flowSocket?: string) { this.graphEngine.processNodeStarted(this); - return {'val': {id: "val", value: [Infinity], type: this.getTypeIndex('float')}} + return {'val': {id: "value", value: [Infinity], type: this.getTypeIndex('float')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/constants/NotANumber.ts b/src/BasicBehaveEngine/nodes/math/constants/NotANumber.ts index 594cb50..d5e08da 100644 --- a/src/BasicBehaveEngine/nodes/math/constants/NotANumber.ts +++ b/src/BasicBehaveEngine/nodes/math/constants/NotANumber.ts @@ -10,6 +10,6 @@ export class NotANumber extends BehaveEngineNode { override processNode(flowSocket?: string) { this.graphEngine.processNodeStarted(this); - return {'val': {id: "val", value: [NaN], type: this.getTypeIndex('float')}} + return {'val': {id: "value", value: [NaN], type: this.getTypeIndex('float')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/constants/Pi.ts b/src/BasicBehaveEngine/nodes/math/constants/Pi.ts index 9806b6f..bfdb7de 100644 --- a/src/BasicBehaveEngine/nodes/math/constants/Pi.ts +++ b/src/BasicBehaveEngine/nodes/math/constants/Pi.ts @@ -10,6 +10,6 @@ export class Pi extends BehaveEngineNode { override processNode(flowSocket?: string) { this.graphEngine.processNodeStarted(this); - return {'val': {id: "val", value: [Math.PI], type: this.getTypeIndex('float')}} + return {'val': {id: "value", value: [Math.PI], type: this.getTypeIndex('float')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/exponential/CubeRoot.ts b/src/BasicBehaveEngine/nodes/math/exponential/CubeRoot.ts index 497aa3c..7ed1f2d 100644 --- a/src/BasicBehaveEngine/nodes/math/exponential/CubeRoot.ts +++ b/src/BasicBehaveEngine/nodes/math/exponential/CubeRoot.ts @@ -37,6 +37,6 @@ export class CubeRoot extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/exponential/Exponential.ts b/src/BasicBehaveEngine/nodes/math/exponential/Exponential.ts index 22a2689..7768fb8 100644 --- a/src/BasicBehaveEngine/nodes/math/exponential/Exponential.ts +++ b/src/BasicBehaveEngine/nodes/math/exponential/Exponential.ts @@ -37,6 +37,6 @@ export class Exponential extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndexA}} + return {'val': {id: "value", value: val, type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/exponential/Log.ts b/src/BasicBehaveEngine/nodes/math/exponential/Log.ts index b05084f..9c5cae1 100644 --- a/src/BasicBehaveEngine/nodes/math/exponential/Log.ts +++ b/src/BasicBehaveEngine/nodes/math/exponential/Log.ts @@ -37,6 +37,6 @@ export class Log extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/exponential/Log10.ts b/src/BasicBehaveEngine/nodes/math/exponential/Log10.ts index 34a966a..962ddd2 100644 --- a/src/BasicBehaveEngine/nodes/math/exponential/Log10.ts +++ b/src/BasicBehaveEngine/nodes/math/exponential/Log10.ts @@ -37,6 +37,6 @@ export class Log10 extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/exponential/Log2.ts b/src/BasicBehaveEngine/nodes/math/exponential/Log2.ts index dad1722..cfb972b 100644 --- a/src/BasicBehaveEngine/nodes/math/exponential/Log2.ts +++ b/src/BasicBehaveEngine/nodes/math/exponential/Log2.ts @@ -37,6 +37,6 @@ export class Log2 extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/exponential/Power.ts b/src/BasicBehaveEngine/nodes/math/exponential/Power.ts index b661440..963ef45 100644 --- a/src/BasicBehaveEngine/nodes/math/exponential/Power.ts +++ b/src/BasicBehaveEngine/nodes/math/exponential/Power.ts @@ -42,6 +42,6 @@ export class Power extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndexA}} + return {'val': {id: "value", value: val, type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/exponential/SquareRoot.ts b/src/BasicBehaveEngine/nodes/math/exponential/SquareRoot.ts index ac9f071..6a16ad5 100644 --- a/src/BasicBehaveEngine/nodes/math/exponential/SquareRoot.ts +++ b/src/BasicBehaveEngine/nodes/math/exponential/SquareRoot.ts @@ -37,6 +37,6 @@ export class SquareRoot extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/hyperbolic/HyperbolicCosine.ts b/src/BasicBehaveEngine/nodes/math/hyperbolic/HyperbolicCosine.ts index c596332..87a7d94 100644 --- a/src/BasicBehaveEngine/nodes/math/hyperbolic/HyperbolicCosine.ts +++ b/src/BasicBehaveEngine/nodes/math/hyperbolic/HyperbolicCosine.ts @@ -37,6 +37,6 @@ export class HyperbolicCosine extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/hyperbolic/HyperbolicSine.ts b/src/BasicBehaveEngine/nodes/math/hyperbolic/HyperbolicSine.ts index 2144ee8..1b74fc3 100644 --- a/src/BasicBehaveEngine/nodes/math/hyperbolic/HyperbolicSine.ts +++ b/src/BasicBehaveEngine/nodes/math/hyperbolic/HyperbolicSine.ts @@ -37,6 +37,6 @@ export class HyperbolicSine extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/hyperbolic/HyperbolicTangent.ts b/src/BasicBehaveEngine/nodes/math/hyperbolic/HyperbolicTangent.ts index c521afd..73d4002 100644 --- a/src/BasicBehaveEngine/nodes/math/hyperbolic/HyperbolicTangent.ts +++ b/src/BasicBehaveEngine/nodes/math/hyperbolic/HyperbolicTangent.ts @@ -37,6 +37,6 @@ export class HyperbolicTangent extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/hyperbolic/InverseHyperbolicCosine.ts b/src/BasicBehaveEngine/nodes/math/hyperbolic/InverseHyperbolicCosine.ts index a085a9f..a9f31b7 100644 --- a/src/BasicBehaveEngine/nodes/math/hyperbolic/InverseHyperbolicCosine.ts +++ b/src/BasicBehaveEngine/nodes/math/hyperbolic/InverseHyperbolicCosine.ts @@ -37,6 +37,6 @@ export class InverseHyperbolicCosine extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/hyperbolic/InverseHyperbolicSine.ts b/src/BasicBehaveEngine/nodes/math/hyperbolic/InverseHyperbolicSine.ts index 705eb23..9906f70 100644 --- a/src/BasicBehaveEngine/nodes/math/hyperbolic/InverseHyperbolicSine.ts +++ b/src/BasicBehaveEngine/nodes/math/hyperbolic/InverseHyperbolicSine.ts @@ -37,6 +37,6 @@ export class InverseHyperbolicSine extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/hyperbolic/InverseHyperbolicTangent.ts b/src/BasicBehaveEngine/nodes/math/hyperbolic/InverseHyperbolicTangent.ts index 6fa049a..6dbe58e 100644 --- a/src/BasicBehaveEngine/nodes/math/hyperbolic/InverseHyperbolicTangent.ts +++ b/src/BasicBehaveEngine/nodes/math/hyperbolic/InverseHyperbolicTangent.ts @@ -37,6 +37,6 @@ export class InverseHyperbolicTangent extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/matrix/Determinant.ts b/src/BasicBehaveEngine/nodes/math/matrix/Determinant.ts index 299c0d9..ed53283 100644 --- a/src/BasicBehaveEngine/nodes/math/matrix/Determinant.ts +++ b/src/BasicBehaveEngine/nodes/math/matrix/Determinant.ts @@ -36,6 +36,6 @@ export class Determinant extends BehaveEngineNode { a[1][2] * (a[2][0] * a[3][1] - a[2][1] * a[3][0]) ); - return {'val': {id: "val", value: [val], type: this.getTypeIndex('float')}} + return {'val': {id: "value", value: [val], type: this.getTypeIndex('float')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/matrix/Inverse.ts b/src/BasicBehaveEngine/nodes/math/matrix/Inverse.ts index 173fff1..bcf4016 100644 --- a/src/BasicBehaveEngine/nodes/math/matrix/Inverse.ts +++ b/src/BasicBehaveEngine/nodes/math/matrix/Inverse.ts @@ -72,6 +72,6 @@ export class Inverse extends BehaveEngineNode { throw Error("Invalid type") } - return {id: "val", value: val, type: typeIndex} + return {id: "value", value: val, type: typeIndex} } } diff --git a/src/BasicBehaveEngine/nodes/math/matrix/MatMul.ts b/src/BasicBehaveEngine/nodes/math/matrix/MatMul.ts index 27a7846..fc06aa2 100644 --- a/src/BasicBehaveEngine/nodes/math/matrix/MatMul.ts +++ b/src/BasicBehaveEngine/nodes/math/matrix/MatMul.ts @@ -30,6 +30,6 @@ export class MatMul extends BehaveEngineNode { ) ); - return {'val': {id: "val", value: val, type: typeIndexA}} + return {'val': {id: "value", value: val, type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/matrix/Transpose.ts b/src/BasicBehaveEngine/nodes/math/matrix/Transpose.ts index 949b50a..79793c8 100644 --- a/src/BasicBehaveEngine/nodes/math/matrix/Transpose.ts +++ b/src/BasicBehaveEngine/nodes/math/matrix/Transpose.ts @@ -31,6 +31,6 @@ export class Transpose extends BehaveEngineNode { } } - return {'val': {id: "val", value: val, type: typeIndexA}} + return {'val': {id: "value", value: val, type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/special/IsInfNode.ts b/src/BasicBehaveEngine/nodes/math/special/IsInfNode.ts index 206ab08..57793be 100644 --- a/src/BasicBehaveEngine/nodes/math/special/IsInfNode.ts +++ b/src/BasicBehaveEngine/nodes/math/special/IsInfNode.ts @@ -25,6 +25,6 @@ export class IsInfNode extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: [val], type: this.getTypeIndex('bool')}} + return {'val': {id: "value", value: [val], type: this.getTypeIndex('bool')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/special/IsNaNNode.ts b/src/BasicBehaveEngine/nodes/math/special/IsNaNNode.ts index f52211d..cfcc671 100644 --- a/src/BasicBehaveEngine/nodes/math/special/IsNaNNode.ts +++ b/src/BasicBehaveEngine/nodes/math/special/IsNaNNode.ts @@ -25,6 +25,6 @@ export class IsNaNNode extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: [val], type: this.getTypeIndex('bool')}} + return {'val': {id: "value", value: [val], type: this.getTypeIndex('bool')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/special/Select.ts b/src/BasicBehaveEngine/nodes/math/special/Select.ts index f85ce79..8a04dfe 100644 --- a/src/BasicBehaveEngine/nodes/math/special/Select.ts +++ b/src/BasicBehaveEngine/nodes/math/special/Select.ts @@ -29,6 +29,6 @@ export class Select extends BehaveEngineNode { val = [val] } - return {'val': {id: "val", value: val, type: typeIndexA}}; + return {'val': {id: "value", value: val, type: typeIndexA}}; } } diff --git a/src/BasicBehaveEngine/nodes/math/trigonometry/Arccosine.ts b/src/BasicBehaveEngine/nodes/math/trigonometry/Arccosine.ts index 4d1842d..83765aa 100644 --- a/src/BasicBehaveEngine/nodes/math/trigonometry/Arccosine.ts +++ b/src/BasicBehaveEngine/nodes/math/trigonometry/Arccosine.ts @@ -37,6 +37,6 @@ export class Arccosine extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/trigonometry/Arcsine.ts b/src/BasicBehaveEngine/nodes/math/trigonometry/Arcsine.ts index 057db11..d4ec733 100644 --- a/src/BasicBehaveEngine/nodes/math/trigonometry/Arcsine.ts +++ b/src/BasicBehaveEngine/nodes/math/trigonometry/Arcsine.ts @@ -37,6 +37,6 @@ export class Arcsine extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/trigonometry/Arctangent.ts b/src/BasicBehaveEngine/nodes/math/trigonometry/Arctangent.ts index 986d032..e459444 100644 --- a/src/BasicBehaveEngine/nodes/math/trigonometry/Arctangent.ts +++ b/src/BasicBehaveEngine/nodes/math/trigonometry/Arctangent.ts @@ -37,6 +37,6 @@ export class Arctangent extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/trigonometry/Arctangent2.ts b/src/BasicBehaveEngine/nodes/math/trigonometry/Arctangent2.ts index 4a4d736..6b45039 100644 --- a/src/BasicBehaveEngine/nodes/math/trigonometry/Arctangent2.ts +++ b/src/BasicBehaveEngine/nodes/math/trigonometry/Arctangent2.ts @@ -42,6 +42,6 @@ export class Arctangent2 extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeAIndex}} + return {'val': {id: "value", value: val, type: typeAIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/trigonometry/Cosine.ts b/src/BasicBehaveEngine/nodes/math/trigonometry/Cosine.ts index 4a431e3..c74d5e6 100644 --- a/src/BasicBehaveEngine/nodes/math/trigonometry/Cosine.ts +++ b/src/BasicBehaveEngine/nodes/math/trigonometry/Cosine.ts @@ -37,6 +37,6 @@ export class Cosine extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/trigonometry/DegreeToRadians.ts b/src/BasicBehaveEngine/nodes/math/trigonometry/DegreeToRadians.ts index f3db9d7..2885f71 100644 --- a/src/BasicBehaveEngine/nodes/math/trigonometry/DegreeToRadians.ts +++ b/src/BasicBehaveEngine/nodes/math/trigonometry/DegreeToRadians.ts @@ -37,6 +37,6 @@ export class DegreeToRadians extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/trigonometry/RadiansToDegrees.ts b/src/BasicBehaveEngine/nodes/math/trigonometry/RadiansToDegrees.ts index 2d328ab..3565e3f 100644 --- a/src/BasicBehaveEngine/nodes/math/trigonometry/RadiansToDegrees.ts +++ b/src/BasicBehaveEngine/nodes/math/trigonometry/RadiansToDegrees.ts @@ -37,6 +37,6 @@ export class RadiansToDegrees extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/trigonometry/Sine.ts b/src/BasicBehaveEngine/nodes/math/trigonometry/Sine.ts index 18eca0e..0013d80 100644 --- a/src/BasicBehaveEngine/nodes/math/trigonometry/Sine.ts +++ b/src/BasicBehaveEngine/nodes/math/trigonometry/Sine.ts @@ -37,6 +37,6 @@ export class Sine extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/trigonometry/Tangent.ts b/src/BasicBehaveEngine/nodes/math/trigonometry/Tangent.ts index 9156b25..7c0a59d 100644 --- a/src/BasicBehaveEngine/nodes/math/trigonometry/Tangent.ts +++ b/src/BasicBehaveEngine/nodes/math/trigonometry/Tangent.ts @@ -37,6 +37,6 @@ export class Tangent extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/typeConversion/BoolToFloat.ts b/src/BasicBehaveEngine/nodes/math/typeConversion/BoolToFloat.ts index 8d9bfbe..8530b6a 100644 --- a/src/BasicBehaveEngine/nodes/math/typeConversion/BoolToFloat.ts +++ b/src/BasicBehaveEngine/nodes/math/typeConversion/BoolToFloat.ts @@ -22,6 +22,6 @@ export class BoolToFloat extends BehaveEngineNode { const val = +JSON.parse(a); - return {'val': {id: "val", value: [val], type: this.getTypeIndex('float')}} + return {'val': {id: "value", value: [val], type: this.getTypeIndex('float')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/typeConversion/BoolToInt.ts b/src/BasicBehaveEngine/nodes/math/typeConversion/BoolToInt.ts index 9c7422e..2e677e6 100644 --- a/src/BasicBehaveEngine/nodes/math/typeConversion/BoolToInt.ts +++ b/src/BasicBehaveEngine/nodes/math/typeConversion/BoolToInt.ts @@ -22,6 +22,6 @@ export class BoolToInt extends BehaveEngineNode { const val = JSON.parse(a) | 0; - return {'val': {id: "val", value: [val], type: this.getTypeIndex('int')}} + return {'val': {id: "value", value: [val], type: this.getTypeIndex('int')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/typeConversion/FloatToBool.ts b/src/BasicBehaveEngine/nodes/math/typeConversion/FloatToBool.ts index 53fd217..75e3d17 100644 --- a/src/BasicBehaveEngine/nodes/math/typeConversion/FloatToBool.ts +++ b/src/BasicBehaveEngine/nodes/math/typeConversion/FloatToBool.ts @@ -22,6 +22,6 @@ export class FloatToBool extends BehaveEngineNode { const val = !!a; - return {'val': {id: "val", value: [val], type: this.getTypeIndex('bool')}} + return {'val': {id: "value", value: [val], type: this.getTypeIndex('bool')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/typeConversion/FloatToInt.ts b/src/BasicBehaveEngine/nodes/math/typeConversion/FloatToInt.ts index f93497d..1700dd0 100644 --- a/src/BasicBehaveEngine/nodes/math/typeConversion/FloatToInt.ts +++ b/src/BasicBehaveEngine/nodes/math/typeConversion/FloatToInt.ts @@ -22,6 +22,6 @@ export class FloatToInt extends BehaveEngineNode { const val: number = a|0; - return {'val': {id: "val", value: [val], type: this.getTypeIndex('int')}} + return {'val': {id: "value", value: [val], type: this.getTypeIndex('int')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/typeConversion/IntToBool.ts b/src/BasicBehaveEngine/nodes/math/typeConversion/IntToBool.ts index bf75a62..01575ae 100644 --- a/src/BasicBehaveEngine/nodes/math/typeConversion/IntToBool.ts +++ b/src/BasicBehaveEngine/nodes/math/typeConversion/IntToBool.ts @@ -22,6 +22,6 @@ export class IntToBool extends BehaveEngineNode { const val = !!a; - return {'val': {id: "val", value: [val], type: this.getTypeIndex('bool')}} + return {'val': {id: "value", value: [val], type: this.getTypeIndex('bool')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/typeConversion/IntToFloat.ts b/src/BasicBehaveEngine/nodes/math/typeConversion/IntToFloat.ts index b95e90c..3a1d301 100644 --- a/src/BasicBehaveEngine/nodes/math/typeConversion/IntToFloat.ts +++ b/src/BasicBehaveEngine/nodes/math/typeConversion/IntToFloat.ts @@ -22,6 +22,6 @@ export class IntToFloat extends BehaveEngineNode { const val = a; - return {'val': {id: "val", value: [val], type: this.getTypeIndex('float')}} + return {'val': {id: "value", value: [val], type: this.getTypeIndex('float')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/vector/Cross.ts b/src/BasicBehaveEngine/nodes/math/vector/Cross.ts index 81cc23c..af2a4c8 100644 --- a/src/BasicBehaveEngine/nodes/math/vector/Cross.ts +++ b/src/BasicBehaveEngine/nodes/math/vector/Cross.ts @@ -33,6 +33,6 @@ export class Cross extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndexA}} + return {'val': {id: "value", value: val, type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/vector/Dot.ts b/src/BasicBehaveEngine/nodes/math/vector/Dot.ts index e6335d7..53ea383 100644 --- a/src/BasicBehaveEngine/nodes/math/vector/Dot.ts +++ b/src/BasicBehaveEngine/nodes/math/vector/Dot.ts @@ -32,6 +32,6 @@ export class Dot extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: [val], type: this.getTypeIndex('float')}} + return {'val': {id: "value", value: [val], type: this.getTypeIndex('float')}} } } diff --git a/src/BasicBehaveEngine/nodes/math/vector/Normalize.ts b/src/BasicBehaveEngine/nodes/math/vector/Normalize.ts index 65b4226..b0ad71b 100644 --- a/src/BasicBehaveEngine/nodes/math/vector/Normalize.ts +++ b/src/BasicBehaveEngine/nodes/math/vector/Normalize.ts @@ -38,6 +38,6 @@ export class Normalize extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndex}} + return {'val': {id: "value", value: val, type: typeIndex}} } } diff --git a/src/BasicBehaveEngine/nodes/math/vector/Rotate2D.ts b/src/BasicBehaveEngine/nodes/math/vector/Rotate2D.ts index 03d2ef6..767a138 100644 --- a/src/BasicBehaveEngine/nodes/math/vector/Rotate2D.ts +++ b/src/BasicBehaveEngine/nodes/math/vector/Rotate2D.ts @@ -45,6 +45,6 @@ export class Rotate2D extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndexA}} + return {'val': {id: "value", value: val, type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/vector/Rotate3D.ts b/src/BasicBehaveEngine/nodes/math/vector/Rotate3D.ts index 9c77ba9..216ae87 100644 --- a/src/BasicBehaveEngine/nodes/math/vector/Rotate3D.ts +++ b/src/BasicBehaveEngine/nodes/math/vector/Rotate3D.ts @@ -60,6 +60,6 @@ export class Rotate3D extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: val, type: typeIndexA}} + return {'val': {id: "value", value: val, type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/vector/Transform.ts b/src/BasicBehaveEngine/nodes/math/vector/Transform.ts index a607bc4..b12af6a 100644 --- a/src/BasicBehaveEngine/nodes/math/vector/Transform.ts +++ b/src/BasicBehaveEngine/nodes/math/vector/Transform.ts @@ -33,6 +33,6 @@ export class Transform extends BehaveEngineNode { val.push(sum); } - return {'val': {id: "val", value: val, type: typeIndexA}} + return {'val': {id: "value", value: val, type: typeIndexA}} } } diff --git a/src/BasicBehaveEngine/nodes/math/vector/VectorLength.ts b/src/BasicBehaveEngine/nodes/math/vector/VectorLength.ts index dc63fc9..581b678 100644 --- a/src/BasicBehaveEngine/nodes/math/vector/VectorLength.ts +++ b/src/BasicBehaveEngine/nodes/math/vector/VectorLength.ts @@ -27,6 +27,6 @@ export class VectorLength extends BehaveEngineNode { throw Error("Invalid type") } - return {'val': {id: "val", value: [val], type: this.getTypeIndex('float')}} + return {'val': {id: "value", value: [val], type: this.getTypeIndex('float')}} } } diff --git a/src/authoring/AuthoringNodeSpecs.ts b/src/authoring/AuthoringNodeSpecs.ts index 1262abc..84b0d17 100644 --- a/src/authoring/AuthoringNodeSpecs.ts +++ b/src/authoring/AuthoringNodeSpecs.ts @@ -235,7 +235,7 @@ export const pointerNodeSpecs: IAuthoringNode[] = [ types: ["float"] }, { - id: "val", + id: "value", types: [ "int", "float", @@ -424,7 +424,7 @@ export const pointerNodeSpecs: IAuthoringNode[] = [ ], values: [ { - id: "val", + id: "value", description: "True if >= else false", types: [ "bool" @@ -456,7 +456,7 @@ export const typeConversionNodeSpecs: IAuthoringNode[] = [ flows: [], values: [ { - id: "val", + id: "value", description: "1 if a; else 0", types: [ "int" @@ -485,7 +485,7 @@ export const typeConversionNodeSpecs: IAuthoringNode[] = [ flows: [], values: [ { - id: "val", + id: "value", description: "1 if a; else 0", types: [ "float" @@ -514,7 +514,7 @@ export const typeConversionNodeSpecs: IAuthoringNode[] = [ flows: [], values: [ { - id: "val", + id: "value", description: "True if a is not 0; else false", types: [ "bool" @@ -543,7 +543,7 @@ export const typeConversionNodeSpecs: IAuthoringNode[] = [ flows: [], values: [ { - id: "val", + id: "value", description: "Floating point value equal to a", types: [ "float" @@ -572,7 +572,7 @@ export const typeConversionNodeSpecs: IAuthoringNode[] = [ flows: [], values: [ { - id: "val", + id: "value", description: "False if a is NaN or zero, else true", types: [ "bool" @@ -601,7 +601,7 @@ export const typeConversionNodeSpecs: IAuthoringNode[] = [ flows: [], values: [ { - id: "val", + id: "value", description: "Integer point value equal to a", types: [ "int" @@ -677,7 +677,7 @@ export const experimentalNodeSpecs: IAuthoringNode[] = [ flows: [], values: [ { - id: "val", + id: "value", description: "Random float", types: ["float"] } @@ -1463,7 +1463,7 @@ export const constantsNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "Euler's Number", types: ["float"] } @@ -1482,7 +1482,7 @@ export const constantsNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "Infinity", types: ["float"] } @@ -1501,7 +1501,7 @@ export const constantsNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "Ratio of a circle’s circumference to its diameter", types: ["float"] } @@ -1520,7 +1520,7 @@ export const constantsNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "Not a number", types: ["float"] } @@ -1561,7 +1561,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "cast", types: [ "float", @@ -1595,7 +1595,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "if a > 0 then -a, else a", types: [ "int", @@ -1630,7 +1630,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "if a > 0 then -1, else 1", types: [ "int", @@ -1664,7 +1664,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "Integer value equal to the nearest integer to a whose absolute value is not larger than the absolute value of a", types: [ "float", @@ -1697,7 +1697,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "Value equal to the nearest integer that is less than or equal to a", types: [ "float", @@ -1730,7 +1730,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "Value equal to the nearest integer that is greater than or equal to a", types: [ "float", @@ -1763,7 +1763,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "a - floor(a)", types: [ "float", @@ -1797,7 +1797,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "-a", types: [ "int", @@ -1842,7 +1842,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "a + b", types: [ "int", @@ -1887,7 +1887,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "a - b", types: [ "int", @@ -1932,7 +1932,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "a * b", types: [ "int", @@ -1977,7 +1977,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "a / b", types: [ "int", @@ -2022,7 +2022,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "remainder of a / b", types: [ "int", @@ -2067,7 +2067,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "smallest of a and b", types: [ "int", @@ -2112,7 +2112,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "largest of a and b", types: [ "int", @@ -2167,7 +2167,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "min(max(a,b),c)", types: [ "int", @@ -2201,7 +2201,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "clamp(a,0,1)", types: [ "float", @@ -2252,7 +2252,7 @@ export const arithmeticNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "(1.0 - c) * a + c * b", types: [ "float", @@ -2288,7 +2288,7 @@ export const trigNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "a * pi / 180", types: [ "float", @@ -2321,7 +2321,7 @@ export const trigNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "a * 180 / pi", types: [ "float", @@ -2354,7 +2354,7 @@ export const trigNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "sin(a)", types: [ "float", @@ -2387,7 +2387,7 @@ export const trigNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "cos(a)", types: [ "float", @@ -2420,7 +2420,7 @@ export const trigNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "tan(a)", types: [ "float", @@ -2453,7 +2453,7 @@ export const trigNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "arcsin(a)", types: [ "float", @@ -2486,7 +2486,7 @@ export const trigNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "Arccos(a)", types: [ "float", @@ -2519,7 +2519,7 @@ export const trigNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "atan(a)", types: [ "float", @@ -2552,7 +2552,7 @@ export const trigNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "atan2(a)", types: [ "float", @@ -2593,7 +2593,7 @@ export const combine = [ flows: [], values: [ { - id: "val", + id: "value", description: "vector 2", types: [ "float2" @@ -2636,7 +2636,7 @@ export const combine = [ flows: [], values: [ { - id: "val", + id: "value", description: "vector 3", types: [ "float3" @@ -2686,7 +2686,7 @@ export const combine = [ flows: [], values: [ { - id: "val", + id: "value", description: "vector 4", types: [ "float4" @@ -2820,7 +2820,7 @@ export const combine = [ flows: [], values: [ { - id: "val", + id: "value", description: "matrix", types: [ "float4x4" @@ -3120,7 +3120,7 @@ export const hyperbolicNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "sinh(a)", types: [ "float", @@ -3153,7 +3153,7 @@ export const hyperbolicNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "cosh(a)", types: [ "float", @@ -3186,7 +3186,7 @@ export const hyperbolicNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "tanh(a)", types: [ "float", @@ -3219,7 +3219,7 @@ export const hyperbolicNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "arcsinh(a)", types: [ "float", @@ -3252,7 +3252,7 @@ export const hyperbolicNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "Arccosh(a)", types: [ "float", @@ -3285,7 +3285,7 @@ export const hyperbolicNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "atanh(a)", types: [ "float", @@ -3330,7 +3330,7 @@ export const exponentialFunctionNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "b^a", types: [ "float", @@ -3363,7 +3363,7 @@ export const exponentialFunctionNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "e^a", types: [ "float", @@ -3396,7 +3396,7 @@ export const exponentialFunctionNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "ln(a)", types: [ "float", @@ -3429,7 +3429,7 @@ export const exponentialFunctionNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "log_2(a)", types: [ "float", @@ -3462,7 +3462,7 @@ export const exponentialFunctionNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "log_10(a)", types: [ "float", @@ -3495,7 +3495,7 @@ export const exponentialFunctionNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "a root 2", types: [ "float", @@ -3528,7 +3528,7 @@ export const exponentialFunctionNodes = [ flows: [], values: [ { - id: "val", + id: "value", description: "a root 3", types: [ "float", @@ -3563,7 +3563,7 @@ export const vectorNodes: IAuthoringNode[] = [ flows: [], values: [ { - id: "val", + id: "value", description: "Length of the vector", types: [ "float" @@ -3599,7 +3599,7 @@ export const vectorNodes: IAuthoringNode[] = [ flows: [], values: [ { - id: "val", + id: "value", description: "Transformed vector", types: [ "float4" @@ -3629,7 +3629,7 @@ export const vectorNodes: IAuthoringNode[] = [ flows: [], values: [ { - id: "val", + id: "value", description: "Normalized Vector", types: [ "float3" @@ -3666,7 +3666,7 @@ export const vectorNodes: IAuthoringNode[] = [ flows: [], values: [ { - id: "val", + id: "value", description: "Dot product", types: [ "float" @@ -3702,7 +3702,7 @@ export const vectorNodes: IAuthoringNode[] = [ flows: [], values: [ { - id: "val", + id: "value", description: "Cross product", types: [ "float3" @@ -3738,7 +3738,7 @@ export const vectorNodes: IAuthoringNode[] = [ flows: [], values: [ { - id: "val", + id: "value", description: "Rotated vector", types: [ "float2" @@ -3781,7 +3781,7 @@ export const vectorNodes: IAuthoringNode[] = [ flows: [], values: [ { - id: "val", + id: "value", description: "Rotated vector", types: [ "float3" @@ -3813,7 +3813,7 @@ export const matrixNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "Matrix that is the transpose of a", types: [ "float4x4" @@ -3842,7 +3842,7 @@ export const matrixNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "Output Matrix", types: [ "float4x4" @@ -3871,7 +3871,7 @@ export const matrixNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "Determinant of a", types: [ "float" @@ -3900,7 +3900,7 @@ export const matrixNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "Inverse of a", types: [ "float4x4" @@ -3932,7 +3932,7 @@ export const specialFloatingPointNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "True if NaN else false", types: [ "bool" @@ -3961,7 +3961,7 @@ export const specialFloatingPointNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "True if a is +/- Inf, else false", types: [ "bool" @@ -4018,7 +4018,7 @@ export const specialFloatingPointNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "a if true, b if false", types: [ "bool", @@ -4072,7 +4072,7 @@ export const comparisonNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "True if equal else false", types: [ "bool" @@ -4110,7 +4110,7 @@ export const comparisonNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "True if < else false", types: [ "bool" @@ -4148,7 +4148,7 @@ export const comparisonNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "True if <= else false", types: [ "bool" @@ -4186,7 +4186,7 @@ export const comparisonNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "True if > else false", types: [ "bool" @@ -4224,7 +4224,7 @@ export const comparisonNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "True if >= else false", types: [ "bool" @@ -4257,7 +4257,7 @@ export const bitwiseNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "NOT a", types: [ "bool", @@ -4296,7 +4296,7 @@ export const bitwiseNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "a AND b", types: [ "bool", @@ -4335,7 +4335,7 @@ export const bitwiseNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "a OR b", types: [ "bool", @@ -4374,7 +4374,7 @@ export const bitwiseNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "a XOR b", types: [ "bool", @@ -4411,7 +4411,7 @@ export const bitwiseNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "a >> b", types: [ "int" @@ -4447,7 +4447,7 @@ export const bitwiseNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "a << b", types: [ "int" @@ -4476,7 +4476,7 @@ export const bitwiseNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "number of leading zero bits", types: [ "int" @@ -4505,7 +4505,7 @@ export const bitwiseNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "Number of trailing zero bits", types: [ "int" @@ -4534,7 +4534,7 @@ export const bitwiseNodeSpecs = [ flows: [], values: [ { - id: "val", + id: "value", description: "number of set bits", types: [ "int" diff --git a/tst/BehaveEngine.test.ts b/tst/BehaveEngine.test.ts index 75539f4..37cf7de 100644 --- a/tst/BehaveEngine.test.ts +++ b/tst/BehaveEngine.test.ts @@ -190,7 +190,7 @@ describe('BehaveEngine', () => { "type": "pointer/set", "values": [ { - "id": "val", + "id": "value", "value": [1.57,0,0,1], "type": 5 } @@ -217,7 +217,7 @@ describe('BehaveEngine', () => { "type": "pointer/set", "values": [ { - "id": "val", + "id": "value", "value": [10,20,30], "type": 4 } @@ -244,7 +244,7 @@ describe('BehaveEngine', () => { "type": "pointer/set", "values": [ { - "id": "val", + "id": "value", "value": [4,5,6], "type": 4 } @@ -288,7 +288,7 @@ describe('BehaveEngine', () => { { "id": "float3ToLog", "node": 5, - "socket": "val" + "socket": "value" } ], "configuration": [ @@ -324,7 +324,7 @@ describe('BehaveEngine', () => { { "id": "float3ToLog", "node": 7, - "socket": "val" + "socket": "value" } ], "configuration": [ @@ -360,7 +360,7 @@ describe('BehaveEngine', () => { { "id": "float3ToLog", "node": 9, - "socket": "val" + "socket": "value" } ], "configuration": [ @@ -581,7 +581,7 @@ describe('BehaveEngine', () => { { "id": "a", "node": 1, - "socket": "val" + "socket": "value" } ], "configuration": [], @@ -598,7 +598,7 @@ describe('BehaveEngine', () => { { "id": "a", "node": 2, - "socket": "val" + "socket": "value" } ], "configuration": [], @@ -610,7 +610,7 @@ describe('BehaveEngine', () => { { "id": "outFloat", "node": 3, - "socket": "val" + "socket": "value" } ], "configuration": [ @@ -701,7 +701,7 @@ describe('BehaveEngine', () => { "type": "pointer/animateTo", "values": [ { - "id": "val", + "id": "value", "value": [5,5,5], "type": 4 }, @@ -733,7 +733,7 @@ describe('BehaveEngine', () => { "type": "pointer/set", "values": [ { - "id": "val", + "id": "value", "value": [1,1,1], "type": 4 } @@ -774,7 +774,7 @@ describe('BehaveEngine', () => { { "id": "a", "node": 4, - "socket": "val" + "socket": "value" } ], "configuration": [], @@ -789,9 +789,9 @@ describe('BehaveEngine', () => { "type": 1 }, { - "id": "val", + "id": "value", "node": 5, - "socket": "val" + "socket": "value" }, { "id": "easingDuration", @@ -908,7 +908,7 @@ describe('BehaveEngine', () => { { "id": "a", "node": 2, - "socket": "val" + "socket": "value" } ], "configuration": [], @@ -918,9 +918,9 @@ describe('BehaveEngine', () => { "type": "pointer/set", "values": [ { - "id": "val", + "id": "value", "node": 3, - "socket": "val" + "socket": "value" } ], "configuration": [ @@ -994,7 +994,7 @@ describe('BehaveEngine', () => { "type": "pointer/set", "values": [ { - "id": "val", + "id": "value", "node": 0, "socket": "scaleVector" } @@ -1166,7 +1166,7 @@ describe('BehaveEngine', () => { { "id": "cum", "node": 2, - "socket": "val" + "socket": "value" } ], "configuration": [ @@ -1321,7 +1321,7 @@ describe('BehaveEngine', () => { { "id": "a", "node": 0, - "socket": "val" + "socket": "value" } ], "configuration": [], @@ -1353,7 +1353,7 @@ describe('BehaveEngine', () => { { "id": "condition", "node": 1, - "socket": "val" + "socket": "value" } ], "configuration": [], @@ -1378,7 +1378,7 @@ describe('BehaveEngine', () => { "type": "pointer/set", "values": [ { - "id": "val", + "id": "value", "value": [ 5, 6, @@ -1429,7 +1429,7 @@ describe('BehaveEngine', () => { { "id": "a", "node": 5, - "socket": "val" + "socket": "value" } ], "configuration": [], @@ -1443,9 +1443,9 @@ describe('BehaveEngine', () => { "type": "pointer/set", "values": [ { - "id": "val", + "id": "value", "node": 6, - "socket": "val" + "socket": "value" } ], "configuration": [ diff --git a/tst/authoring.test.ts b/tst/authoring.test.ts index 6a4b907..7005bde 100644 --- a/tst/authoring.test.ts +++ b/tst/authoring.test.ts @@ -31,7 +31,7 @@ describe("authoring", () => { "type": 1 }, { - "id": "val", + "id": "value", "value": [1,2,3], "type": 3 }