Show / Hide Table of Contents

Class PlayerPacketFactory

Inheritance
object
PlayerPacketFactory
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 PlayerPacketFactory

Methods

| Edit this page View Source

CreateDebugEchoPacket(string, DebugLevel)

Declaration
public static DebugEchoPacket CreateDebugEchoPacket(string message, DebugLevel level)
Parameters
Type Name Description
string message
DebugLevel level
Returns
Type Description
DebugEchoPacket
| Edit this page View Source

CreateDebugEchoPacket(string, DebugLevel, Color)

Declaration
public static DebugEchoPacket CreateDebugEchoPacket(string message, DebugLevel level, Color color)
Parameters
Type Name Description
string message
DebugLevel level
Color color
Returns
Type Description
DebugEchoPacket
| Edit this page View Source

CreateForcePlayerMapPacket(bool)

Declaration
public static ForcePlayerMapPacket CreateForcePlayerMapPacket(bool visible)
Parameters
Type Name Description
bool visible
Returns
Type Description
ForcePlayerMapPacket
| Edit this page View Source

CreateNicknameChangePacket(Player)

Declaration
public static ChangeNicknamePacket CreateNicknameChangePacket(Player player)
Parameters
Type Name Description
Player player
Returns
Type Description
ChangeNicknamePacket
| Edit this page View Source

CreatePlaySoundPacket(byte)

Declaration
public static PlaySoundPacket CreatePlaySoundPacket(byte sound)
Parameters
Type Name Description
byte sound
Returns
Type Description
PlaySoundPacket
| Edit this page View Source

CreatePlayerListPacket(Player[], bool)

Declaration
public static PlayerListPacket CreatePlayerListPacket(Player[] players, bool showInChat = false)
Parameters
Type Name Description
Player[] players
bool showInChat
Returns
Type Description
PlayerListPacket
| Edit this page View Source

CreateQuitPacket(Player, QuitReason)

Declaration
public static PlayerQuitPacket CreateQuitPacket(Player player, QuitReason reason = QuitReason.Quit)
Parameters
Type Name Description
Player player
QuitReason reason
Returns
Type Description
PlayerQuitPacket
| Edit this page View Source

CreateSetFPSLimitPacket(ushort)

Declaration
public static SetFPSLimitPacket CreateSetFPSLimitPacket(ushort limit)
Parameters
Type Name Description
ushort limit
Returns
Type Description
SetFPSLimitPacket
| Edit this page View Source

CreateSetMoneyPacket(int, bool)

Declaration
public static SetMoneyPacket CreateSetMoneyPacket(int money, bool instant)
Parameters
Type Name Description
int money
bool instant
Returns
Type Description
SetMoneyPacket
| Edit this page View Source

CreateSetWantedLevelPacket(byte)

Declaration
public static SetWantedLevelPacket CreateSetWantedLevelPacket(byte level)
Parameters
Type Name Description
byte level
Returns
Type Description
SetWantedLevelPacket
| Edit this page View Source

CreateShowHudComponentPacket(HudComponent, bool)

Declaration
public static HudComponentVisiblePacket CreateShowHudComponentPacket(HudComponent hudComponent, bool show)
Parameters
Type Name Description
HudComponent hudComponent
bool show
Returns
Type Description
HudComponentVisiblePacket
| Edit this page View Source

CreateSpawnPacket(Player)

Declaration
public static SpawnPlayerPacket CreateSpawnPacket(Player player)
Parameters
Type Name Description
Player player
Returns
Type Description
SpawnPlayerPacket
| Edit this page View Source

CreateToggleAllControlsPacket(bool, bool, bool)

Declaration
public static ToggleAllControlsPacket CreateToggleAllControlsPacket(bool enabled, bool gtaControls = true, bool mtaControls = true)
Parameters
Type Name Description
bool enabled
bool gtaControls
bool mtaControls
Returns
Type Description
ToggleAllControlsPacket
| Edit this page View Source

CreateToggleDebuggerPacket(bool)

Declaration
public static ToggleDebuggerPacket CreateToggleDebuggerPacket(bool visible)
Parameters
Type Name Description
bool visible
Returns
Type Description
ToggleDebuggerPacket
| Edit this page View Source

CreateTransferBoxVisiblePacket(bool)

Declaration
public static SetTransferBoxVisiblePacket CreateTransferBoxVisiblePacket(bool visible)
Parameters
Type Name Description
bool visible
Returns
Type Description
SetTransferBoxVisiblePacket
| Edit this page View Source

CreateUpdateInfoPacket(Version, bool)

Declaration
public static UpdateInfoPacket CreateUpdateInfoPacket(Version version, bool mandatory = true)
Parameters
Type Name Description
Version version
bool mandatory
Returns
Type Description
UpdateInfoPacket
| Edit this page View Source

CreateWastedPacket(Player, Element?, DamageType, BodyPart, bool, ulong, ulong)

Declaration
public static PlayerWastedPacket CreateWastedPacket(Player player, Element? killer, DamageType weaponType, BodyPart bodyPart, bool isStealth, ulong animationGroup, ulong animationId)
Parameters
Type Name Description
Player player
Element killer
DamageType weaponType
BodyPart bodyPart
bool isStealth
ulong animationGroup
ulong animationId
Returns
Type Description
PlayerWastedPacket
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX