示例#1
0
 public HardwareInfo(PacketReader reader, bool send) : base(reader, send)
 {
     m_PacketSize       = reader.ReadUInt16();
     m_ClientType       = reader.ReadByte();
     m_IstanceID        = reader.ReadUInt32();
     m_OSMajor          = reader.ReadUInt32();
     m_OSMinor          = reader.ReadUInt32();
     m_OSRevision       = reader.ReadUInt32();
     m_CPUManuf         = reader.ReadByte();
     m_CPUFamily        = reader.ReadUInt32();
     m_CPUModel         = reader.ReadUInt32();
     m_ClockSpeed       = reader.ReadUInt32();
     m_CPUQuantity      = reader.ReadByte();
     m_PhysicalMemory   = reader.ReadUInt32();
     m_ScreenWidth      = reader.ReadUInt32();
     m_ScreenHeight     = reader.ReadUInt32();
     m_ScreenDepth      = reader.ReadUInt32();
     m_DirectXMajor     = reader.ReadUInt16();
     m_DirectXMinor     = reader.ReadUInt16();
     m_VideoDescription = reader.ReadASCIIString(64);
     m_VideoVendorID    = reader.ReadUInt32();
     m_VideoDeviceID    = reader.ReadUInt32();
     m_VideoMemory      = reader.ReadUInt32();
     m_Distribution     = reader.ReadByte();
     m_ClientsRunning   = reader.ReadByte();
     m_ClientsInstalled = reader.ReadByte();
     m_PartialInstalled = reader.ReadByte();
     m_Language         = reader.ReadASCIIString(4);
     m_Unknown          = reader.ReadASCIIString(64);
 }
        public ASCIIMessage(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_SourceName = reader.ReadASCIIString(30);
            m_Text       = reader.ReadASCIIString();
        }
示例#3
0
		public ASCIIMessage( 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_SourceName = reader.ReadASCIIString( 30 );
			m_Text = reader.ReadASCIIString();
		}
		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();
        }
示例#6
0
文件: Gump.cs 项目: leeairw/SpyUO
        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);
        }
示例#7
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);
        }
示例#9
0
        public MobileName(PacketReader reader, bool send) : base(reader, send)
        {
            int size = reader.ReadInt16();

            m_Serial = reader.ReadUInt32();
            m_Name   = reader.ReadASCIIString(Math.Min(size - 7, 30));
        }
示例#10
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 );
		}
示例#11
0
        public BuyInfoEntry(PacketReader reader)
        {
            m_Price = reader.ReadInt32();

            int size = reader.ReadByte();

            m_Name = reader.ReadASCIIString(size);
        }
示例#12
0
 public NewRegion(PacketReader reader, bool send) : base(reader, send)
 {
     m_Name        = reader.ReadASCIIString(40);
     m_Unknown     = reader.ReadUInt32();
     m_StartX      = reader.ReadInt16();
     m_StartY      = reader.ReadInt16();
     m_Width       = reader.ReadInt16();
     m_Height      = reader.ReadInt16();
     m_StartZ      = reader.ReadInt16();
     m_EndZ        = reader.ReadInt16();
     m_Description = reader.ReadASCIIString(40);
     m_Sound       = reader.ReadInt16();
     m_Music       = reader.ReadInt16();
     m_NightSound  = reader.ReadInt16();
     m_Dungeon     = reader.ReadByte();
     m_Light       = reader.ReadInt16();
 }
示例#13
0
        public SellInfoEntry(PacketReader reader)
        {
            m_Serial = reader.ReadUInt32();
            m_ItemID = reader.ReadInt16();
            m_Hue    = reader.ReadInt16();
            m_Amount = reader.ReadInt16();
            m_Price  = reader.ReadInt16();

            int size = reader.ReadInt16();

            m_Name = reader.ReadASCIIString(size);
        }
