Server.Network.PacketHandlers.ExtendedCommand C# (CSharp) Méthode

ExtendedCommand() public static méthode

public static ExtendedCommand ( Server.Network.NetState state, PacketReader pvSrc ) : void
state Server.Network.NetState
pvSrc PacketReader
Résultat void
        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 );
            }
        }
PacketHandlers