Show / Hide Table of Contents

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

Inheritance
object
FakeClient
Implements
IClient
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Server.Clients
Assembly: SlipeServer.Server.dll
Syntax
public class FakeClient : IClient

Constructors

| Edit this page View Source

FakeClient(Player)

Declaration
public FakeClient(Player player)
Parameters
Type Name Description
Player player

Properties

| Edit this page View Source

ConnectionState

Declaration
public ClientConnectionState ConnectionState { get; set; }
Property Value
Type Description
ClientConnectionState
| Edit this page View Source

Extra

Declaration
public string? Extra { get; set; }
Property Value
Type Description
string
| Edit this page View Source

IPAddress

Declaration
public IPAddress? IPAddress { get; set; }
Property Value
Type Description
IPAddress
| Edit this page View Source

IsConnected

Declaration
public bool IsConnected { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

Ping

Declaration
public uint Ping { get; set; }
Property Value
Type Description
uint
| Edit this page View Source

Player

Declaration
public Player Player { get; set; }
Property Value
Type Description
Player
| Edit this page View Source

Serial

Declaration
public string? Serial { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Version

Declaration
public string? Version { get; set; }
Property Value
Type Description
string

Methods

| Edit this page View Source

FetchIp()

Declaration
public void FetchIp()
| Edit this page View Source

FetchSerial()

Declaration
public void FetchSerial()
| Edit this page View Source

ResendModPackets()

Declaration
public void ResendModPackets()
| Edit this page View Source

ResendPlayerACInfo()

Declaration
public void ResendPlayerACInfo()
| Edit this page View Source

ResetConnectionState()

Declaration
public void ResetConnectionState()
| Edit this page View Source

SendPacket(PacketId, byte[], PacketPriority, PacketReliability)

Declaration
public void SendPacket(PacketId packetId, byte[] data, PacketPriority priority = PacketPriority.Medium, PacketReliability reliability = PacketReliability.Unreliable)
Parameters
Type Name Description
PacketId packetId
byte[] data
PacketPriority priority
PacketReliability reliability
| Edit this page View Source

SendPacket(Packet)

Declaration
public void SendPacket(Packet packet)
Parameters
Type Name Description
Packet packet
| Edit this page View Source

SetDisconnected()

Declaration
public void SetDisconnected()
| Edit this page View Source

SetVersion(ushort)

Declaration
public void SetVersion(ushort version)
Parameters
Type Name Description
ushort version

Implements

IClient
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX