public AttachNodeMover(AttachNode attachNode, Vector3 position, ILinearScaleProvider linearScaleProvider)
        {
            attachNode.ThrowIfNullArgument(nameof(attachNode));
            linearScaleProvider.ThrowIfNullArgument(nameof(linearScaleProvider));

            this.attachNode          = attachNode;
            this.position            = position;
            this.linearScaleProvider = linearScaleProvider;
        }
Exemple #2
0
        public PartAttachNodeModifier(AttachNode partAttachNode, AttachNode referenceAttachNode, AttachNode newAttachNode, ILinearScaleProvider linearScaleProvider)
        {
            partAttachNode.ThrowIfNullArgument(nameof(partAttachNode));
            linearScaleProvider.ThrowIfNullArgument(nameof(linearScaleProvider));

            this.partAttachNode      = partAttachNode;
            this.referenceAttachNode = referenceAttachNode;
            this.newAttachNode       = newAttachNode;
            this.linearScaleProvider = linearScaleProvider;
        }
Exemple #3
0
        public AttachNodeSizeModifier(AttachNode attachNode, int size, ILinearScaleProvider linearScaleProvider)
        {
            attachNode.ThrowIfNullArgument(nameof(attachNode));
            linearScaleProvider.ThrowIfNullArgument(nameof(linearScaleProvider));

            this.attachNode          = attachNode;
            this.size                = size;
            this.linearScaleProvider = linearScaleProvider;

            originalSize = attachNode.size;
        }
        public AttachNodeToggler(AttachNode node)
        {
            node.ThrowIfNullArgument(nameof(node));

            this.node = node;
        }