C# Class OpenNos.GameObject.ClientSession

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

Méthodes publiques

Свойство Type Description
HealthStop System.Boolean

Méthodes publiques

Méthode 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

Méthode 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 méthode

public ClearLowPriorityQueue ( ) : void
Résultat void

ClientSession() public méthode

public ClientSession ( INetworkClient client ) : System
client INetworkClient
Résultat System

Destroy() public méthode

public Destroy ( ) : void
Résultat void

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

Initialize() public méthode

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

InitializeAccount() public méthode

public InitializeAccount ( Account account ) : void
account Account
Résultat void

SendPacket() public méthode

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

SendPacket() public méthode

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

SendPacketAfterWait() public méthode

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

SetCharacter() public méthode

public SetCharacter ( Character character ) : void
character Character
Résultat void

Property Details

HealthStop public_oe property

public Boolean,System HealthStop
Résultat System.Boolean