Show / Hide Table of Contents

Class ElementAttachment

Represents an element that is attached to another element.

Inheritance
object
ElementAttachment
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Server.Concepts
Assembly: SlipeServer.Server.dll
Syntax
public class ElementAttachment

Constructors

| Edit this page View Source

ElementAttachment(Element, Element, Vector3?, Vector3?)

Declaration
public ElementAttachment(Element source, Element target, Vector3? positionOffset = null, Vector3? rotationOffset = null)
Parameters
Type Name Description
Element source
Element target
Vector3? positionOffset
Vector3? rotationOffset

Properties

| Edit this page View Source

PositionOffset

The position offset between the source and the target

Declaration
public Vector3 PositionOffset { get; set; }
Property Value
Type Description
Vector3
| Edit this page View Source

RotationOffset

The rotation offset between the source and the target

Declaration
public Vector3 RotationOffset { get; set; }
Property Value
Type Description
Vector3
| Edit this page View Source

Source

The element that is attached to another element

Declaration
public Element Source { get; }
Property Value
Type Description
Element
| Edit this page View Source

Target

The element that the source is attached to

Declaration
public Element Target { get; }
Property Value
Type Description
Element

Methods

| Edit this page View Source

UpdateAttachedElement()

Updates the position (and rotation) of the source element based on the position (and rotation) of the target element

Declaration
public void UpdateAttachedElement()

Events

| Edit this page View Source

PositionOffsetChanged

Triggered when the position offset changes

Declaration
public event Action<Vector3>? PositionOffsetChanged
Event Type
Type Description
Action<Vector3>
| Edit this page View Source

RotationOffsetChanged

Triggered when the rotation offset changes

Declaration
public event Action<Vector3>? RotationOffsetChanged
Event Type
Type Description
Action<Vector3>

Operators

| Edit this page View Source

implicit operator ElementAttachment?(ElementAttachment?)

Declaration
public static implicit operator ElementAttachment?(ElementAttachment? attachment)
Parameters
Type Name Description
ElementAttachment attachment
Returns
Type Description
ElementAttachment?
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX