public void ReadFireTruckPacket_ReadsValuesProperly() { var packet = new VehiclePureSyncPacket(); packet.Read(this.firetruckTestPacket); packet.RemoteModel.Should().Be(407); packet.Position.Should().Equals(new Vector3(30, 5, 3)); packet.Seat.Should().Be(0); packet.Health.Should().Be(1000); packet.PlayerHealth.Should().Be(50); packet.PlayerArmor.Should().Be(0); packet.AdjustableProperty.Should().Be(0); packet.TurretRotation.Should().NotBe(Vector2.Zero); }
public void ReadHydraPacket_ReadsValuesProperly() { var packet = new VehiclePureSyncPacket(); packet.Read(this.hydraTestPacket); packet.RemoteModel.Should().Be(520); packet.Position.Should().Equals(new Vector3(10, 5, 3)); packet.Seat.Should().Be(0); packet.Health.Should().Be(1000); packet.PlayerHealth.Should().Be(50); packet.PlayerArmor.Should().Be(0); packet.VehiclePureSyncFlags.IsLandingGearDown.Should().BeTrue(); packet.AdjustableProperty.Should().NotBe(0); packet.TurretRotation.Should().Be(Vector2.Zero); }