|
| 1 | +using Microsoft.Xna.Framework.Graphics; |
| 2 | +using StardewValley.Buildings; |
| 3 | +using StardewValley.Locations; |
| 4 | +using StardewValley; |
| 5 | +using System; |
| 6 | +using System.Collections.Generic; |
| 7 | +using System.Linq; |
| 8 | +using System.Text; |
| 9 | +using System.Threading.Tasks; |
| 10 | + |
| 11 | +namespace DynamicReflections.Framework.Interfaces.Internal |
| 12 | +{ |
| 13 | + public interface IApi |
| 14 | + { |
| 15 | + public bool IsDrawAnyReflection(); |
| 16 | + public bool IsDrawingWaterReflection(); |
| 17 | + public bool IsDrawingPuddleReflection(); |
| 18 | + public bool IsDrawingMirrorReflection(); |
| 19 | + |
| 20 | + public bool IsFilteringWater(); |
| 21 | + public bool IsFilteringPuddles(); |
| 22 | + public bool IsFilteringMirrors(); |
| 23 | + public bool IsFilteringStars(); |
| 24 | + } |
| 25 | + |
| 26 | + public class Api : IApi |
| 27 | + { |
| 28 | + public bool IsDrawAnyReflection() |
| 29 | + { |
| 30 | + return DynamicReflections.isDrawingWaterReflection || DynamicReflections.isDrawingWaterReflection || DynamicReflections.isDrawingPuddles; |
| 31 | + } |
| 32 | + |
| 33 | + public bool IsDrawingWaterReflection() |
| 34 | + { |
| 35 | + return DynamicReflections.isDrawingWaterReflection; |
| 36 | + } |
| 37 | + |
| 38 | + public bool IsDrawingPuddleReflection() |
| 39 | + { |
| 40 | + return DynamicReflections.isDrawingPuddles; |
| 41 | + } |
| 42 | + |
| 43 | + public bool IsDrawingMirrorReflection() |
| 44 | + { |
| 45 | + return DynamicReflections.isDrawingMirrorReflection; |
| 46 | + } |
| 47 | + |
| 48 | + |
| 49 | + public bool IsFilteringWater() |
| 50 | + { |
| 51 | + return DynamicReflections.isFilteringWater; |
| 52 | + } |
| 53 | + |
| 54 | + public bool IsFilteringPuddles() |
| 55 | + { |
| 56 | + return DynamicReflections.isFilteringPuddles; |
| 57 | + } |
| 58 | + |
| 59 | + public bool IsFilteringMirrors() |
| 60 | + { |
| 61 | + return DynamicReflections.isFilteringMirror; |
| 62 | + } |
| 63 | + |
| 64 | + public bool IsFilteringStars() |
| 65 | + { |
| 66 | + return DynamicReflections.isFilteringStar; |
| 67 | + } |
| 68 | + } |
| 69 | +} |
0 commit comments