public ParticleEffect(PacketReader reader, bool send) : base(reader, send)
        {
            m_Type      = reader.ReadByte();
            m_From      = reader.ReadUInt32();
            m_To        = reader.ReadUInt32();
            m_ItemId    = reader.ReadUInt16();
            m_FromPoint = new Point3D(reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadSByte());
            m_ToPoint   = new Point3D(reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadSByte());
            m_Speed     = reader.ReadByte();
            m_Duration  = reader.ReadByte();

            reader.ReadByte();
            reader.ReadByte();

            m_FixedDirection = reader.ReadBoolean();
            m_Explode        = reader.ReadBoolean();
            m_Hue            = reader.ReadUInt32();
            m_RenderMode     = reader.ReadUInt32();
            m_Effect         = reader.ReadUInt16();
            m_ExplodeEffect  = reader.ReadUInt16();
            m_ExplodeSound   = reader.ReadUInt16();
            m_Serial         = reader.ReadUInt32();
            m_Layer          = reader.ReadByte();
            m_Unknown        = reader.ReadInt16();
        }
		public MobileAnimation( PacketReader reader, bool send ) : base( reader, send )
		{
			m_Serial = reader.ReadUInt32();
			m_Action = reader.ReadUInt16();
			m_FrameCount = reader.ReadUInt16();
			m_RepeatCount = reader.ReadUInt16();
			m_Forward = !reader.ReadBoolean();
			m_Repeat = reader.ReadBoolean();
			m_Delay = reader.ReadByte();
		}
 public MobileAnimation(PacketReader reader, bool send) : base(reader, send)
 {
     m_Serial      = reader.ReadUInt32();
     m_Action      = reader.ReadUInt16();
     m_FrameCount  = reader.ReadUInt16();
     m_RepeatCount = reader.ReadUInt16();
     m_Forward     = !reader.ReadBoolean();
     m_Repeat      = reader.ReadBoolean();
     m_Delay       = reader.ReadByte();
 }
        public GraphicalEffect(PacketReader reader, bool send) : base(reader, send)
        {
            m_Type      = reader.ReadByte();
            m_From      = reader.ReadUInt32();
            m_To        = reader.ReadUInt32();
            m_ItemId    = reader.ReadUInt16();
            m_FromPoint = new Point3D(reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadSByte());
            m_ToPoint   = new Point3D(reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadSByte());
            m_Speed     = reader.ReadByte();
            m_Duration  = reader.ReadByte();

            reader.ReadByte();
            reader.ReadByte();

            m_FixedDirection = reader.ReadBoolean();
            m_Explode        = reader.ReadBoolean();
        }
		public GraphicalEffect( PacketReader reader, bool send ) : base( reader, send )
		{
			m_Type = reader.ReadByte();
			m_From = reader.ReadUInt32();
			m_To = reader.ReadUInt32();
			m_ItemId = reader.ReadUInt16();
			m_FromPoint = new Point3D( reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadSByte() );
			m_ToPoint = new Point3D( reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadSByte() );
			m_Speed = reader.ReadByte();
			m_Duration = reader.ReadByte();

			reader.ReadByte();
			reader.ReadByte();

			m_FixedDirection = reader.ReadBoolean();
			m_Explode = reader.ReadBoolean();
		}
Beispiel #6
0
		public BookHeader( PacketReader reader, bool send ) : base( reader, send )
		{
			reader.ReadUInt16();

			m_Serial = reader.ReadUInt32();

			reader.ReadByte();

			m_Writable = reader.ReadBoolean();
			m_PagesCount = reader.ReadUInt16();

			int titleLength = reader.ReadUInt16() - 1;
			byte[] titleBuffer = reader.ReadBytes( titleLength );
			m_Title = Encoding.UTF8.GetString( titleBuffer );
			reader.ReadByte();

			int authorLength = reader.ReadUInt16() - 1;
			byte[] authorBuffer = reader.ReadBytes( authorLength );
			m_Author = Encoding.UTF8.GetString( authorBuffer );
			reader.ReadByte();
		}
Beispiel #7
0
        public BookHeader(PacketReader reader, bool send) : base(reader, send)
        {
            reader.ReadUInt16();

            m_Serial = reader.ReadUInt32();

            reader.ReadByte();

            m_Writable   = reader.ReadBoolean();
            m_PagesCount = reader.ReadUInt16();

            int titleLength = reader.ReadUInt16() - 1;

            byte[] titleBuffer = reader.ReadBytes(titleLength);
            m_Title = Encoding.UTF8.GetString(titleBuffer);
            reader.ReadByte();

            int authorLength = reader.ReadUInt16() - 1;

            byte[] authorBuffer = reader.ReadBytes(authorLength);
            m_Author = Encoding.UTF8.GetString(authorBuffer);
            reader.ReadByte();
        }
		public ParticleEffect( PacketReader reader, bool send ) : base( reader, send )
		{
			m_Type = reader.ReadByte();
			m_From = reader.ReadUInt32();
			m_To = reader.ReadUInt32();
			m_ItemId = reader.ReadUInt16();
			m_FromPoint = new Point3D( reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadSByte() );
			m_ToPoint = new Point3D( reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadSByte() );
			m_Speed = reader.ReadByte();
			m_Duration = reader.ReadByte();

			reader.ReadByte();
			reader.ReadByte();

			m_FixedDirection = reader.ReadBoolean();
			m_Explode = reader.ReadBoolean();
			m_Hue = reader.ReadUInt32();
			m_RenderMode = reader.ReadUInt32();
			m_Effect = reader.ReadUInt16();
			m_ExplodeEffect = reader.ReadUInt16();
			m_ExplodeSound = reader.ReadUInt16();
			m_Serial = reader.ReadUInt32();
			m_Layer = reader.ReadByte();
			m_Unknown = reader.ReadInt16();
		}