Server.Network.AsciiMessage.AsciiMessage C# (CSharp) Méthode

AsciiMessage() public méthode

public AsciiMessage ( Serial serial, int graphic, MessageType type, int hue, int font, string name, string text ) : System
serial Serial
graphic int
type MessageType
hue int
font int
name string
text string
Résultat System
        public AsciiMessage( Serial serial, int graphic, MessageType type, int hue, int font, string name, string text )
            : base(0x1C)
        {
            if ( name == null )
                name = "";

            if ( text == null )
                text = "";

            if ( hue == 0 )
                hue = 0x3B2;

            this.EnsureCapacity( 45 + text.Length );

            m_Stream.Write( (int) serial );
            m_Stream.Write( (short) graphic );
            m_Stream.Write( (byte) type );
            m_Stream.Write( (short) hue );
            m_Stream.Write( (short) font );
            m_Stream.WriteAsciiFixed( name, 30 );
            m_Stream.WriteAsciiNull( text );
        }
AsciiMessage