public override void Read(byte[] packet) { ProtocolReader reader = new ProtocolReader(packet); this.BulletId = reader.ReadByte(); this.OwnerId = reader.ReadInt32(); this.ContainerType = reader.ReadInt16(); this.StartingPosition = reader.ReadTilePoint(); this.Angle = reader.ReadSingle(); this.Damage = reader.ReadInt16(); }
public override void Read(byte[] packet) { ProtocolReader reader = new ProtocolReader(packet); this.Name = reader.ReadString(); this.ObjectId = reader.ReadInt32(); this.ObjectType = reader.ReadInt16(); this.Texture1Id = reader.ReadInt32(); this.Texture2Id = reader.ReadInt32(); this.NumStars = reader.ReadInt32(); this.Recipient = reader.ReadString(); this.Text = reader.ReadString(); this.CleanText = reader.ReadString(); }