From d3fbdf484a4d90365a55fb5058d75a8623f17d0f Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Tue, 22 Mar 2022 20:46:21 -0400 Subject: reduce duplicated doc blocks --- src/SMAPI/Framework/Input/GamePadStateBuilder.cs | 7 +++---- src/SMAPI/Framework/Input/KeyboardStateBuilder.cs | 7 +++---- src/SMAPI/Framework/Input/MouseStateBuilder.cs | 7 +++---- 3 files changed, 9 insertions(+), 12 deletions(-) (limited to 'src/SMAPI/Framework/Input') diff --git a/src/SMAPI/Framework/Input/GamePadStateBuilder.cs b/src/SMAPI/Framework/Input/GamePadStateBuilder.cs index 3a99214f..ad254828 100644 --- a/src/SMAPI/Framework/Input/GamePadStateBuilder.cs +++ b/src/SMAPI/Framework/Input/GamePadStateBuilder.cs @@ -85,8 +85,7 @@ namespace StardewModdingAPI.Framework.Input this.RightStickPos = sticks.Right; } - /// Override the states for a set of buttons. - /// The button state overrides. + /// public GamePadStateBuilder OverrideButtons(IDictionary overrides) { if (!this.IsConnected) @@ -151,7 +150,7 @@ namespace StardewModdingAPI.Framework.Input return this; } - /// Get the currently pressed buttons. + /// public IEnumerable GetPressedButtons() { if (!this.IsConnected) @@ -191,7 +190,7 @@ namespace StardewModdingAPI.Framework.Input } } - /// Get the equivalent state. + /// public GamePadState GetState() { this.State ??= new GamePadState( diff --git a/src/SMAPI/Framework/Input/KeyboardStateBuilder.cs b/src/SMAPI/Framework/Input/KeyboardStateBuilder.cs index 620ad442..eadb7a8a 100644 --- a/src/SMAPI/Framework/Input/KeyboardStateBuilder.cs +++ b/src/SMAPI/Framework/Input/KeyboardStateBuilder.cs @@ -31,8 +31,7 @@ namespace StardewModdingAPI.Framework.Input this.PressedButtons.Add(button); } - /// Override the states for a set of buttons. - /// The button state overrides. + /// public KeyboardStateBuilder OverrideButtons(IDictionary overrides) { foreach (var pair in overrides) @@ -51,14 +50,14 @@ namespace StardewModdingAPI.Framework.Input return this; } - /// Get the currently pressed buttons. + /// public IEnumerable GetPressedButtons() { foreach (Keys key in this.PressedButtons) yield return key.ToSButton(); } - /// Get the equivalent state. + /// public KeyboardState GetState() { return diff --git a/src/SMAPI/Framework/Input/MouseStateBuilder.cs b/src/SMAPI/Framework/Input/MouseStateBuilder.cs index a1ac5492..c2a0891b 100644 --- a/src/SMAPI/Framework/Input/MouseStateBuilder.cs +++ b/src/SMAPI/Framework/Input/MouseStateBuilder.cs @@ -51,8 +51,7 @@ namespace StardewModdingAPI.Framework.Input this.ScrollWheelValue = state.ScrollWheelValue; } - /// Override the states for a set of buttons. - /// The button state overrides. + /// public MouseStateBuilder OverrideButtons(IDictionary overrides) { foreach (var pair in overrides) @@ -67,7 +66,7 @@ namespace StardewModdingAPI.Framework.Input return this; } - /// Get the currently pressed buttons. + /// public IEnumerable GetPressedButtons() { foreach (var pair in this.ButtonStates) @@ -77,7 +76,7 @@ namespace StardewModdingAPI.Framework.Input } } - /// Get the equivalent state. + /// public MouseState GetState() { this.State ??= new MouseState( -- cgit