Class FakeClient
A stub implementation for a client, you can use this to implement fake players for testing purposes
There is no point in using this in production, since players do not yield any additional values over using peds
And the MTA master server list will not include fake clients in the player count
Assembly: SlipeServer.Server.dll
Syntax
public class FakeClient : object, IClient
Constructors
|
Improve this Doc
View Source
FakeClient(Player)
Declaration
public FakeClient(Player player)
Parameters
| Type |
Name |
Description |
| Player |
player |
|
Properties
|
Improve this Doc
View Source
ConnectionState
Declaration
public ClientConnectionState ConnectionState { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public string? Extra { get; set; }
Property Value
|
Improve this Doc
View Source
IPAddress
Declaration
public IPAddress? IPAddress { get; set; }
Property Value
|
Improve this Doc
View Source
IsConnected
Declaration
public bool IsConnected { get; set; }
Property Value
|
Improve this Doc
View Source
Ping
Declaration
public uint Ping { get; set; }
Property Value
|
Improve this Doc
View Source
Player
Declaration
public Player Player { get; set; }
Property Value
|
Improve this Doc
View Source
Serial
Declaration
public string? Serial { get; set; }
Property Value
|
Improve this Doc
View Source
Version
Declaration
public string? Version { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
FetchSerial()
Declaration
public void FetchSerial()
|
Improve this Doc
View Source
ResendModPackets()
Declaration
public void ResendModPackets()
|
Improve this Doc
View Source
ResendPlayerACInfo()
Declaration
public void ResendPlayerACInfo()
|
Improve this Doc
View Source
ResetConnectionState()
Declaration
public void ResetConnectionState()
|
Improve this Doc
View Source
SendPacket(Packet)
Declaration
public void SendPacket(Packet packet)
Parameters
| Type |
Name |
Description |
| Packet |
packet |
|
|
Improve this Doc
View Source
SendPacket(PacketId, Byte[], PacketPriority, PacketReliability)
Declaration
public void SendPacket(PacketId packetId, byte[] data, PacketPriority priority = null, PacketReliability reliability = null)
Parameters
| Type |
Name |
Description |
| PacketId |
packetId |
|
| Byte[] |
data |
|
| PacketPriority |
priority |
|
| PacketReliability |
reliability |
|
|
Improve this Doc
View Source
SetDisconnected()
Declaration
public void SetDisconnected()
|
Improve this Doc
View Source
SetVersion(UInt16)
Declaration
public void SetVersion(ushort version)
Parameters
| Type |
Name |
Description |
| UInt16 |
version |
|
Implements