Show / Hide Table of Contents

Class ElementExtensions

Extensions for the base shared element class on the server

Inheritance
Object
ElementExtensions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Server.Elements
Assembly: SlipeServer.dll
Syntax
public static class ElementExtensions

Methods

| Improve this Doc View Source

ClearVisibleTo(Element)

Clear all visibility settings of this element

Declaration
public static bool ClearVisibleTo(this Element source)
Parameters
Type Name Description
Element source
Returns
Type Description
Boolean
| Improve this Doc View Source

Clone(Element, Vector3)

Clones this element. Returns an element of the proper type

Declaration
public static Element Clone(this Element source, Vector3 position)
Parameters
Type Name Description
Element source
Vector3 position
Returns
Type Description
Element
| Improve this Doc View Source

GetSyncer(PhysicalElement)

Gets the syncer of this element

Declaration
public static Player GetSyncer(this PhysicalElement source)
Parameters
Type Name Description
PhysicalElement source
Returns
Type Description
Player
| Improve this Doc View Source

GetZoneName(PhysicalElement, Boolean)

Gets this element's zone name

Declaration
public static string GetZoneName(this PhysicalElement source, bool citiesOnly = false)
Parameters
Type Name Description
PhysicalElement source
Boolean citiesOnly
Returns
Type Description
String
| Improve this Doc View Source

IsVisibleTo(Element, Element)

Checks if this element is visible to another

Declaration
public static bool IsVisibleTo(this Element source, Element target)
Parameters
Type Name Description
Element source
Element target
Returns
Type Description
Boolean
| Improve this Doc View Source

SetSyncer(PhysicalElement, Player)

Sets the syncer of this element

Declaration
public static bool SetSyncer(this PhysicalElement source, Player target)
Parameters
Type Name Description
PhysicalElement source
Player target
Returns
Type Description
Boolean
| Improve this Doc View Source

SetVisibleTo(Element, Element, Boolean)

Set this element visible for a specific target

Declaration
public static bool SetVisibleTo(this Element source, Element target, bool visible)
Parameters
Type Name Description
Element source
Element target
Boolean visible
Returns
Type Description
Boolean
  • Improve this Doc
  • View Source
Back to top Generated by DocFX