public override IRegionGetter Get(ModPath path) { return(Region.CreateFromBinary( TestDataPathing.GetReadFrame( path, GameRelease.SkyrimSE))); }
public override IRegionGetter Get(ModPath path) { var overlayStream = TestDataPathing.GetOverlayStream(path.Path, GameRelease.SkyrimSE); return(RegionBinaryOverlay.RegionFactory( overlayStream, new BinaryOverlayFactoryPackage(overlayStream.MetaData))); }
public void FunctionParametersTypeNone() { var perk = Perk.CreateFromBinary( TestDataPathing.GetReadFrame( TestDataPathing.SkyrimPerkFunctionParametersTypeNone, GameRelease.SkyrimSE)); perk.Effects.Should().HaveCount(2); }
public void PlacedObjectReflectionMissingData() { var overlayStream = TestDataPathing.GetOverlayStream( TestDataPathing.SkyrimPlacedObjectReflectedWaterMissingData, GameRelease.SkyrimSE); var obj = PlacedObjectBinaryOverlay.PlacedObjectFactory( overlayStream, new BinaryOverlayFactoryPackage(overlayStream.MetaData)); obj.Reflections.Count.Should().Be(1); obj.Reflections.First().Type.Should().Be(default);