Show / Hide Table of Contents

Class ElementPacketFactory

Inheritance
object
ElementPacketFactory
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Server.PacketHandling.Factories
Assembly: SlipeServer.Server.dll
Syntax
public static class ElementPacketFactory

Methods

| Edit this page View Source

CreateAttachElementPacket(Element, Element, Vector3, Vector3)

Declaration
public static AttachElementRpcPacket CreateAttachElementPacket(Element element, Element attachedTo, Vector3 offsetPosition, Vector3 offsetRotation)
Parameters
Type Name Description
Element element
Element attachedTo
Vector3 offsetPosition
Vector3 offsetRotation
Returns
Type Description
AttachElementRpcPacket
| Edit this page View Source

CreateDetachElementPacket(Element, Vector3)

Declaration
public static DetachElementRpcPacket CreateDetachElementPacket(Element element, Vector3 offsetPosition)
Parameters
Type Name Description
Element element
Vector3 offsetPosition
Returns
Type Description
DetachElementRpcPacket
| Edit this page View Source

CreateFixVehiclePacket(Element)

Declaration
public static FixVehicleRpcPacket CreateFixVehiclePacket(Element element)
Parameters
Type Name Description
Element element
Returns
Type Description
FixVehicleRpcPacket
| Edit this page View Source

CreateSetAlphaPacket(Element, byte)

Declaration
public static SetElementAlphaRpcPacket CreateSetAlphaPacket(Element element, byte alpha)
Parameters
Type Name Description
Element element
byte alpha
Returns
Type Description
SetElementAlphaRpcPacket
| Edit this page View Source

CreateSetCallPropagationEnabledPacket(Element, bool)

Declaration
public static SetElementCallPropagationEnabledRpcPacket CreateSetCallPropagationEnabledPacket(Element element, bool enabled)
Parameters
Type Name Description
Element element
bool enabled
Returns
Type Description
SetElementCallPropagationEnabledRpcPacket
| Edit this page View Source

CreateSetCollisionsEnabledPacket(Element, bool)

Declaration
public static SetElementCollisionsEnabledRpcPacket CreateSetCollisionsEnabledPacket(Element element, bool enabled)
Parameters
Type Name Description
Element element
bool enabled
Returns
Type Description
SetElementCollisionsEnabledRpcPacket
| Edit this page View Source

CreateSetDimensionPacket(Element, ushort)

Declaration
public static SetElementDimensionRpcPacket CreateSetDimensionPacket(Element element, ushort dimension)
Parameters
Type Name Description
Element element
ushort dimension
Returns
Type Description
SetElementDimensionRpcPacket
| Edit this page View Source

CreateSetElementAttachedOffsetsPacket(Element, Vector3, Vector3)

Declaration
public static SetElementAttachedOffsetsRpcPacket CreateSetElementAttachedOffsetsPacket(Element element, Vector3 offsetPosition, Vector3 offsetRotation)
Parameters
Type Name Description
Element element
Vector3 offsetPosition
Vector3 offsetRotation
Returns
Type Description
SetElementAttachedOffsetsRpcPacket
| Edit this page View Source

CreateSetElementFrozen(Element, bool)

Declaration
public static SetElementFrozenRpcPacket CreateSetElementFrozen(Element element, bool isFrozen)
Parameters
Type Name Description
Element element
bool isFrozen
Returns
Type Description
SetElementFrozenRpcPacket
| Edit this page View Source

CreateSetHealthPacket(Element, float)

Declaration
public static SetElementHealthRpcPacket CreateSetHealthPacket(Element element, float health)
Parameters
Type Name Description
Element element
float health
Returns
Type Description
SetElementHealthRpcPacket
| Edit this page View Source

CreateSetInteriorPacket(Element, byte)

Declaration
public static SetElementInteriorRpcPacket CreateSetInteriorPacket(Element element, byte interior)
Parameters
Type Name Description
Element element
byte interior
Returns
Type Description
SetElementInteriorRpcPacket
| Edit this page View Source

CreateSetPositionPacket(Element, Vector3, bool)

Declaration
public static SetElementPositionRpcPacket CreateSetPositionPacket(Element element, Vector3 position, bool isWarp = false)
Parameters
Type Name Description
Element element
Vector3 position
bool isWarp
Returns
Type Description
SetElementPositionRpcPacket
| Edit this page View Source

CreateSetRotationPacket(Element, Vector3)

Declaration
public static Packet CreateSetRotationPacket(Element element, Vector3 rotation)
Parameters
Type Name Description
Element element
Vector3 rotation
Returns
Type Description
Packet
| Edit this page View Source

CreateTakePlayerScreenshotPacket(ushort, ushort, string, byte, uint, ushort, Resource?)

Declaration
public static TakePlayerScreenshotPacket CreateTakePlayerScreenshotPacket(ushort sizeX, ushort sizeY, string tag, byte quality, uint maxBandwith, ushort maxPacketSize, Resource? resource)
Parameters
Type Name Description
ushort sizeX
ushort sizeY
string tag
byte quality
uint maxBandwith
ushort maxPacketSize
Resource resource
Returns
Type Description
TakePlayerScreenshotPacket
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX