Esempio 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;
        }
Esempio 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;
        }
Esempio 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;
        }
Esempio n. 4
0
        public AttachNodeToggler(AttachNode node)
        {
            node.ThrowIfNullArgument(nameof(node));

            this.node = node;
        }