Class ElementExtensions
Extensions for the base shared element class on the server
Inheritance
ElementExtensions
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
|
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
Returns
|
Improve this Doc
View Source
GetSyncer(PhysicalElement)
Gets the syncer of this element
Declaration
public static Player GetSyncer(this PhysicalElement source)
Parameters
Returns
|
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
Returns
|
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
Returns
|
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
Returns
|
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
Returns