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

UnicodeMessage() public méthode

public UnicodeMessage ( Serial serial, int graphic, MessageType type, int hue, int font, string lang, string name, string text ) : System
serial Serial
graphic int
type MessageType
hue int
font int
lang string
name string
text string
Résultat System
        public UnicodeMessage( Serial serial, int graphic, MessageType type, int hue, int font, string lang, string name, string text )
            : base(0xAE)
        {
            if ( string.IsNullOrEmpty( lang ) ) lang = "ENU";
            if ( name == null ) name = "";
            if ( text == null ) text = "";

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

            this.EnsureCapacity( 50 + (text.Length * 2) );

            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( lang, 4 );
            m_Stream.WriteAsciiFixed( name, 30 );
            m_Stream.WriteBigUniNull( text );
        }
UnicodeMessage