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_spacestringThe 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
familyPacketFamilyThe PacketFamily.
actionPacketActionThe PacketAction.
Returns
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
familyPacketFamilyThe PacketFamily.
actionPacketActionThe PacketAction.
Returns
- TPacket
Type Parameters
TPacket