示例#14
0
        public LocalizedMessage(PacketReader reader, bool send) : base(reader, send)
        {
            int size = reader.ReadInt16();

            m_Serial    = reader.ReadUInt32();
            m_Body      = reader.ReadUInt16();
            m_Type      = (MessageType)reader.ReadByte();
            m_Hue       = reader.ReadUInt16();
            m_Font      = reader.ReadUInt16();
            m_Number    = reader.ReadUInt32();
            m_Name      = reader.ReadASCIIString(30);
            m_Arguments = Encoding.Unicode.GetString(reader.Data, reader.Index, reader.Data.Length - reader.Index - 2);
            m_Message   = LocalizedList.GetString(m_Number);
        }
示例#15
0
        public MobileStat(PacketReader reader, bool send) : base(reader, send)
        {
            int size = reader.ReadUInt16();

            m_Serial = reader.ReadUInt32();

            m_Name            = reader.ReadASCIIString(30);
            m_HitPoints       = reader.ReadUInt16();
            m_MaxHitPoints    = reader.ReadUInt16();
            m_AllowNameChange = reader.ReadByte();
            m_Features        = reader.ReadByte();
            m_Gender          = reader.ReadByte();

            m_Strength     = reader.ReadUInt16();
            m_Dexterity    = reader.ReadUInt16();
            m_Intelligence = reader.ReadUInt16();
            m_Stamina      = reader.ReadUInt16();
            m_MaxStamina   = reader.ReadUInt16();
            m_Mana         = reader.ReadUInt16();
            m_MaxMana      = reader.ReadUInt16();

            m_Gold        = reader.ReadUInt32();
            m_ArmorRating = reader.ReadUInt16();
            m_Weight      = reader.ReadUInt16();

            if (m_Features <= 5)
            {
                m_MaxWeight = reader.ReadUInt16();
                m_Race      = reader.ReadByte();
            }

            if (m_Features <= 3)
            {
                m_Followers    = reader.ReadByte();
                m_StatCap      = reader.ReadUInt16();
                m_Followers    = reader.ReadByte();
                m_MaxFollowers = reader.ReadByte();
            }

            if (m_Features <= 4)
            {
                m_FireRes       = reader.ReadUInt16();
                m_ColdRes       = reader.ReadUInt16();
                m_PoisonRes     = reader.ReadUInt16();
                m_EnergyRes     = reader.ReadUInt16();
                m_Luck          = reader.ReadUInt16();
                m_MinWeapDamage = reader.ReadUInt16();
                m_MaxWeapDamage = reader.ReadUInt16();
                m_TithingPoints = reader.ReadUInt32();
            }

            if (m_Features <= 6)
            {
                m_HitChanceIncr    = reader.ReadUInt16();
                m_SwingSpeedIncr   = reader.ReadUInt16();
                m_DamageChanceIncr = reader.ReadUInt16();
                m_LowerReagCost    = reader.ReadUInt16();
                m_HitPointsReg     = reader.ReadUInt16();

                m_StaminaPointsReg  = reader.ReadUInt16();
                m_ManaReag          = reader.ReadUInt16();
                m_ReflectPhysDamage = reader.ReadUInt16();
                m_EnhancePotions    = reader.ReadUInt16();
                m_DefenceChanceIncr = reader.ReadUInt16();

                m_SpellDamageIncr    = reader.ReadUInt16();
                m_FasterCastRecovery = reader.ReadUInt16();
                m_FasterCasting      = reader.ReadUInt16();
                m_LowerManaCost      = reader.ReadUInt16();
                m_StrengthIncr       = reader.ReadUInt16();

                m_DexterityIncr    = reader.ReadUInt16();
                m_IntelligenceIncr = reader.ReadUInt16();
                m_HitPointsIncr    = reader.ReadUInt16();
                m_StaminaIncr      = reader.ReadUInt16();
                m_ManaIncr         = reader.ReadUInt16();

                m_MaxHitPointsIncr = reader.ReadUInt16();
                m_MaxStaminaIncr   = reader.ReadUInt16();
                m_MaxManaIncr      = reader.ReadUInt16();
            }
        }
示例#16
0
 public OpenChat(PacketReader reader, bool send) : base(reader, send)
 {
     m_ChatName = reader.ReadASCIIString(0x39);
 }