using System; using UnityEngine; namespace E7.NotchSolution.Editor { public enum PreviewOrientation { Portrait, PortraitUpsideDown, LandscapeLeft, LandscapeRight, } public enum GameViewSizePolicy { MatchResolution, MatchAspectRatio, } /// /// Notch Solution can be in only 1 configuration at any point. /// [Serializable] internal class NotchSimulatorConfiguration { [SerializeField] private string configurationName; public NotchSimulatorConfiguration(string configurationName) { this.configurationName = configurationName; } internal string ConfigurationName => configurationName; /// /// The device selected when linearize the simulator database and count from the beginning. /// [field: SerializeField] internal int DeviceIndex { get; set; } /// /// Screen orientation of the preview device. /// [field: SerializeField] internal PreviewOrientation Orientation { get; set; } /// /// Whether the game view's size should match the device's exact resolution or only its aspect ratio. /// [field: SerializeField] internal GameViewSizePolicy GameViewSize { get; set; } } }