Class PlayerPacketFactory
Inheritance
PlayerPacketFactory
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
Returns
|
Edit this page
View Source
CreateDebugEchoPacket(string, DebugLevel, Color)
Declaration
public static DebugEchoPacket CreateDebugEchoPacket(string message, DebugLevel level, Color color)
Parameters
Returns
|
Edit this page
View Source
CreateForcePlayerMapPacket(bool)
Declaration
public static ForcePlayerMapPacket CreateForcePlayerMapPacket(bool visible)
Parameters
Type |
Name |
Description |
bool |
visible |
|
Returns
|
Edit this page
View Source
CreateNicknameChangePacket(Player)
Declaration
public static ChangeNicknamePacket CreateNicknameChangePacket(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
Returns
|
Edit this page
View Source
CreatePlaySoundPacket(byte)
Declaration
public static PlaySoundPacket CreatePlaySoundPacket(byte sound)
Parameters
Type |
Name |
Description |
byte |
sound |
|
Returns
|
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
|
Edit this page
View Source
CreateQuitPacket(Player, QuitReason)
Declaration
public static PlayerQuitPacket CreateQuitPacket(Player player, QuitReason reason = QuitReason.Quit)
Parameters
Returns
|
Edit this page
View Source
CreateSetFPSLimitPacket(ushort)
Declaration
public static SetFPSLimitPacket CreateSetFPSLimitPacket(ushort limit)
Parameters
Type |
Name |
Description |
ushort |
limit |
|
Returns
|
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
|
Edit this page
View Source
CreateSetWantedLevelPacket(byte)
Declaration
public static SetWantedLevelPacket CreateSetWantedLevelPacket(byte level)
Parameters
Type |
Name |
Description |
byte |
level |
|
Returns
|
Edit this page
View Source
CreateShowHudComponentPacket(HudComponent, bool)
Declaration
public static HudComponentVisiblePacket CreateShowHudComponentPacket(HudComponent hudComponent, bool show)
Parameters
Returns
|
Edit this page
View Source
CreateSpawnPacket(Player)
Declaration
public static SpawnPlayerPacket CreateSpawnPacket(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
Returns
|
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
|
Edit this page
View Source
CreateToggleDebuggerPacket(bool)
Declaration
public static ToggleDebuggerPacket CreateToggleDebuggerPacket(bool visible)
Parameters
Type |
Name |
Description |
bool |
visible |
|
Returns
|
Edit this page
View Source
CreateTransferBoxVisiblePacket(bool)
Declaration
public static SetTransferBoxVisiblePacket CreateTransferBoxVisiblePacket(bool visible)
Parameters
Type |
Name |
Description |
bool |
visible |
|
Returns
|
Edit this page
View Source
CreateUpdateInfoPacket(Version, bool)
Declaration
public static UpdateInfoPacket CreateUpdateInfoPacket(Version version, bool mandatory = true)
Parameters
Returns
|
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
Returns