C# Class OpenNos.GameObject.ClientSession

Show file Open project: OpenNos/OpenNos Class Usage Examples

Public Properties

Property Type Description
HealthStop System.Boolean

Public Methods

Method Description
ClearLowPriorityQueue ( ) : void
ClientSession ( INetworkClient client ) : System
Destroy ( ) : void
Disconnect ( ) : void
Initialize ( EncryptionBase encryptor, Type packetHandler, bool isWorldServer ) : void
InitializeAccount ( Account account ) : void
SendPacket ( PacketDefinition packet, byte priority = 10 ) : void
SendPacket ( string packet, byte priority = 10 ) : void
SendPacketAfterWait ( string packet, int Millisecond ) : void
SendPacketFormat ( string packet ) : void
SendPackets ( IEnumerable packets, byte priority = 10 ) : void
SetCharacter ( Character character ) : void

Private Methods

Method Description
ClearReceiveQueue ( ) : void
CommunicationCallback_CharacterConnectedEvent ( object sender, EventArgs e ) : void
CommunicationCallback_CharacterDisconnectedEvent ( object sender, EventArgs e ) : void
GenerateHandlerReferences ( Type type, bool isWorldServer ) : void
HandlePackets ( ) : void

Handle the packet received by the Client.

OnNetworkClientMessageReceived ( object sender, OpenNos.Core.Communication.Scs.Communication.Messages.MessageEventArgs e ) : void

This will be triggered when the underlying NetworkCleint receives a packet.

TriggerHandler ( string packetHeader, string packet, bool force ) : void

Method Details

ClearLowPriorityQueue() public method

public ClearLowPriorityQueue ( ) : void
return void

ClientSession() public method

public ClientSession ( INetworkClient client ) : System
client INetworkClient
return System

Destroy() public method

public Destroy ( ) : void
return void

Disconnect() public method

public Disconnect ( ) : void
return void

Initialize() public method

public Initialize ( EncryptionBase encryptor, Type packetHandler, bool isWorldServer ) : void
encryptor OpenNos.Core.EncryptionBase
packetHandler System.Type
isWorldServer bool
return void

InitializeAccount() public method

public InitializeAccount ( Account account ) : void
account Account
return void

SendPacket() public method

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

SendPacket() public method

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

SendPacketAfterWait() public method

public SendPacketAfterWait ( string packet, int Millisecond ) : void
packet string
Millisecond int
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

SetCharacter() public method

public SetCharacter ( Character character ) : void
character Character
return void

Property Details

HealthStop public property

public Boolean,System HealthStop
return System.Boolean