using System; using System.Collections.Generic; namespace BizHawk.Client.Common { /// /// This class holds a separator for RamWatch /// Use the static property Instance to get it /// public sealed class SeparatorWatch : Watch { /// /// Initialize a new separator instance /// internal SeparatorWatch() :base(null, 0, WatchSize.Separator, DisplayType.Separator, true, string.Empty) { } /// /// Gets the separator instance /// public static SeparatorWatch Instance { get { return new SeparatorWatch(); } } /// /// Get the appropriate DisplayType /// /// DisplayType.Separator nothing else public override IEnumerable AvailableTypes() { yield return DisplayType.Separator; } #region Stuff to ignore /// /// Ignore that stuff /// public override int Value { get { return 0; } } /// /// Ignore that stuff /// public override int ValueNoFreeze { get { return 0; } } /// /// Ignore that stuff /// public override int Previous { get { return 0; } } /// /// Ignore that stuff /// public override string ValueString { get { return string.Empty; } } /// /// Ignore that stuff /// public override string PreviousStr { get { return string.Empty; } } /// /// TTransform the current instance into a displayable (short representation) string /// It's used by the "Display on screen" option in the RamWatch window /// /// A well formatted string representation public override string ToDisplayString() { return "----"; } /// /// Ignore that stuff /// public override bool Poke(string value) { return false; } /// /// Ignore that stuff /// public override void ResetPrevious() { return; } /// /// Ignore that stuff /// public override string Diff { get { return string.Empty; } } /// /// Ignore that stuff /// public override uint MaxValue { get { return 0; } } /// /// Ignore that stuff /// public override void Update() { return; } #endregion } }