コード例 #1
0
 public override IRegionGetter Get(ModPath path)
 {
     return(Region.CreateFromBinary(
                TestDataPathing.GetReadFrame(
                    path,
                    GameRelease.SkyrimSE)));
 }
コード例 #2
0
        public override IRegionGetter Get(ModPath path)
        {
            var overlayStream = TestDataPathing.GetOverlayStream(path.Path, GameRelease.SkyrimSE);

            return(RegionBinaryOverlay.RegionFactory(
                       overlayStream,
                       new BinaryOverlayFactoryPackage(overlayStream.MetaData)));
        }
コード例 #3
0
        public void FunctionParametersTypeNone()
        {
            var perk = Perk.CreateFromBinary(
                TestDataPathing.GetReadFrame(
                    TestDataPathing.SkyrimPerkFunctionParametersTypeNone,
                    GameRelease.SkyrimSE));

            perk.Effects.Should().HaveCount(2);
        }
コード例 #4
0
        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);