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

AsciiSpeech() public static méthode

public static AsciiSpeech ( Server.Network.NetState state, PacketReader pvSrc ) : void
state Server.Network.NetState
pvSrc PacketReader
Résultat void
        public static void AsciiSpeech( NetState state, PacketReader pvSrc )
        {
            Mobile from = state.Mobile;

            MessageType type = (MessageType)pvSrc.ReadByte();
            int hue = pvSrc.ReadInt16();
            pvSrc.ReadInt16(); // font
            string text = pvSrc.ReadStringSafe().Trim();

            if ( text.Length <= 0 || text.Length > 128 )
                return;

            if ( !Enum.IsDefined( typeof( MessageType ), type ) )
                type = MessageType.Regular;

            from.DoSpeech( text, m_EmptyInts, type, Utility.ClipDyedHue( hue ) );
        }
PacketHandlers