C# Class OpenNos.GameObject.Mock.FakeNetworkClient

Inheritance: INetworkClient
Afficher le fichier Open project: OpenNos/OpenNos Class Usage Examples

Méthodes publiques

Méthode Description
ClearLowPriorityQueue ( ) : System.Threading.Tasks.Task
Disconnect ( ) : void
FakeNetworkClient ( ) : OpenNos.Core
GetClientSession ( ) : ClientSession
Initialize ( EncryptionBase encryptor ) : void
ReceivePacket ( PacketDefinition packet ) : void

Send a packet to the Server as the Fake client receives it and triggers a Handler method.

ReceivePacket ( string packet ) : void

Send a Packet to the Server as the Fake client receives it and triggers a Handler method.

SendPacket ( string packet, byte priority = 10 ) : void
SendPacketFormat ( string packet ) : void
SendPackets ( IEnumerable packets, byte priority = 10 ) : void
SetClientSession ( object clientSession ) : void

Method Details

ClearLowPriorityQueue() public méthode

public ClearLowPriorityQueue ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

FakeNetworkClient() public méthode

public FakeNetworkClient ( ) : OpenNos.Core
Résultat OpenNos.Core

GetClientSession() public méthode

public GetClientSession ( ) : ClientSession
Résultat ClientSession

Initialize() public méthode

public Initialize ( EncryptionBase encryptor ) : void
encryptor OpenNos.Core.EncryptionBase
Résultat void

ReceivePacket() public méthode

Send a packet to the Server as the Fake client receives it and triggers a Handler method.
public ReceivePacket ( PacketDefinition packet ) : void
packet PacketDefinition Packet created thru PacketFactory.
Résultat void

ReceivePacket() public méthode

Send a Packet to the Server as the Fake client receives it and triggers a Handler method.
public ReceivePacket ( string packet ) : void
packet string
Résultat void

SendPacket() public méthode

public SendPacket ( string packet, byte priority = 10 ) : void
packet string
priority byte
Résultat void

SendPacketFormat() public méthode

public SendPacketFormat ( string packet ) : void
packet string
Résultat void

SendPackets() public méthode

public SendPackets ( IEnumerable packets, byte priority = 10 ) : void
packets IEnumerable
priority byte
Résultat void

SetClientSession() public méthode

public SetClientSession ( object clientSession ) : void
clientSession object
Résultat void