public static void ExtendedCommand( NetState state, PacketReader pvSrc )
{
int packetID = pvSrc.ReadUInt16();
PacketHandler ph = GetExtendedHandler( packetID );
if ( ph != null )
{
if ( ph.Ingame && state.Mobile == null )
{
Console.WriteLine( "Client: {0}: Sent ingame packet (0xBFx{1:X2}) before having been attached to a mobile", state, packetID );
state.Dispose();
}
else if ( ph.Ingame && state.Mobile.Deleted )
{
state.Dispose();
}
else
{
ph.OnReceive( state, pvSrc );
}
}
else
{
pvSrc.Trace( state );
}
}