Table of Contents

Class PacketResolver

Namespace
Moffat.EndlessOnline.SDK.Protocol
Assembly
Moffat.EndlessOnline.SDK.dll

PacketResolver resolves a packet type from a Packet ID (the PacketFamily and PacketAction).

public class PacketResolver
Inheritance
PacketResolver
Inherited Members

Constructors

PacketResolver(string)

Create a new instance of a PacketResolver for the specified namespace.

public PacketResolver(string name_space)

Parameters

name_space string

The fully-qualified namespace name which should be searched.

Methods

Create(PacketFamily, PacketAction)

Create an IPacket instance from the specified PacketFamily and PacketAction.

public IPacket Create(PacketFamily family, PacketAction action)

Parameters

family PacketFamily

The PacketFamily.

action PacketAction

The PacketAction.

Returns

IPacket

Create<TPacket>(PacketFamily, PacketAction)

Create an IPacket instance from the specified PacketFamily and PacketAction, converting it to a concrete packet type.

public TPacket Create<TPacket>(PacketFamily family, PacketAction action) where TPacket : IPacket

Parameters

family PacketFamily

The PacketFamily.

action PacketAction

The PacketAction.

Returns

TPacket

Type Parameters

TPacket