|
@@ -3,11 +3,14 @@ const NodesGroup_1 = require('./NodesGroup');
|
|
const UnicodeArrayNode_1 = require('../custom-nodes/unicode-array-nodes/UnicodeArrayNode');
|
|
const UnicodeArrayNode_1 = require('../custom-nodes/unicode-array-nodes/UnicodeArrayNode');
|
|
const UnicodeArrayRotateFunctionNode_1 = require('../custom-nodes/unicode-array-nodes/UnicodeArrayRotateFunctionNode');
|
|
const UnicodeArrayRotateFunctionNode_1 = require('../custom-nodes/unicode-array-nodes/UnicodeArrayRotateFunctionNode');
|
|
const Utils_1 = require('../Utils');
|
|
const Utils_1 = require('../Utils');
|
|
|
|
+const UnicodeArrayTranslator_1 = require("../custom-nodes/unicode-array-nodes/UnicodeArrayTranslator");
|
|
class UnicodeArrayNodesGroup extends NodesGroup_1.NodesGroup {
|
|
class UnicodeArrayNodesGroup extends NodesGroup_1.NodesGroup {
|
|
- constructor() {
|
|
|
|
|
|
+ constructor(options) {
|
|
super();
|
|
super();
|
|
this.unicodeArrayName = Utils_1.Utils.getRandomVariableName(UnicodeArrayNode_1.UnicodeArrayNode.UNICODE_ARRAY_RANDOM_LENGTH);
|
|
this.unicodeArrayName = Utils_1.Utils.getRandomVariableName(UnicodeArrayNode_1.UnicodeArrayNode.UNICODE_ARRAY_RANDOM_LENGTH);
|
|
this.unicodeArrayRotateValue = Utils_1.Utils.getRandomInteger(100, 500);
|
|
this.unicodeArrayRotateValue = Utils_1.Utils.getRandomInteger(100, 500);
|
|
|
|
+ this.unicodeArrayTranslatorName = Utils_1.Utils.getRandomVariableName(UnicodeArrayNode_1.UnicodeArrayNode.UNICODE_ARRAY_RANDOM_LENGTH);
|
|
|
|
+ this.options = options;
|
|
let unicodeArrayNode = new UnicodeArrayNode_1.UnicodeArrayNode(this.unicodeArrayName, this.unicodeArrayRotateValue), unicodeArray = unicodeArrayNode.getNodeData();
|
|
let unicodeArrayNode = new UnicodeArrayNode_1.UnicodeArrayNode(this.unicodeArrayName, this.unicodeArrayRotateValue), unicodeArray = unicodeArrayNode.getNodeData();
|
|
this.nodes = new Map([
|
|
this.nodes = new Map([
|
|
[
|
|
[
|
|
@@ -15,10 +18,13 @@ class UnicodeArrayNodesGroup extends NodesGroup_1.NodesGroup {
|
|
unicodeArrayNode
|
|
unicodeArrayNode
|
|
],
|
|
],
|
|
[
|
|
[
|
|
- 'unicodeArrayRotateFunctionNode',
|
|
|
|
- new UnicodeArrayRotateFunctionNode_1.UnicodeArrayRotateFunctionNode(this.unicodeArrayName, unicodeArray, this.unicodeArrayRotateValue)
|
|
|
|
|
|
+ 'unicodeArrayTranslator',
|
|
|
|
+ new UnicodeArrayTranslator_1.UnicodeArrayTranslator(this.unicodeArrayTranslatorName, this.unicodeArrayName, unicodeArray)
|
|
]
|
|
]
|
|
]);
|
|
]);
|
|
|
|
+ if (this.options['rotateUnicodeArray']) {
|
|
|
|
+ this.nodes.set('unicodeArrayRotateFunctionNode', new UnicodeArrayRotateFunctionNode_1.UnicodeArrayRotateFunctionNode(this.unicodeArrayName, unicodeArray, this.unicodeArrayRotateValue));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
exports.UnicodeArrayNodesGroup = UnicodeArrayNodesGroup;
|
|
exports.UnicodeArrayNodesGroup = UnicodeArrayNodesGroup;
|