33namespace Celeste . Mod . Registry . DecalRegistryHandlers ;
44
55internal sealed class SolidDecalRegistryHandler : DecalRegistryHandler {
6- private int _x , _y , _width , _height , _index ;
6+ private int _x , _y , _width , _height , _index , _priority ;
77 private bool _blockWaterfalls , _safe ;
88
99 public override string Name => "solid" ;
@@ -15,6 +15,8 @@ public override void Parse(XmlAttributeCollection xml) {
1515 _height = Get ( xml , "height" , 16 ) ;
1616
1717 _index = Get ( xml , "index" , SurfaceIndex . ResortRoof ) ;
18+ _priority = Get ( xml , "priority" , 0 ) ;
19+
1820 _blockWaterfalls = GetBool ( xml , "blockWaterfalls" , true ) ;
1921 _safe = GetBool ( xml , "safe" , true ) ;
2022 }
@@ -24,6 +26,6 @@ public override void ApplyTo(Decal decal) {
2426
2527 decal . ScaleRectangle ( ref x , ref y , ref width , ref height ) ;
2628
27- ( ( patch_Decal ) decal ) . MakeSolid ( x , y , width , height , _index , _blockWaterfalls , _safe ) ;
29+ ( ( patch_Decal ) decal ) . MakeSolid ( x , y , width , height , _index , _priority , _blockWaterfalls , _safe ) ;
2830 }
2931}
0 commit comments