Skip to content

Commit

Permalink
rename keys as well, otherwise access doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Nov 20, 2024
1 parent 837ee17 commit 166e011
Show file tree
Hide file tree
Showing 81 changed files with 81 additions and 81 deletions.
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/experimental/Random.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export class Random extends BehaveEngineNode {
override processNode(flowSocket?: string) {
this.graphEngine.processNodeStarted(this);

return {'val': {id: "value", value: [Math.random()], type: this.getTypeIndex('float')}}
return {'value': {id: "value", value: [Math.random()], type: this.getTypeIndex('float')}}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ export class AbsoluteValue extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndex}}
return {'value': {id: "value", value: val, type: typeIndex}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/arithmetic/Add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ export class Add extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndexA}};
return {'value': {id: "value", value: val, type: typeIndexA}};
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/arithmetic/Ceil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export class Ceil extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndex}}
return {'value': {id: "value", value: val, type: typeIndex}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/arithmetic/Clamp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ export class Clamp extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndexA}}
return {'value': {id: "value", value: val, type: typeIndexA}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/arithmetic/Divide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ export class Divide extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndexA}}
return {'value': {id: "value", value: val, type: typeIndexA}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/arithmetic/Floor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export class Floor extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndex}}
return {'value': {id: "value", value: val, type: typeIndex}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/arithmetic/Fraction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export class Fraction extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndex}}
return {'value': {id: "value", value: val, type: typeIndex}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/arithmetic/Interpolate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ export class Interpolate extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndexA}}
return {'value': {id: "value", value: val, type: typeIndexA}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/arithmetic/Max.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ export class Max extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndexA}}
return {'value': {id: "value", value: val, type: typeIndexA}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/arithmetic/Min.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ export class Min extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndexA}}
return {'value': {id: "value", value: val, type: typeIndexA}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/arithmetic/Multiply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ export class Multiply extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndexA}}
return {'value': {id: "value", value: val, type: typeIndexA}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/arithmetic/Negate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ export class Negate extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndex}}
return {'value': {id: "value", value: val, type: typeIndex}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/arithmetic/Remainder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ export class Remainder extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndexA}}
return {'value': {id: "value", value: val, type: typeIndexA}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/arithmetic/Saturate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export class Saturate extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndex}}
return {'value': {id: "value", value: val, type: typeIndex}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/arithmetic/Sign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ export class Sign extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndex}}
return {'value': {id: "value", value: val, type: typeIndex}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/arithmetic/Subtract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ export class Subtract extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndexA}}
return {'value': {id: "value", value: val, type: typeIndexA}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/arithmetic/Truncate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ export class Truncate extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndex}}
return {'value': {id: "value", value: val, type: typeIndex}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/bitwise/And.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ export class And extends BehaveEngineNode {
default:
throw Error("Invalid type")
}
return {'val': {id: "value", value: [val], type: typeIndexA}}
return {'value': {id: "value", value: [val], type: typeIndexA}}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ export class CountLeadingZeros extends BehaveEngineNode {
throw Error("invalid input type")
}
let val = Math.clz32(a);
return {'val': {id: "value", value: [val], type: this.getTypeIndex('int')}}
return {'value': {id: "value", value: [val], type: this.getTypeIndex('int')}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/bitwise/CountOneBits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export class CountOneBits extends BehaveEngineNode {
count++;
}

return {'val': {id: "value", value: [count], type: this.getTypeIndex('int')}}
return {'value': {id: "value", value: [count], type: this.getTypeIndex('int')}}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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: "value", value: [val], type: this.getTypeIndex('int')}}
return {'value': {id: "value", value: [val], type: this.getTypeIndex('int')}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/bitwise/LeftShift.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export class LeftShift extends BehaveEngineNode {
throw Error("invalid input type")
}
let val = a << b;
return {'val': {id: "value", value: [val], type: this.getTypeIndex('int')}};
return {'value': {id: "value", value: [val], type: this.getTypeIndex('int')}};
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/bitwise/Not.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export class Not extends BehaveEngineNode {
default:
throw Error("Invalid type")
}
return {'val': {id: "value", value: [val], type: typeIndexA}}
return {'value': {id: "value", value: [val], type: typeIndexA}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/bitwise/Or.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ export class Or extends BehaveEngineNode {
default:
throw Error("Invalid type")
}
return {'val': {id: "value", value: [val], type: typeIndexA}}
return {'value': {id: "value", value: [val], type: typeIndexA}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/bitwise/RightShift.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export class RightShift extends BehaveEngineNode {
throw Error("invalid input type")
}
let val = a >> b;
return {'val': {id: "value", value: [val], type: this.getTypeIndex('int')}}
return {'value': {id: "value", value: [val], type: this.getTypeIndex('int')}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/bitwise/Xor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ export class Xor extends BehaveEngineNode {
default:
throw Error("Invalid type")
}
return {'val': {id: "value", value: [val], type: typeIndexA}}
return {'value': {id: "value", value: [val], type: typeIndexA}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/combine/Combine2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export class Combine2 extends BehaveEngineNode {
throw Error("invalid input types")
}

return {'val': {id: "value", value: [a, b], type: this.getTypeIndex("float2")}};
return {'value': {id: "value", value: [a, b], type: this.getTypeIndex("float2")}};
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/combine/Combine3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ export class Combine3 extends BehaveEngineNode {
throw Error("invalid input types")
}

return {'val': {id: "value", value: [a, b, c], type: this.getTypeIndex("float3")}};
return {'value': {id: "value", value: [a, b, c], type: this.getTypeIndex("float3")}};
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/combine/Combine4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export class Combine4 extends BehaveEngineNode {
throw Error("invalid input types")
}

return {'val': {id: "value", value: [a, b, c, d], type: this.getTypeIndex("float4")}};
return {'value': {id: "value", value: [a, b, c, d], type: this.getTypeIndex("float4")}};
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/combine/Combine4x4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export class Combine4x4 extends BehaveEngineNode {
}
}

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")}};
return {'value': {id: "value", value: [[a, b, c, d], [e, f, g, h], [i, j, k, l], [m, n, o, p]], type: this.getTypeIndex("float4x4")}};
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/comparison/Equality.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ export class Equality extends BehaveEngineNode {
default:
throw Error("Invalid type")
}
return {'val': {id: "value", value: [val], type: this.getTypeIndex('bool')}};
return {'value': {id: "value", value: [val], type: this.getTypeIndex('bool')}};
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/comparison/GreaterThan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ export class GreaterThan extends BehaveEngineNode {
default:
throw Error("Invalid type")
}
return {'val': {id: "value", value: [val], type: this.getTypeIndex('bool')}};
return {'value': {id: "value", value: [val], type: this.getTypeIndex('bool')}};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ export class GreaterThanOrEqualTo extends BehaveEngineNode {
default:
throw Error("Invalid type")
}
return {'val': {id: "value", value: [val], type: this.getTypeIndex('bool')}};
return {'value': {id: "value", value: [val], type: this.getTypeIndex('bool')}};
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/comparison/LessThan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ export class LessThan extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: [val], type: this.getTypeIndex('bool')}};
return {'value': {id: "value", value: [val], type: this.getTypeIndex('bool')}};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ export class LessThanOrEqualTo extends BehaveEngineNode {
default:
throw Error("Invalid type")
}
return {'val': {id: "value", value: [val], type: this.getTypeIndex('bool')}};
return {'value': {id: "value", value: [val], type: this.getTypeIndex('bool')}};
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/constants/Euler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export class Euler extends BehaveEngineNode {
override processNode(flowSocket?: string) {
this.graphEngine.processNodeStarted(this);

return {'val': {id: "value", value: [Math.E], type: this.getTypeIndex('float')}}
return {'value': {id: "value", value: [Math.E], type: this.getTypeIndex('float')}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/constants/Inf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export class Inf extends BehaveEngineNode {
override processNode(flowSocket?: string) {
this.graphEngine.processNodeStarted(this);

return {'val': {id: "value", value: [Infinity], type: this.getTypeIndex('float')}}
return {'value': {id: "value", value: [Infinity], type: this.getTypeIndex('float')}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/constants/NotANumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export class NotANumber extends BehaveEngineNode {
override processNode(flowSocket?: string) {
this.graphEngine.processNodeStarted(this);

return {'val': {id: "value", value: [NaN], type: this.getTypeIndex('float')}}
return {'value': {id: "value", value: [NaN], type: this.getTypeIndex('float')}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/constants/Pi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export class Pi extends BehaveEngineNode {
override processNode(flowSocket?: string) {
this.graphEngine.processNodeStarted(this);

return {'val': {id: "value", value: [Math.PI], type: this.getTypeIndex('float')}}
return {'value': {id: "value", value: [Math.PI], type: this.getTypeIndex('float')}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/exponential/CubeRoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export class CubeRoot extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndex}}
return {'value': {id: "value", value: val, type: typeIndex}}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export class Exponential extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndexA}}
return {'value': {id: "value", value: val, type: typeIndexA}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/exponential/Log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export class Log extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndex}}
return {'value': {id: "value", value: val, type: typeIndex}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/exponential/Log10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export class Log10 extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndex}}
return {'value': {id: "value", value: val, type: typeIndex}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/exponential/Log2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export class Log2 extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndex}}
return {'value': {id: "value", value: val, type: typeIndex}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/exponential/Power.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ export class Power extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndexA}}
return {'value': {id: "value", value: val, type: typeIndexA}}
}
}
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/math/exponential/SquareRoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export class SquareRoot extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndex}}
return {'value': {id: "value", value: val, type: typeIndex}}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export class HyperbolicCosine extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndex}}
return {'value': {id: "value", value: val, type: typeIndex}}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export class HyperbolicSine extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndex}}
return {'value': {id: "value", value: val, type: typeIndex}}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export class HyperbolicTangent extends BehaveEngineNode {
throw Error("Invalid type")
}

return {'val': {id: "value", value: val, type: typeIndex}}
return {'value': {id: "value", value: val, type: typeIndex}}
}
}
Loading

0 comments on commit 166e011

Please sign in to comment.