Exemplo n.º 1
0
        public Gump(PacketReader reader, bool send) : base(reader, send)
        {
            reader.ReadUInt16();

            uint serial = reader.ReadUInt32();
            uint gumpId = reader.ReadUInt32();
            uint x      = reader.ReadUInt32();
            uint y      = reader.ReadUInt32();

            ushort layoutLength = reader.ReadUInt16();
            string layout       = reader.ReadASCIIString(layoutLength - 1);

            reader.ReadByte();

            ArrayList textList = new ArrayList();
            ushort    n        = reader.ReadUInt16();

            for (int i = 0; i < n; i++)
            {
                int length = reader.ReadUInt16() * 2;

                string s = reader.ReadUnicodeString(length);
                textList.Add(s);
            }
            string[] text = (string[])textList.ToArray(typeof(string));

            Init(serial, gumpId, x, y, layout, text);
        }
Exemplo n.º 2
0
		public Gump( PacketReader reader, bool send ) : base( reader, send )
		{
			reader.ReadUInt16();

			uint serial = reader.ReadUInt32();
			uint gumpId = reader.ReadUInt32();
			uint x = reader.ReadUInt32();
			uint y = reader.ReadUInt32();

			ushort layoutLength = reader.ReadUInt16();
			string layout = reader.ReadASCIIString( layoutLength - 1 );
			reader.ReadByte();

			ArrayList textList = new ArrayList();
			ushort n = reader.ReadUInt16();
			for ( int i = 0; i < n; i++ )
			{
				int length = reader.ReadUInt16() * 2;

				string s = reader.ReadUnicodeString( length );
				textList.Add( s );
			}
			string[] text = (string[])textList.ToArray( typeof( string ) );

			Init( serial, gumpId, x, y, layout, text );
		}
        public PackedGump(PacketReader reader, bool send) : base(reader, send)
        {
            reader.ReadUInt16();

            uint serial = reader.ReadUInt32();
            uint gumpId = reader.ReadUInt32();
            uint x      = reader.ReadUInt32();
            uint y      = reader.ReadUInt32();

            byte[]       dLayout      = ReadPacked(reader);
            PacketReader layoutReader = new PacketReader(dLayout);
            string       layout       = layoutReader.ReadASCIIString(dLayout.Length);

            int stringCount = reader.ReadInt32();

            byte[]       dText      = ReadPacked(reader);
            PacketReader textReader = new PacketReader(dText);

            ArrayList textList = new ArrayList();

            for (int i = 0; i < stringCount; i++)
            {
                int length = textReader.ReadUInt16() * 2;

                string s = textReader.ReadUnicodeString(length);
                textList.Add(s);
            }
            string[] text = (string[])textList.ToArray(typeof(string));


            Init(serial, gumpId, x, y, layout, text);
        }
Exemplo n.º 4
0
		public PackedGump( PacketReader reader, bool send ) : base( reader, send )
		{
			reader.ReadUInt16();

			uint serial = reader.ReadUInt32();
			uint gumpId = reader.ReadUInt32();
			uint x = reader.ReadUInt32();
			uint y = reader.ReadUInt32();

			byte[] dLayout = ReadPacked( reader );
			PacketReader layoutReader = new PacketReader( dLayout );
			string layout = layoutReader.ReadASCIIString( dLayout.Length );

			int stringCount = reader.ReadInt32();

			byte[] dText = ReadPacked( reader );
			PacketReader textReader = new PacketReader( dText );

			ArrayList textList = new ArrayList();
			for ( int i = 0; i < stringCount; i++ )
			{
				int length = textReader.ReadUInt16() * 2;

				string s = textReader.ReadUnicodeString( length );
				textList.Add( s );
			}
			string[] text = (string[])textList.ToArray( typeof( string ) );


			Init( serial, gumpId, x, y, layout, text );
		}
Exemplo n.º 5
0
        public UnicodeMessage(PacketReader reader, bool send) : base(reader, send)
        {
            reader.ReadUInt16();

            m_Serial     = reader.ReadUInt32();
            m_ModelId    = reader.ReadUInt16();
            m_SpeechType = reader.ReadByte();
            m_Hue        = reader.ReadUInt16();
            m_Font       = reader.ReadUInt16();
            m_Lang       = reader.ReadASCIIString(4);
            m_SourceName = reader.ReadASCIIString(30);
            m_Text       = reader.ReadUnicodeString();
        }
Exemplo n.º 6
0
		public UnicodeMessage( PacketReader reader, bool send ) : base( reader, send )
		{
			reader.ReadUInt16();

			m_Serial = reader.ReadUInt32();
			m_ModelId = reader.ReadUInt16();
			m_SpeechType = reader.ReadByte();
			m_Hue = reader.ReadUInt16();
			m_Font = reader.ReadUInt16();
			m_Lang = reader.ReadASCIIString( 4 );
			m_SourceName = reader.ReadASCIIString( 30 );
			m_Text = reader.ReadUnicodeString();
		}
		public LocalizedMessageAffix( PacketReader reader, bool send ) : base( reader, send )
		{
			reader.ReadUInt16();

			m_Serial = reader.ReadUInt32();
			m_ModelId = reader.ReadUInt16();
			m_SpeechType = reader.ReadByte();
			m_Hue = reader.ReadUInt16();
			m_Font = reader.ReadUInt16();
			m_Number = reader.ReadUInt32();
			m_AffixType = reader.ReadByte();
			m_SourceName = reader.ReadASCIIString( 30 );
			m_Affix = reader.ReadASCIIString();
			m_Append = reader.ReadUnicodeString();
		}
        public LocalizedMessageAffix(PacketReader reader, bool send) : base(reader, send)
        {
            reader.ReadUInt16();

            m_Serial     = reader.ReadUInt32();
            m_ModelId    = reader.ReadUInt16();
            m_SpeechType = reader.ReadByte();
            m_Hue        = reader.ReadUInt16();
            m_Font       = reader.ReadUInt16();
            m_Number     = reader.ReadUInt32();
            m_AffixType  = reader.ReadByte();
            m_SourceName = reader.ReadASCIIString(30);
            m_Affix      = reader.ReadASCIIString();
            m_Append     = reader.ReadUnicodeString();
        }