C# Class OpenNos.GameObject.Mock.FakeNetworkClient

Inheritance: INetworkClient
Datei anzeigen Open project: OpenNos/OpenNos Class Usage Examples

Public Methods

Method 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 method

public ClearLowPriorityQueue ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Disconnect() public method

public Disconnect ( ) : void
return void

FakeNetworkClient() public method

public FakeNetworkClient ( ) : OpenNos.Core
return OpenNos.Core

GetClientSession() public method

public GetClientSession ( ) : ClientSession
return ClientSession

Initialize() public method

public Initialize ( EncryptionBase encryptor ) : void
encryptor OpenNos.Core.EncryptionBase
return void

ReceivePacket() public method

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.
return void

ReceivePacket() public method

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

SendPacket() public method

public SendPacket ( string packet, byte priority = 10 ) : void
packet string
priority byte
return void

SendPacketFormat() public method

public SendPacketFormat ( string packet ) : void
packet string
return void

SendPackets() public method

public SendPackets ( IEnumerable packets, byte priority = 10 ) : void
packets IEnumerable
priority byte
return void

SetClientSession() public method

public SetClientSession ( object clientSession ) : void
clientSession object
return void