Exemplo n.º 1
0
        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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }